10,554 questions with C#-related tags

Sort by: Updated
0 answers

.Net Maui, use gestures on tabbed page

Hi, I have a tabbed page with 2 tabs, on one tab I have and image that I would like the user to be able to use touch to pinch zoom and pan the image around. I use this to show the image: <Grid x:Name="imageView"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,115 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,554 questions
asked 2024-06-28T23:38:06.1833333+00:00
Phunction 226 Reputation points
edited the question 2024-06-29T20:00:38.0266667+00:00
Phunction 226 Reputation points
1 answer

EF Core - High Memory Usage For Query that Runs for 20 seconds

I'm wondering if there is a better way to optimize the below query. Granted, it's pulling in 80,000 - 160,000 records, but the RAM usage on my web server, shoots up to ~3gig while it's running for a total of 20 seconds, when testing it in my API, but,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
717 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,554 questions
asked 2024-06-29T05:22:38.7933333+00:00
muttBunch 100 Reputation points
answered 2024-06-29T11:32:30.5433333+00:00
AgaveJoe 27,341 Reputation points
1 answer

How to create a custom text editor VS2022

I am looking for some way to open a new window in visual studio that acts as a customizable text editor with the contents of a file (given by specified file path). I would then like to configure the features of the editor such as setting it to read only.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,813 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,554 questions
asked 2024-06-28T15:32:31.28+00:00
helloWorld22 0 Reputation points
answered 2024-06-29T11:15:30.2566667+00:00
Mansoob e Zahra 80 Reputation points
0 answers

How to fix UNMOUNTABLE_BOOT_VOLUME blue screen windows 11

I have an msi laptop and for several hours I keep getting this error, I mention that: -I tried starup repair and it still doesn't work -I tried to enter safe mode because I thought I had corrupt files, but the startup setting in the advanced options…

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,554 questions
asked 2024-06-29T11:07:28.17+00:00
Marin Kostas 0 Reputation points
edited the question 2024-06-29T11:08:24.0233333+00:00
Marin Kostas 0 Reputation points
2 answers

How to detect a device

Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,325 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,554 questions
asked 2024-06-27T20:25:13.6533333+00:00
Atilla Rüstəmli 20 Reputation points
commented 2024-06-29T00:27:08.61+00:00
SurferOnWww 2,326 Reputation points
1 answer One of the answers was accepted by the question author.

Navigation help with .Net Maui app

I am trying to figure out a way to navigate. Right now I have the main page as a shell page with some content, from here I launch Tabbed Page sections, there are several and each page contains 5-6 tab pages. This does not work in Android as you can't…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,115 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,554 questions
asked 2024-06-27T20:48:22.0333333+00:00
Phunction 226 Reputation points
accepted 2024-06-28T23:30:30.77+00:00
Phunction 226 Reputation points
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

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,703 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,491 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,554 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-06-28T22:24:38.2733333+00:00
MERUN KUMAR MAITY 531 Reputation points
0 answers

Error Verify Signature XML DGI UY always return false

I am working on validating the signature of an XML envelope in this case from Uruguay, but due to the signature verification method it always returns false using .Net C# The tests carried out with unsuccessful results, apply the following code that…

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,554 questions
asked 2024-06-28T20:09:36.53+00:00
Alexi Tomala 0 Reputation points
0 answers

Error Verify Signature XML DGI UY always return false

I am working on validating the signature of an XML envelope in this case from Uruguay, but due to the signature verification method it always returns false using .Net C# The tests carried out with unsuccessful results, apply the following code that…

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,554 questions
asked 2024-06-28T20:06:42.6466667+00:00
Alexi Tomala 0 Reputation points
0 answers

How do you use a bitmap to pan in Sharp DX Direct 2D?

I'm attempting to display dxf files using sharp DX. It's running too slow while panning so I'm trying to use a cached bitmap during this but I can't get the bitmap to show in the correct location on the render target. I've a link below for the class in…

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,554 questions
asked 2024-06-28T18:04:40.3933333+00:00
Forrest Crawford 60 Reputation points
0 answers

What's the correct way to render a bitmap while panning and zooming using Sharp DX Direct 2D?

I'm attempting to display dxf files using sharp DX. It's running too slow while panning so I'm trying to use a cached bitmap during this but I can't get the bitmap to show in the correct location on the render target. I've a link below for the class in…

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,554 questions
asked 2024-06-28T18:02:47.8366667+00:00
Forrest Crawford 60 Reputation points
1 answer

Scripts inside local html is not working with webview Eval in UWP Xamarin forms

Tried to update the html elements using script with webview Eval, its working fine in android and iOS but it is not working with UWP Xamarin forms. 1.webview.Eval to update the script : Script inside local html :

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,318 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
918 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,554 questions
asked 2024-06-13T05:22:24.0766667+00:00
Keerthana Sathiyanathan 0 Reputation points
answered 2024-06-28T17:12:46.0533333+00:00
Bruce (SqlWork.com) 59,806 Reputation points
1 answer

.NET 8 upgrade issue for functions using Durable functions and Orchestrator

I have upgraded Function which uses Orchestrator and Durable functions from .Net 6 to .Net 8 (isolated model) and after upgrade when I am trying to run the function, I am getting the error. An unexpected failure occurred while processing instance…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,542 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 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,554 questions
asked 2024-06-28T11:40:03.35+00:00
Vivek Nirale 0 Reputation points
answered 2024-06-28T16:28:55.2866667+00:00
Bruce (SqlWork.com) 59,806 Reputation points
1 answer

updateDeviceProfileAssignment returning 200 OK and not 204 No Content

The following issue I am having is that when trying to change the enrollment profile of an iOS device using .net and httpclient, I am getting back a 200 response with an empty object. I have tried both in my code and with in Graph Explorer. Just last…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,190 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,554 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,299 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,640 questions
asked 2024-06-28T14:11:09.5+00:00
Timothy Dowling 0 Reputation points
accepted 2024-06-28T16:26:49.97+00:00
Timothy Dowling 0 Reputation points
2 answers

Receiving validation error when trying to create a webhook subscription

I've been testing various ways to create a webhook subscription (with resource data), and I'm getting a ValidationError with no details as to what the issue is. I am developing in C#, and I have tested this using the Microsoft.Graph NuGet package and…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,190 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,554 questions
asked 2024-06-28T11:32:31.01+00:00
Steve Norwood 0 Reputation points
commented 2024-06-28T15:51:53.51+00:00
Steve Norwood 0 Reputation points
0 answers

How to make UWP MediaElement to be loop mode when casting to a TV?

I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…

Universal Windows Platform (UWP)
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,554 questions
asked 2024-06-28T08:17:01.82+00:00
Tom JD1 Xue 21 Reputation points
edited the question 2024-06-28T12:16:16.6833333+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
0 answers

Switching Between System Power Saving Mode in UWP app ,makes the app non-responded for a while

My UWP app was not responding for sometime, when switching between power Saving mode(windows settings) while App was running. To Reproduce the issue , Run the app Open Windows System Battery Settings -> Enable/Disable Power Saving Mode Now try to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,030 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
Universal Windows Platform (UWP)
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,554 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.
780 questions
asked 2024-06-28T10:13:12.27+00:00
Prem Kumar S 0 Reputation points
edited the question 2024-06-28T10:30:16.4833333+00:00
Prem Kumar S 0 Reputation points
0 answers

How to apply search in collection view with portion loaded data?

i want to display filtred product in collectionview defined as: <CollectionView Grid.Row="0" Grid.ColumnSpan="3" IsVisible="{Binding IsNoResult, Converter={StaticResource…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,115 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,554 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.
780 questions
asked 2024-06-24T16:24:32.32+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
commented 2024-06-28T10:06:12.08+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
1 answer One of the answers was accepted by the question author.

In WinUI3, How to make the TabItems load the corresponding page after clicking and selecting them

In WinUI3, TabView has some TabItems. how to make the TabItems load the corresponding page after clicking and selecting them. My codes as following, but they don't work( Just check the second tab). <?xml version="1.0"…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
743 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,554 questions
asked 2024-06-27T08:36:37.03+00:00
C CB 85 Reputation points
accepted 2024-06-28T09:13:16.31+00:00
C CB 85 Reputation points
0 answers

How to make UWP MediaElement to be loop mode when casting to a TV?

I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…

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,554 questions
asked 2024-06-28T08:11:39.2566667+00:00
Tom JD1 Xue 21 Reputation points