Content
How to display ContextMenu on certain TreeViewItem and highlight the selected TreeViewItem in WPF following MVVM
Following MVVM, I have developed a TreeView and now I want mouse right click to show ContextMenu on certain TreeViewItem. As you can see in the screeshot, I only want the ContextMenu to be displayed when mouse right clicks on the first level…
handling enter press on a form
Hi , Can someone pls suggest how to detect if the user presses enter key on his keyboard so that we can capture that event . i don't have and don't want a button(or a hidden button) for that purpose (as the size of the form is too small) .
minimum rows to display in datagridview
hello , is there a way by which i can set that there must be minimum number of rows is available to display in datagridview regardless of the data it has or not .
Special characters in a textbox
Hi , i have crated a textbox which shows current date . i want that user cannot enter special characters inside that except - or / . can you please suggest how to do it .
WPF custom animation thread
Hello, I have a small simple WPF application (I am learing by doing). I made some custom drawing on a Canvas declared in XAML, by using code in the corresponding C# file. Now I want to access the canvas from another thread to be able to apply geometric…
Gap between Text and underline of label control
Hi , is it possible to increase the gap between the text and underline in a label control . for example , below is a label with underline in vs and this is what i have to
How to fix double permission popup in xamarin ios web view
When I am trying to use camera in a web view, there are two permissions that are asked in iOS. One is the popup created from browser and the other is created from the Phone. Are there are any ways to avoid the browser popup for camera permission? …
Xamarin.Forms building with Pair to Mac XCode 15, building for iOS 17
VS Version 2022 Pro 17.6.5 Xamarin.Forms 5.0.0.2312 XCode 15 Xamarin.iOS 16.4.0.18 - Installed Manually Mac M2 Ventura 13.5.2 I am unable to debug my application on my Visual Studio. Another issue that started happening is I am opening and creating…
The type or namespace name 'Notes' could not be found
Hi, How to resolve such issue, to the line below? using Notes.Models;
Use Azure Function (.Net 6) with JwtBearer middleware
Hello, I couldn't find any official documentation on the following: I want Azure function to use bearer token authentication. Is it possible to use Azure Function (.Net 6) with JwtBearer middleware? So like in an ASP.NET app, set this code into…
Running Xamarin iOS Error simctl returned exit code 4
Hi Three days ago, my app ran well and deployed smoothly to Emulator on my mac until today when I tried to run again, my apps cannot run with the error Error on Visual Studio Severity Code Description Project File Line Suppression State Error error…

.NET Maui support - Splash image size
I'm using .NET Maui and would like to add the splash screen. Now Maui uses a single svg file. Checking the Android documentation, there's a new size for the splash https://developer.android.com/develop/ui/views/launch/splash-screen for Android v12 and…
Return values from a form
Hi , Which is the best technique to return values from a form and use that in another form . like using a variable or some other way . for example , i have a form with a textbox which returns a value . i want to use that value in the textbox of other…
How to run AI model in a Blazor frontend
Hi, What is the best way to run a AI model (programmed in Python) that has been deployed in Azure as a managed endpoint in the Blazor frontend of each user of a Blazor website? Is there a way to run the AI model in the Blazor frontend in a simple and…
Event for changing backcolor of form
Hi , suppose if i want to change the backcolor of a windows form by hard coding which is the best event to do it . like load or paint or shown or something else .
How to validate XML dataset when hexadecimal invalid character arrives
I am processing some xml document. while reading xml value through dataset, I am getting below error. System.Xml.XmlException: ''', hexadecimal value 0x02, is an invalid character. Line 1, position 989.' How to avoid this...? How to validate and…
Setting XML Root XMLNS
Hi, Everybody! I need to create a Shipment XML root whose xmlns is the following fictitious XSD URL: http://api.company.com/schemas/api/company-api-vN.xsd. <?xml version="1.0"…
Windows Forms Designer error : Value cannot be null. Parameter name: instance
I am developing an app using C# Windows Forms with framework DevExpress. My IDE are Visual Studio Community 2022. It is all okay. But after I am updating to Version 17.6.0 the window that I develop cannot load design mode with error message…
Problem converting SQL to Entitiy Framework
Problem: I have a batch job, that does intense writing to the db. I have got the task, to re-write it in Entity framework. The SQL code below, does only require óne call to the database. The sql below has been simplified with only 3 insert. But in my…
visual studio 2022 error mt1007 failed to launch application
I recently upgraded windows visual studio to 17.5.4 Windows Xamarin Forms to 5.0.0.2545 When I try to debug the Xamarin iOS application I get the following: error MT1007: Failed to launch the application…