26,986 questions with .NET-related tags

Sort by: Updated
0 answers

MAUI: Blank space on the UI in between the contents and font style issue

I have a label, image and a webview on the UI. My XAML: <ScrollView Grid.Row="0" Orientation="Vertical" VerticalOptions="FillAndExpand"> <VerticalStackLayout Grid.Row="0" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 27, 2025, 1:54 PM
Sreejith Sreenivasan 941 Reputation points
edited a comment Feb 28, 2025, 6:52 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,211 Reputation points Microsoft Vendor
4 answers

Multiple App.Razor components

Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,790 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,665 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
asked Jan 31, 2025, 8:47 AM
Kuler Master 406 Reputation points
commented Feb 28, 2025, 6:48 AM
Mario Viadero Hidalgo 0 Reputation points
1 answer

I am getting error while building the sample maui application using vs2022

I am facing below errors resource style/Animation.AppCompat.Dialog (aka com.companyname.mauiapp1:style/Animation.AppCompat.Dialog) not found. f resource style/RtlOverlay.DialogWindowTitle.AppCompat (aka…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 26, 2025, 3:39 PM
Seema CHAUDHARY 0 Reputation points
commented Feb 28, 2025, 6:26 AM
Seema CHAUDHARY 0 Reputation points
0 answers

How to fix binding TimeSpan TotalSeconds to Slider.Value Double 'TotalSeconds' property not found on '00:00:00.1117292', target property: 'Microsoft.Maui.Controls.Slider.Value'

Hey, Im having an issue to bind a sliders value and maximum value to a mediaplayers duration and position. As of now the app works fine but in the background it generates 100+ of binding failures. with the text Binding: 'TotalSeconds' property not found…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 24, 2025, 3:43 PM
Naser AL-Asbahi 10 Reputation points
commented Feb 28, 2025, 6:16 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,916 Reputation points Microsoft Vendor
1 answer

https://onedrive.live.com/embed iframe shows to much space around the document

Hi, I am glad to see a way to show my formatted MS word docs inside of my web pages. But Onedrive shows to much space around the document when I display it in a iframe.     I am not sure about the CSS I need to close the space here.   Or maybe there are…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
386 questions
asked Feb 27, 2025, 2:08 AM
iqworks Information Quality Works 316 Reputation points
edited a comment Feb 28, 2025, 6:14 AM
XuDong Peng-MSFT 11,336 Reputation points Microsoft Vendor
0 answers

Image Resizing issue on MAUI android app

Requirement :The MAUI android app allows users to capture / pick 75 images with any size and orientation. Here the challenge is to resize these 75 images into a standard size such that it fits the screen and the images maintain its aspect ratio. I have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 28, 2025, 6:00 AM
Leon Rodrigues 0 Reputation points
edited the question Feb 28, 2025, 6:05 AM
Leon Rodrigues 0 Reputation points
1 answer

.NET 9 Open API Migration not returning the API Schema

I am migrating a .NET 6 API application to .NET 9. Installed the Microsoft.AspNetCore.OpenApi and Microsoft.Extensions.ApiDescription.Server packages with version 9.0.2. I am keeping the Swashbuckle.AspNetCore 6.5.0 for the UI experience. Here is the…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
36 questions
asked Feb 25, 2025, 10:48 PM
Divakaran, D (Dipu) 0 Reputation points
commented Feb 28, 2025, 5:59 AM
Pradeep M 6,315 Reputation points Microsoft Vendor
1 answer

MAUI: Keep audio playing when navigating to a new page

I am using Webview for playing audio and when I navigate to a new page the audio stops playing. I want to play the audio in background when navigating to new pages, or switching app or locking device. My Code: <WebView …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 24, 2025, 4:33 PM
Sreejith Sreenivasan 941 Reputation points
answered Feb 28, 2025, 5:27 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,211 Reputation points Microsoft Vendor
0 answers

WebView is not working correctly in IOS MAUI

I have added a webview in my MAUI crossplateform app but I am not able to type in textbox or click on image buttons even pop up shows up but not able to even ok/cancel. While working fine with Android, Another issue with voice and video that is happening…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 27, 2025, 11:09 PM
Shraddha Chauhan 0 Reputation points
commented Feb 28, 2025, 5:26 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,916 Reputation points Microsoft Vendor
1 answer

Using VS 17.14.0 Preview 1.1 and XCode 16.2 I can not compile a Maui application to a remote iPhone device

Using Visual Studio version 17.12 Preview 1 and XCode 16.0 Beta I was able to connect to a remote iPhone and deploy my Maui app to the physical device. I however can not debug the app. So my development environment/MAC is set up properly. Updating Visual…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 27, 2025, 10:13 PM
David Richards 1 Reputation point
answered Feb 28, 2025, 5:20 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,916 Reputation points Microsoft Vendor
1 answer

Points displaying wrong

Hello I am sorry or not putting the framework correctly, but I cannot find WinUI The problem is that in the canvas my points are displaying correctly but when I go into guided mode to select my points they dont correspond I don't have point 1,…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,833 questions
asked Feb 23, 2025, 9:52 PM
Eduardo Gomez Romero 1,255 Reputation points
commented Feb 28, 2025, 3:19 AM
Hongrui Yu-MSFT 4,445 Reputation points Microsoft Vendor
1 answer

Canvas math problem

I have this Canvas that is 100 mm x 100 mm the problem is that when I draw a line es calculating bad (or I'm the bad one) if I select 0,0 and 18,18. I shod have but for some reason I get this is the code private readonly…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,833 questions
asked Feb 27, 2025, 3:49 PM
Eduardo Gomez Romero 1,255 Reputation points
answered Feb 28, 2025, 2:26 AM
Hongrui Yu-MSFT 4,445 Reputation points Microsoft Vendor
1 answer

Root detection on Android device using MAUI .net framework

The Android root detection logic implemented in .NET MAUI is not working as expected. Tried both a custom implementation and a NuGet package as in link below, but both approaches failed. nuget package >…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 27, 2025, 9:04 AM
Manjunath Vadigeri 0 Reputation points
answered Feb 28, 2025, 1:57 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,666 Reputation points Microsoft Vendor
1 answer

How can you unhide a Button inside a UserControl when a Page loads into a Frame on the MainWindow?

UserControl: <UserControl x:Class="Scores.Views.UserControls.MenuBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,833 questions
asked Feb 27, 2025, 5:55 PM
Michael Bahr 20 Reputation points
edited the question Feb 28, 2025, 1:06 AM
Jiale Xue - MSFT 49,051 Reputation points Microsoft Vendor
0 answers

How to Stop Previous Audio When Playing a New One in .NET MAUI

In my .NET MAUI application, I am using MediaElement from the .NET MAUI Community Toolkit and WebView to play audio files. However, I am facing an issue where if I play audio on one page, it continues playing even when I navigate to another page and play…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 25, 2025, 6:00 PM
Sreejith Sreenivasan 941 Reputation points
edited the question Feb 28, 2025, 12:34 AM
Alison A 650 Reputation points Microsoft Vendor
1 answer

Dynamically Setting WebView Height in .NET MAUI for Varying HTML Content on iOS Platform

I am using a custom WebView in my .NET MAUI application to display dynamic HTML content on iOS. The HTML content changes daily, and I need to adjust the height of the WebView accordingly. Custom WebView Renderer (iOS) Here’s my custom WebViewRenderer…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 19, 2025, 6:38 AM
Sreejith Sreenivasan 941 Reputation points
edited the question Feb 28, 2025, 12:33 AM
Alison A 650 Reputation points Microsoft Vendor
2 answers

Ram consuption above Threshold

Hi, In maui version 8 there is a problem when moving pages the memory not release. I would like to ask how to observe the RAM and if it pass threshold x it will be presanted in UI label in red color, otherwise in green color. Use MVVM…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
asked Feb 12, 2025, 10:20 AM
Dani_S 4,131 Reputation points
edited a comment Feb 27, 2025, 10:58 PM
Bruce (SqlWork.com) 71,696 Reputation points
0 answers

Login not possible with AspNetCore Idenity when Enable DataProtection.

I'm configuring my application to make use of AspNetCore.Identity as well Data protection. public static void Main(string[] args) { var builder =…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
386 questions
asked Feb 27, 2025, 9:16 PM
Nero Rodrigues 0 Reputation points
edited the question Feb 27, 2025, 9:19 PM
Nero Rodrigues 0 Reputation points
1 answer

.NET 6 SQL server 2014 connection problem

In the .net 6 project, we are using Dapper for data access and we facing a problem when trying to connect to SQL server 2014. But the same code works fine for SQL Server 2019. We are using SqlConnection from System.Data.SqlClient namespace. Is there…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,790 questions
asked Dec 5, 2022, 4:07 PM
Gev Gev 1 Reputation point
answered Feb 27, 2025, 7:43 PM
Georyitt Gorayeb 0 Reputation points
3 answers

A connection was successfully established with the server, but then an error occurred during the pre-login handshake.

I am getting below exception for database connection with MAUI android emulator. Can you please help us to resolve issue. Microsoft.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,490 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,961 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,317 questions
asked Aug 10, 2023, 6:08 AM
suresh tanukula 15 Reputation points
commented Feb 27, 2025, 7:40 PM
Georyitt Gorayeb 0 Reputation points