Task - await - synchron - async
Hello! My goal is to send a request and receive an answer. I have a C# WinForm application. The button is synchronous Task<(bool, string, int)> task = Task.Run<(bool, string, int)> I can write it that way for the call, that is usual and…
How to replace OperationContext in new V12 SDK Azure.Storage.Blobs
I'm switching from Microsoft.WindowsAzure.Storage to Azure.Storage.Blobs. In the former versions I could log retries, this seems to be missing in the new SDK. I used OperationContext for this: var context = new OperationContext(); …
How to register device on Entra ID programatically
Hi , I want to register my local device to Entra ID using c#. I have gone through the Microsoft Graph API documentation as well but didn't get any information related to this topic please help me.
I am using the MVVM pattern and I want to get the value of the property in the OnPropertyChanged event
I want to get the value of the property in the OnPropertyChanged event. I would rather not use reflection.
Issues with Access Permissions in PhoneLineTransportDevice API on Windows 11
I am currently working on a hands-free application on Windows and using the PhoneLineTransportDevice API. To utilize the features of this API, I initially request access permissions using the PhoneLineTransportDevice.RequestAccessAsync() method. This…
REST interface possibilities
Hello, I have seen a code snippet like this, can I return more than two objects in this task? Then I can ask it like this. bool responseState = false; string responseData = ""; (responseState, responseData) = await…
shut off monitor will flash display,by use SendMessage command.
SendMessage function Win32 API Windows and Messages Similar problems monitor-will-flash-before-shut-off-or-monitor-will.html screen recording onedrive using System; using System.Runtime.InteropServices; namespace ConsoleApp { …
Changing Taskbar (Shell_TrayWnd) Color to Transparent
0 I found a way to change color to fully transparent, by researching structure of DesktopWindowXamlSource of Taskbar (Shell_TrayWnd). I'm curious is it possible to somehow change BackgroundFill in DesktopWindowXamlSource to Windows.UI.Xaml.Media.Brush…
<Title> tag not reflected in AssemblyInfo.cs
Hello <Title> tag is not reflected in the generated AssemblyInfo.cs. ConsoleApp1.csproj <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> …
Validate Xml file
Hello, I just need to verify if a file is xml, no specific structure, so just loading to an xml parser and if no exception is thrown at load, I'm fine with it, so I use: Dim doc As XDocument doc = XDocument.Load(InputStream, LoadOptions.None) Check for…
Help Needed: Errors in Initial .NET MAUI Project
I have created my first .NET MAUI project several times, but to my surprise, errors appear without changing any line of code. Although the application runs fine, the lines remain underlined. I have captured a screenshot so you can see the issue and guide…
I dont understand why OnPropertyChanged is not firing in neither my Model or ViewModel
I am using the MVVM Community Tollkit and below is the generated code. I also included my Model code and the OnPropertyChanged Method. I put a breakpoint in the generated code on the property Spousessn and it was fired and OnPropertyChanged in the…
How to Create a Device on AAD Using Microsoft Graph API ?
I'm trying to use the Microsoft Graph API to create a device in Microsoft Entra ID. I need to generate a device ID and include it in the deviceid property of the POST request. Additionally, I want to know if this API call can join my Windows machine to…
Timer Function returns 404 on consumption plan. cronjob but http fn invokes ok
Timer function returns 404 from both postman and Az Portal test/run. Http function executes from Postman and from Az Portal test/run, OK. App is deployed from GitHub Action. I have used Restart and Refresh but cron job does not fire. Publishing model:…
C# app, Long Path support on Windows 10 post-1607, .NET 4.6.2.
Hello, I've got an app where long path support is now needed. It's running on Windows 10 post-1607, long paths have been enabled via group policy. When the app was targeting 4.6.1, it threw the PathTooLongException what a System.IO.FileInfo object is…
How to get SSO SAML token using C# from Azure Active Directory
Hi everyone, Just a quick question. Is it possible using C# to authenticate an account in Azure Active Directory and retrieve an SAML token back? If so, how can we go about doing this? Many thanks
.Net Maui Validate Property of a Model in the ViewModel Class
I am using MVVM along with the MVVM Community Toolkit. I have a Constructor in my .Net Maui ViewModel public EmployeeEditViewModel() { CompanyInfo= new PYEModel(); } I have an Observable property in the .Net Maui ViewModel…
XDocument vs XmlDocument
Hello experts, To load and parse PAD xml from string which one is recommended to use, ie faster or more…
![](https://cdn.statically.io/img/techprofile.blob.core.windows.net/images/ofQD8GBS0U6YYGKocDXMyQ.png?8D8915)
How to scroll in the tabs area in TabView in WinUI3 by using code
There are many tabs in a TabView Control in WinUI3 App. I made a function: pin a selected tab to top. After set it to the top (meaning the first tab ), I make it be selected. Everything is ok, but the first selected tab may be hidden if I had previously…