23,177 questions with .NET-related tags

Sort by: Updated
0 answers

C# Spans example is confusing.

Hi, I was reading up on Spans and I didn't understand the following example; struct MutableStruct { public int Value; } ... Span<MutableStruct> spanOfStructs = new MutableStruct[1]; spanOfStructs[0].Value = 42; Assert.Equal(42,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,195 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.
9,986 questions
asked 2024-03-05T03:07:22.5233333+00:00
0 answers

I Saved C# Project form as a new name, now project is broken. How to fix it?

I have a C# project in Visual Studio Community 2022 with a single form for the interface. I made some changes to the form and wanted to save it as a different name so I could preserve the previous design. Now I cannot see the form in the designer, but…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,806 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,447 questions
asked 2024-03-05T02:56:24.25+00:00
Clay LaHatte 0 Reputation points
edited the question 2024-03-05T03:04:20.2+00:00
Clay LaHatte 0 Reputation points
1 answer

How to fix the black screen issue while loading a webview with a source of embedded youtube url

<WebView x:Name="videoWebView" HeightRequest="200" HorizontalOptions="FillAndExpand" Source="https://www.youtube.com/embed/WbuqICqCLtI" VerticalOptions="FillAndExpand" /> The…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-02-05T10:53:48.3066667+00:00
Ajaykumar P 10 Reputation points
commented 2024-03-05T02:52:57.5533333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Is the .Net Maui Listview.Header tag able to contain a label with Text Search and SearchBar control

Hi Friends, I was wondering is the listview header able to be formatted to contain a Label with text Search followed by a SerachBar. These two elements should be on the same line. Thanks !

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 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.
9,986 questions
asked 2024-02-06T18:06:53.23+00:00
Ronald Rex 1,666 Reputation points
commented 2024-03-05T02:49:08.0166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
0 answers

Converting the PDF to a bitmap image corrupted the text content of the PDF.

I have a PDF document and using the below code logic, I am trying to convert the PDF page to an image. After converting the image, the text content in the PDF displayed as corrupted.  PQ-376500-STR-FDN-KZV-00011-001.pdf |Stream PdfStream =…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,263 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,806 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,195 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.
9,986 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
745 questions
asked 2024-03-04T19:42:32.9566667+00:00
Vikram Devaraj 0 Reputation points
commented 2024-03-05T02:47:00.89+00:00
KOZ6.0 4,335 Reputation points
1 answer

How Remove DatePicker underline in .NET MAUI

In .NET MAUI, I am using a DatePicker to display a date on a page. However, on Android, it is showing an underline below it. I want to hide this underline. I have written the following code to achieve this, but it's not working. Could you please help me…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-03-04T07:11:22.7533333+00:00
Bhuwan 516 Reputation points
answered 2024-03-05T02:29:41.0533333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Issue with Pre-selection

I need to preselect the list if it has only one item , i tried the one suggested in the MAUI official docs but it never seemed to work for me . I tried by manually setting the following in the constructor of the code behind of the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-02-15T10:54:06.42+00:00
Manickam, Suraj 160 Reputation points
commented 2024-03-05T02:16:38.38+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Maui && worker service ,mange token.

Hi. I have app consist of two parts: 1.Client - maui 2.Service- worker service. They both share token come from API that created on client in one of the screen and saved in DB per user. The service consume it and when the token not active any more it…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,195 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-02-29T08:00:44.9733333+00:00
דני שטרית 2,266 Reputation points
answered 2024-03-05T02:16:11.87+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 31,156 Reputation points Microsoft Vendor
1 answer

Xamarin - Issue is coming while Loading keytstore in Android

This Exception is coming while using KeyChainHelper wrapper of Xamarin using this code:- keyChainHelper = new KeyChain.Net.XamarinAndroid.KeyChainHelper(context, "password"); The same is working fine Android12 but the issue is coming in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,263 questions
asked 2024-02-15T12:57:52.3433333+00:00
Mukul Bhardwaj 0 Reputation points
commented 2024-03-05T02:15:35.5366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Remove three dots at the end while using LineBreakMode="TailTruncation" MaxLines="1"

Hi , As per title I have a label with LineBreakMode="TailTruncation" MaxLines="1" and I want to remove the 3 dots at the end. now it shows: "lorem ipsum dol..." and I want "lorem ipsum dolo" Pay…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,263 questions
asked 2024-02-17T07:47:30.25+00:00
vanKraster 181 Reputation points
commented 2024-03-05T02:11:14.0066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Maui- - indicator ifserver is conected

Hi, I want to show if server is conected or not . How is can be done ? which control to use, button is clickable and i want it will be clickable? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-02-29T09:40:59.6466667+00:00
דני שטרית 2,266 Reputation points
commented 2024-03-05T01:59:12.46+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 31,156 Reputation points Microsoft Vendor
1 answer

How can visually impaired people control mobile programs with screen readers when they run them with XAMARIN?

Hello masters I am visually impaired and I am very interested in software development. I have previously worked and learned on desktop applications with .net C# architecture. Now I want to learn the mobile side with Visual Studio using XAMARIN. My…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,263 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.
9,986 questions
asked 2024-02-26T06:56:25.3533333+00:00
fatih uyanık 80 Reputation points
commented 2024-03-05T01:44:26.84+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Maui - How do I clear the Navigation stack?

Hi, How do I clear the Navigation stack? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-03-04T12:48:28.48+00:00
דני שטרית 2,266 Reputation points
answered 2024-03-05T01:39:41.4666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 31,156 Reputation points Microsoft Vendor
1 answer

How to remove bottom border on MAUI Navigation Bar

Hi on a navigation page, how to remove the bottom grey border on the top navigation bar?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-02-29T13:51:45.0333333+00:00
SSB 81 Reputation points
commented 2024-03-05T01:38:47.79+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

Application or app?

Hi, More question: Application.Current.MainPage.Navigation.PushAsync(new MainPage(context.Item as Schedule)); Or App.Current.MainPage.Navigation.PushAsync(new MainPage(context.Item as Schedule)); Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-03-04T13:55:19.1533333+00:00
דני שטרית 2,266 Reputation points
answered 2024-03-05T01:37:12.6766667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 31,156 Reputation points Microsoft Vendor
1 answer

Which "Maps SDK for Android" version being used in Xamarin.Forms.Maps 5.0.0.2083?

Hi Team, We are currently using Xamarin.Forms.Maps (5.0.0.2083) in our Xamarin Projects. We need to know which "Maps SDK for Android" version the above package uses. com.google.android.gms:play-services-maps: ?? Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,263 questions
asked 2024-02-27T11:05:41.8866667+00:00
Vinayagamoorthy K 0 Reputation points
commented 2024-03-05T01:36:36.7866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

How to Implement Google Maps in a .NET MAUI Blazor App.

I'm currently developing a .NET MAUI app using Blazor and targeting .NET 7. One of the key features I'm looking to implement is integration with Google Maps to display locations of customers. However, I'm facing challenges with integrating Google Maps…

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,325 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 questions
asked 2024-02-29T11:59:09.6166667+00:00
NIRANJAN CHIGULLA 0 Reputation points
commented 2024-03-05T01:34:36.6033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
0 answers

Could not load type 'Microsoft.AspNetCore.Mvc.MvcJsonOptions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json while updgrading .net core 2.2 to 8.0 or 3.1

Hi All While upgrading .Net core 2.2 project to .Net 8.0. I am getting below error. I am using upgrade assistant from Visual studio 2022. (Same issue if I am upgrading to 3.2 version) Application startup exception: System.TypeLoadException: Could not…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,195 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,026 questions
asked 2024-03-05T00:58:47.3933333+00:00
Manoj Pruthi 0 Reputation points
1 answer

App will run through visual studio but not via exe

I am developing a maui app in VS 2022, Debug and Release will run fine when launched via VS. However, when I go to the apps bin folder, it will not launch, I click on the .exe and nothing happens. I tried copying the bin/release and debug folders to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,245 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 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.
9,986 questions
asked 2024-03-03T22:43:14.8333333+00:00
Phunction 201 Reputation points
commented 2024-03-05T00:42:25.59+00:00
Phunction 201 Reputation points
0 answers

How to fix recent errors generated by switching to .net 8.0

I had an app that was compiling and running just fine. I endeavored to put a map on the Home Page and read something that suggested that I upgrade to .net 8.0. Well it's been a nightmare and I've lost weeks of productivity. I believe I have the map…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,629 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.
9,986 questions
asked 2024-03-04T23:09:32.5833333+00:00
StevenSquires-9060 21 Reputation points
edited the question 2024-03-04T23:45:37.5633333+00:00
Rob Caplan - MSFT 5,397 Reputation points Microsoft Employee