Microsoft Q&A

.NET

14,085 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,085 questions with .NET-related tags

Sort by: Updated
1 answer

Entry field control is covered by keyboard

Hello, I have a view with 4 Entry controls, when I try to type inside the control, the keyboard will cover the Entry field. is there any way to shift up the control to be above the keyboard?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T13:11:02.2266667+00:00
ahmed omar 101 Reputation points
commented 2023-03-29T22:30:31.18+00:00
ahmed omar 101 Reputation points
0 answers

How do I fix APT206 - failed linking file resources and APT2259 'textEnd' is incompatible with attribute iconGravity errors?

I have a Xamarin Forms application that I am migrating to MAUI and I am getting the following 2 errors during compilation. APT2259 'textEnd' is incompatible with attribute iconGravity (attr) flags [start=1, textStart=2]. APT2061 failed linking file…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
381 questions
asked 2023-03-20T05:08:57.3866667+00:00
Gorimar, Behzad 0 Reputation points
commented 2023-03-29T22:02:19.86+00:00
Gorimar, Behzad 0 Reputation points
1 answer

OnNavigatedTo For ContentView

Hi, What is the alternative to OnNavigatedTo in the ContentView? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2022-10-01T23:31:22.203+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-29T22:00:48.8366667+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

How to Open Files on Xamarin Android Using FilePicker

using Xamarin.Essentials; (at the top of the file) async Task<FileResult> PickAndShow(PickOptions options) { try { var result = await FilePicker.PickAsync(options); if (result != null) { string Text…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-21T13:53:33.71+00:00
Ronald GANS 136 Reputation points
commented 2023-03-29T21:35:16.4+00:00
Ronald GANS 136 Reputation points
0 answers

DataTrigger if Else case

Hi, I have an Image that I want to show and hide based on a Label like this: <Image.Triggers> <DataTrigger TargetType="Image" Binding="{Binding Source={x:Reference LabelNickname}, Path=Text}" Value="Add"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T21:24:25.2366667+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

How to enhance Azure AD B2C Samples to Accommodate Azure API Management (APIM)?

Background: I've been studying https://learn.microsoft.com/en-us/answers/questions/1185611/where-are-net-7-updates-to-azure-active-directory and https://learn.microsoft.com/en-us/azure/api-management/howto-protect-backend-frontend-azure-ad-b2c where the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
886 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,153 questions
asked 2023-03-02T18:48:19.2566667+00:00
Siegfried Heintze 1,411 Reputation points
commented 2023-03-29T21:14:07.31+00:00
Siegfried Heintze 1,411 Reputation points
1 answer

Conditional MainPage in AppShell

Hi, I have the below in my AppShell <?xml version="1.0" encoding="utf-8" ?> <Shell x:Class="MyApp.Mobile.AppShell" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T14:05:55.4833333+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-29T20:54:33.6866667+00:00
Jassim Al Rahma 1,166 Reputation points
1 answer

Database Permissions issue on Account model

I have an MVC site with the Individual User Accounts. On most of the site we use SPROCS instead of using Entity Framework. We recently changed the user account on the connection strings to lock our databases down a bit more. I am needing to set…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-29T17:34:23.4033333+00:00
M J 641 Reputation points
answered 2023-03-29T20:48:12.19+00:00
M J 641 Reputation points
2 answers

How do I dynamically replace value in razor syntax based on selectedIndex in dropdown

I have an CSHTML View that has a dropdownlist. In the OnChange event I'm calling reportchange(this) which calls my function reportchange. How can I dynamically use the selectedIndex, this code doesn't work because the Razor code errors out with the…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-29T13:33:39.8466667+00:00
Bill 0 Reputation points
commented 2023-03-29T20:47:21.6266667+00:00
Bill 0 Reputation points
0 answers

Trying to make a post request

I am trying to register a user in here https://reqres.in/api/register USING https://reqres.in/ public async Task RegisterAsync(string _userName, string _paaWoed) { var data = new { email = _userName, password = _paaWoed }; …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-29T20:34:42.0166667+00:00
Eduardo Gomez 2,466 Reputation points
edited the question 2023-03-29T20:35:16.0833333+00:00
Eduardo Gomez 2,466 Reputation points
0 answers

I have a listview with a groupheader which displays the group name and items underneath it. Is there anyway On click on the header/Group name I can show or hide the items underneath it?

For example : On click of the "Bear" I can show /hide the items

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-29T20:33:10.1266667+00:00
Albin Lukose 0 Reputation points
0 answers

using custom font inside C# .net core application

I have the following code in my C# application that coverts text to image. In this code, I am using a custom font. I am specifying the path of the custom font, the custom font resides in my wwwroot folder. below is the code where I am using custom…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-29T19:35:14.7966667+00:00
Anjali Agarwal 656 Reputation points
edited the question 2023-03-29T19:46:04.3933333+00:00
Anjali Agarwal 656 Reputation points
1 answer

How to display and hide drop down lists based on condition drop down list ?

I work on blazor server side I have drop down list condition have 3 option server and database and owner . every option from these three options have one drop down list only so server have drop down list database have drop down list owner have drop down…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 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.
886 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.
7,603 questions
asked 2023-03-29T18:05:28.51+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
edited a comment 2023-03-29T19:36:21.1566667+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
0 answers

MAUI fails to deploy Android app

buildoutput.pdf Hi, Ia m trying to deploy my MAUI Android app to my device but keep getting Build Failed and not sure what is the reason. Attached is the build log.. Kindly help.. Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T19:26:50.53+00:00
Jassim Al Rahma 1,166 Reputation points
2 answers One of the answers was accepted by the question author.

Access Control

Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
897 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
accepted 2023-03-29T19:12:26.49+00:00
Juan A. Reyes Paulino 0 Reputation points
0 answers

Service fabric application project not crated properly

Hi I need to set up service fabric for Uni project, and I run into an issue I will try to explain as clearly because I am not sure where does the problem come from: When I create Service Fabric Application project, VS2022 creates only Service Fabric…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
206 questions
asked 2023-03-27T16:47:40.6366667+00:00
Mirko Mijanović 0 Reputation points
commented 2023-03-29T18:24:12.4166667+00:00
KarishmaTiwari-MSFT 12,036 Reputation points Microsoft Employee
1 answer

Reuse the List<>

Hi, I am using the below code in my sign in page: List<SigninData> data = JsonSerializer.Deserialize<List<SigninData>>(result); also I am using this: List<ActivationData> data =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 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.
7,603 questions
asked 2023-03-29T16:54:33.1433333+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-29T18:11:02.02+00:00
Alessandro Caliaro 3,591 Reputation points
2 answers One of the answers was accepted by the question author.

The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)

I am using Visual Studio Community 2022 64 bit 4.8.04161 on Windows 11 Pro. I need to be able to draw an image at a particular location. I am attempting to use the documentation at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-16T20:44:11.47+00:00
Randy Clegg 0 Reputation points
accepted 2023-03-29T18:10:48.2166667+00:00
Randy Clegg 0 Reputation points
1 answer One of the answers was accepted by the question author.

The MAUI GraphicsViewDemos image draw causes iOS app to abort

The GraphicsViewDemos app found at https://github.com/dotnet/maui-samples/tree/main/6.0/UserInterface/Views/GraphicsViewDemos aborts on iOS when the "Image paint" option is selected.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-28T15:34:32.3233333+00:00
Randy Clegg 0 Reputation points
accepted 2023-03-29T18:09:44.77+00:00
Randy Clegg 0 Reputation points
1 answer

Which is best, entity framework core in a class library, MVC or Blazor server side

HI, I am planning to create an MVC project. I wanted to use entity framework core. I am wondering if I should install it in a class library or an MVC project. I see that I can use a class library to make the use of EF more available for any…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
230 questions
asked 2023-03-27T16:21:25.0466667+00:00
edited a comment 2023-03-29T17:58:17.32+00:00