Content
Opening the default e-email app
I use this code to open the default application and attach the file. But this code tries to open the Outlook app. For example, my default email app is the Windows 11 main app, but some other people in window seven, or XP, might be another app So, this…


Contact Us form
Hello I am creating a contact us form The idea here is that people contact, the developer (me), with a bug or future request So, the user will type his/her email, and some comments will be sent to my personal email address. private static void…


filter & save to xml function doesnt work viewmodel
Hello Morning: First i read xml file to fill the datagrid edit, save the xml file, then export the datagrid to excel file using OpenXML, then read the excel file to fille the datagrid. When i jsut read the xml file, i can filter the datagrid and edit…
Why is the combo box cursor/caret moves to the beginning when down arrow is hit?
In my app I have a combo box <ComboBox ItemsSource="{Binding ComboItems}" SelectedItem="{Binding SelectedCBItem}" StaysOpenOnEdit="True" Text="{Binding SelectedCBItem,…


WPF Mousemove is a noticeable lag
I am making a UserControl called VolumeScrollBar to control the volume a video player I am working on. Now the problem I am having is when I slide my SwitchPath it moves noticeable slower than my mouse. How can I fix this ? note: everything is working…


In WPF, I want to handle the start and end of Resize like WinForms
I need an event in WPF which can tell me when does the window's border stop being dragged, because I can't run my large code every time SizeChanged event triggers.
Subclassed Properties Not Binding
In my ViewModel I have this subclass: Public Class Printing Public AccountName As Boolean Public AccountNumber As Boolean Public Expiration As Boolean Public SecurityCode As Boolean End Class which I use as follows: Private _PrintList As…


Download form URL and be able to click on it
So, I am doing shared file functionality. Right now, I am successfully uploading the file to Azure, and then putting the link in an email address, but I have some problems Even though I am inserting a URL, is not blue (Like a URL, that I can click on) …


seralize object returns empty file after save
Hello All, Morning: I'm reading a XML file to fill the datagrid have no issues; then i modify the some values in the datagrid then save back to the xml file without changing the structure of the file. When i tried to seralize the file, empty file is…
Share URL of files
Ok so I was trying to implement the windows ten share UI in WPF, and because is a pain and I need it to be backward compatible with Win 7. I am trying another approach I create a new Container in azure The new container name in "share" And…


How to find the index of a newly added item in a ListView collection
I have a ListView element using a GridView. The ListView.ItemsSource property is bound to a CollectionViewSource. When I add a new item to the collection, the item appears successfully in the grid but I cannot determine the index at which it appears…


Issue with KB5017262 - Cumulative Update Preview for .NET Framework 3.5 and 4.8 for Windows 10
We faced a problem in our WPF application when KB5017262 has been applied on our computers. Our application uses the VirtualizationStackPanel and set the flag IsVirtualizingStackPanel_45Compatible due to performance issues as explained in the post…


Wrap overflow items in listview to new row?
Hi. I have a listview where i add custom items, after changing and trying alot things, no matter how many items i have added the items will not put overflow items to the next row when it runs out of space in the window width. Also, all items seems to…


Is this a right way to change DataGrid's value programmicality in C# WPF?
I want to be able to easily change the values of datagrid cells at any time Is this helper function a good solution? : public static DataGridCell GetCellConfig(DataGrid DGR1, string NAME_SUTUN, int ROWINEX) { var TheCol =…


How to set Focus on new row after TAB Pressed in the last row in C# WPF DataGrid?
I'm using C# WPF , I have a DataGrid that is bound to an ObservableCollection , I want to keep focus on DataGrid's row when user is entering value with keyboard on DataGrid, I mean when last row is focus after value entered , istead of lost focus on…


What is the best way to communicate with the database through Datagrid in C# WPF between DataSet and Entity?
I use C# WPF, I am programming an accounting program with a SQL Server database, in this accounting program, data is inserted, updated, and deleted by the user directly in a data grid, which contains a textbox and Combobox elements. In an issue…


How to sum duplicate row specific column values using SpreadsheetLight ?
I've got some excel worksheets like I'm trying to export the data to a SQLite database using SpreadsheetLight library. Now these sheets may have some duplicate rows (i.e. the columns BP_NO, NAME & BL_NO have the same value as previous row). In that…
How to detect Windows Application Dark mode
What is the way to detect windows application dark mode setting (If it is dark or light), in a C# WPF application. Settings > Personalization > Colors > “Choose your default app mode” Screenshot from Windows 10 operating system. I am aware of…


WPF Canvas.SetLeft Problem
set value not changed
How do I get published WPF app to work with .NET6
Hi, For a long time I have had a WPF application running in .NetFramework 4.8 and finally took the step to port it to .NET6 to get the LTS that follows. However I now face an issue with publishing. I have a Network Drive folder that I publish (ClickOnce)…

