25,799 questions with .NET-related tags

Sort by: Updated
0 answers

How to persist RateLimiter tokens?

I am using .Net RateLimiting and specifically the TokenBucketRateLimiter. Example: services.AddRateLimiter(limiterOptions => { limiterOptions.AddPolicy(userPolicyName, context => { string username = Utils.getUsername(context); return…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,555 questions
asked 2024-10-08T09:06:00.62+00:00
Dillion 6 Reputation points
0 answers

It is not clear how the "LineHeight" property works for the "Label" element

Contains code for the class "DataTemplate" var offerPrice = new Label { FontSize = 40, LineHeight = -2, BackgroundColor = Color.FromArgb("#fff") }; offerPrice.SetBinding(Label.TextProperty, "price"); return new Border…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-03T07:44:35.64+00:00
валера карманов 141 Reputation points
commented 2024-10-08T08:58:26.41+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 31,166 Reputation points Microsoft Vendor
0 answers

Theming of WPF dialog not working for all controls on the dialog

Hi, I need to change color/theme of all controls on WPF dialog whenever there is change of theme from VS2022 (i.e. Tools -> Options -> Color Theme ) I followed below MSDN…

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,773 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,112 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.
10,922 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
218 questions
asked 2024-10-04T14:07:53.0266667+00:00
Ajay Gera 40 Reputation points
commented 2024-10-08T08:58:16.93+00:00
Tianyu Sun-MSFT 30,566 Reputation points Microsoft Vendor
0 answers

Capture value in Radio Button before Submit

I like to capture the values of Radio button button Submit and use validate in IF statement. If(Radio button button value == "CP"") {label="Find Selling Price"} namespace MauiAppMCQs.Models { public class…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-07T15:11:50.7666667+00:00
Kalyan A 205 Reputation points
edited a comment 2024-10-08T08:51:57.04+00:00
Kalyan A 205 Reputation points
0 answers

Bing api map error on windows

Hello, I am using Bing maps API, to show a map, with a pin in my tubines page, I have a button to call a pop up and add a new turbine public partial class AddTurbnePopUpViewModel(DeviceLanguageService deviceLanguageService, TurbinesService…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-09-29T13:38:30.6733333+00:00
Eduardo Gomez Romero 565 Reputation points
commented 2024-10-08T08:40:51.51+00:00
Eduardo Gomez Romero 565 Reputation points
1 answer

CarouselView Window bug asthmatically loop

I have a CarouselView, but on Windows in will loop, this doesn't happen on android <VerticalStackLayout> <Label Margin="20" HorizontalOptions="Center" Text="{Binding…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-09-05T10:25:03.8833333+00:00
Eduardo Gomez Romero 565 Reputation points
commented 2024-10-08T08:16:34.99+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 75,581 Reputation points Microsoft Vendor
0 answers

Application_start event not firing in server, but works just fine in debug.

We have an .net framework web application running on IIS 10. I've added some code in the Application_start method of Global.asax.cs and it's not getting fired at all in the server. This is working just fine in debug using visual studio 2022 using target…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,483 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.
10,922 questions
asked 2024-10-08T00:55:19.7766667+00:00
Anish Soman 20 Reputation points
commented 2024-10-08T07:58:57.6866667+00:00
Sam Wu-MSFT 7,526 Reputation points Microsoft Vendor
2 answers

reusable template

In my collectionView, I have this <CollectionView Margin="20" ItemsSource="{Binding Turbines}"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="model:TurbinePin"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-09-25T16:38:02.9433333+00:00
Eduardo Gomez Romero 565 Reputation points
commented 2024-10-08T07:56:23.1066667+00:00
Eduardo Gomez Romero 565 Reputation points
1 answer

How to fix a Errror Handling for Blazor Hybrid MAUI and WebApi

Hi, I've reference an WebApi to my Blazor Hybrid App. The database that I used is SQLite When I run the app "Windows machine" the response is Html The WebApi run well!!I've checked with swagger the response is OK. I suppose that the problem…

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,578 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-05T17:29:37.3866667+00:00
sblb 1,231 Reputation points
commented 2024-10-08T07:52:07.3433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,511 Reputation points Microsoft Vendor
1 answer

populate TextBoxes base on date value selected in DatePicker

Hi All. In form of WPF VB.Net project I would like to populate 3 TextBoxes base on selected in DatePicker date value of Monday. The first TextBox named txbWeek will display the number of week of the month depending on the selected date in the…

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,773 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,727 questions
asked 2024-10-07T22:53:26.74+00:00
zleug 51 Reputation points
answered 2024-10-08T07:47:43.0866667+00:00
Hongrui Yu-MSFT 1,995 Reputation points Microsoft Vendor
0 answers

Invalid stack map table at instruction index 177: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized

Invalid stack map table at instruction index 93: dup, error: The max stack height of 4 is violated when pushing initialized my.com.softspace.SSMobileUtilEngine.exception.SSError to existing stack of size 4. In later version of R8, the method may be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-08T07:35:35.76+00:00
Rupesh HikePOS 0 Reputation points
0 answers

Invalid stack map table at instruction index 93: dup, error: The max stack height of 4 is violated when pushing initialized my.com.softspace.SSMobileUtilEngine.exception.SSError to existing stack of size 4. In later version of R8, the method may be assume

Invalid stack map table at instruction index 177: invokespecial Ljava/lang/IllegalArgumentException;<init>(Ljava/lang/String;)V, error: Unexpected attempt to initialize initialized java.lang.IllegalArgumentException. In later version of R8, the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-08T07:29:47.7+00:00
Rupesh HikePOS 0 Reputation points
commented 2024-10-08T07:33:05.0866667+00:00
Rupesh HikePOS 0 Reputation points
1 answer

SVG icons in android app

Is it possible to use SVG icons in Android applications? Do I need to add any dependency to the project, something like this is written in the doc. Is it possible to describe in more detail how to work with them in XAML and C#?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-04T11:59:18.1+00:00
валера карманов 141 Reputation points
answered 2024-10-08T07:29:39.6633333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 31,166 Reputation points Microsoft Vendor
0 answers

LoginUser_Authenticate() method not being hit when app deployed to app service

Assistance Needed with ASP.NET Web Application on Azure App Service Good day guys, I recently deployed an ASP.NET web application, which I upgraded to .NET Framework 4.8, to Azure App Service. However, when I attempt to log in to the web app, the page…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,555 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,483 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,763 questions
asked 2024-10-01T08:46:48.3466667+00:00
Tony 61 Reputation points
edited the question 2024-10-08T07:17:30.86+00:00
ajkuma 26,136 Reputation points Microsoft Employee
1 answer

Change the color of the selected element

How to change the background of the element that was clicked in the "CollectionView" what can be done so that the selection animation affects the inner area of ​​the clicked element.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-05T16:30:59.3966667+00:00
валера карманов 141 Reputation points
commented 2024-10-08T07:09:22.93+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,511 Reputation points Microsoft Vendor
0 answers

How to implement Facebook login to .NET MAUI application?

Hi, Has anyone successfully implemented the Facebook manual OAuth2 login? If there are any references with examples, that would be great! We tried WebAuthenticator from .NET MAUI and our own server setup but it didn't work.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,845 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,845 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-08T07:00:18.9466667+00:00
Eugene Trinh 0 Reputation points
0 answers

How to implement Facebook login to .NET MAUI application?

Hi, Has anyone successfully implemented the Facebook manual OAuth2 login? If there are any references with examples, that would be great! We tried WebAuthenticator from .NET MAUI and our own server setup but it didn't work.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,845 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,845 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-08T07:00:18.9466667+00:00
Eugene Trinh 0 Reputation points
1 answer

Why can't I initialize an Init property directly/without the use of an Object Initializer?

Hello, We can initialize the Init property with Object Initializer. In fact, an Object initializer is equivalent to the variable/property initializer. If the compiler translates an Object initializer to a conventional variable initialization, Why can't…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,845 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.
10,922 questions
asked 2024-10-08T06:23:29.4333333+00:00
Shervan360 1,561 Reputation points
answered 2024-10-08T06:56:53.8733333+00:00
Jiale Xue - MSFT 45,011 Reputation points Microsoft Vendor
1 answer

Programmatically assign a UserControl to a DataTemplate

I'm trying to create a datagrid only by using c# without xaml because at compile time i don't know anything about the data that i will receive. So i need to use the only DataGridTemplateColumn but to archieve this i need to assign a value to the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,845 questions
asked 2024-09-19T11:04:16.69+00:00
Luca Iovene 0 Reputation points
commented 2024-10-08T06:48:48.64+00:00
Jiale Xue - MSFT 45,011 Reputation points Microsoft Vendor
0 answers

What will happen to performance when creating this layout?

There is a layout As I see it, it can be done on 7 "FlexLayout" elements. It will not harm the performance, and how good is this option. Maybe it is possible to somehow optimize the layout so that to use a minimum of layouts

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,496 questions
asked 2024-10-03T09:14:24.5533333+00:00
валера карманов 141 Reputation points
commented 2024-10-08T06:44:27.94+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 75,581 Reputation points Microsoft Vendor