search code does not execute (xaml page,pagemodel or MVVM )
I'm trying to add a search bar to my app, but can not get the code to execute. I've placed breakpoints in the pagemodel but they are tripped. Xaml: <SearchBar x:Name="searchBar" HorizontalOptions="Fill" …
Error (active) CS1061 'RSA' does not contain a definition for 'ImportPkcs8PrivateKey' and no accessible extension method 'ImportPkcs8PrivateKey' accepting a first argument of type 'RSA' could be found (are you missing a using directive or an assembly refe
I am using Visual Studio 2022 and have set up a console application. It tells me that mportPkcs8PrivateKey is not implemented. This method is indeed implemented with dotnet core…
Get Results from Task.WhenAll for multiple tasks
Hi Folks, I am trying to get the results back from running multiple tasks. Each task point to a function and returns either true or false. Here is my code: var t1 = new Task(() => { CheckNC(); }) ; var t2 = new Task(() => { CheckNL(); }); var t3…
How to Write a DependencyProperty for a TextBlock when it is a child element of a parent Button class in WPF C#?
Hi there, I want to make a Dependency Property for a Text Block and the functionality of this property is to apply a Scale Transformation on the Text Block but I am unable to do that Because it's a child element inside of a Button class. I have a…
How do I receive the download progress of a Microsoft Store package? | WinUI/UWP
Hi. I'm installing a package from the Microsoft Store from my WinUI application, but I'd like to see the download progress. I have the following code on Constructor: PackageCatalog packageCatalog => PackageCatalog.OpenForCurrentUser(); And when I…
How to retrieve variables from the Watch List in Visual Studio using DTE?
Hi everyone! I'm working with DTE in Visual Studio and trying to access variables from the Watch List window. I have code to activate the Watch window, but I'm unsure how to extract the variables and their values. Here's a snippet of my code: var…
Custom fonts not working when uploading Maui Android project to Play Store
I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…
Tab Bar Content Titles Trimmed After Navigating to Custom WebView in .NET MAUI iOS App
I'm encountering an issue in my .NET MAUI application on iOS where the titles in the TabBar's ShellContent are being trimmed or cropped. This issue occurs only after navigating to a page that contains a WebView (referred to as "AppWebView") and…
T4 text templating in .NET Core and above
After some testing, it looks like the TextTemplating library that is part of VisualStudio (Microsoft.VisualStudio.TextTemplating.15.0.dll) can't be used in the newer "dotnet" command line toolchain as it depends on the WPF assembly…
Issue related to Debian/Linux OS
Hi, Is it right that we can run/execute VS C++/C# project within Debian/Linux OS?
Loading data and splash screen time
Hello, I am loading data to the app using such code now: private async void Page_Loaded(object sender, RoutedEventArgs e) { await CreateDataBaseIfNotExists(); //creates database if it doesn't already exists. await LoadData(); //loads data to…
How Use Constractor in SignalR ChatHub ...?
Hello Everyone, I have an application, part of which I use signalr for chat and I have implemented it. Messages are sent to groups correctly and there is no problem. At the end of the project, I decided to save each chat line in the database when sending…
How Can I Register and Manage Services in a Large C# Project?
Hello I will start developing a new C# WPF project. I need your information on something while planning. I will use the MVVM pattern in the project. I will create a large number of services to perform some tasks and use them in the relevant classes. I am…
Programatically turn on/off Japanese IME Kana/Romaji input mode
I am trying to programmatically turn on/off Japanese Kana/Romaji input mode. This is equivalent to the "Kana input" option in the IME input menu I have tried to use InputMethod.SetPreferredImeConversionMode but it can only sets the TextBox…
Allow only one call to web service method at a time
Hi all, I have an ASP.NET web service installed on IIS. I need to permit only one concurrent call to a specific web method? How can I achieve this? Can I use mutex? I don't have such in-depth knowledge of application pool, processes and threads... Thank…
Microsoft Fakes and real object constructor
I'm using .NET 4.8 and Microsoft Fakes to create Shim object for unit testing. This class (KRSampleManager) is using Lazy initialization to create an instance and implements IDisposable interface. namespace SampleManager { public class…
Blob and file transactions have significantly increased after upgrade to .Net 8 Isolated
Hi all, We have noticed a significant increase in blob and file transactions, and therefore significant cost increase, since upgrading our function app from .NET 6 In Process model to .NET 8 Isolated. Wondering if anyone has had a similar issue and…
How can I connect to Azure database from desktop application with non-static IP address?
Hello, I am working on a WPF desktop application. I created an Azure SQL database as a database. However, the connection constantly fails because the IP address changes constantly with the connection sentence I set through the application. What settings…
Try to delete all file coming with filesystemwacther and delete all file created by user.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading; using…
Why can't I use some modifier in method? C#
Hello, Why can't I use const for a string array and read-only for an integer inside a method? namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { } static void Summary() …