treeview with + and lines
hi, how to make treeview with node symbol as + symbol (instead of triangle) which converts to - symbol when expanded, and how to add lines (dash lines) that makes it easy to follow the intendations of the tree. thanks in advance
Windows Presentation Foundation
Restrict portions of an application - C# Wpf
Hi, i am making a c# wpf application that has several pages and i want to protect certain pages from being accessed by certain users. what would some good aproaches to doing this be? I would really appreciate your help.
Windows Presentation Foundation
WPF problem with using decimal points with ValidationRule and Lost Focus
here is my Code <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" Grid.ColumnSpan="3" Height="auto" Grid.RowSpan="2" > <TextBox …
Windows Presentation Foundation
Deployment WPF as self contained
Hi, I used visual studio 17.3.4. I published WPF app as self contained in .NET 9 to folder , the publish process succeeded. But the generating exe is not running ? Why? How it can be solved ? Thanks,
Windows Presentation Foundation
How to Keep New at Top of DataGrid
Consider the following code which sets up a DataGrid: ocExpenses.OrderByDescending(Function(ve) ve.ChargeDate) dgExpenses.ItemsSource = ocExpenses Dim ecv As IEditableCollectionView = dgExpenses.Items ecv.NewItemPlaceholderPosition =…
Windows Presentation Foundation
WPF RadioButton Binding Issue with Dictionary in MVVM
Hello, In my WPF project, I'm trying to filter data by binding the IsChecked states of RadioButton controls to a Dictionary<string, object> property named Filters in my ViewModel. However, when users change the IsChecked state, the setter of…
Windows Presentation Foundation
WPF MVVM: Dictionary<string, bool> Binding Issue (SetProperty Not Triggering)
Hello In my WPF MVVM project, I'm using a Dictionary<string, bool> to store filtering options. I'm updating this dictionary using the SetProperty method and binding it to the IsChecked property of RadioButton controls in my UI. However, when the…
Windows Presentation Foundation
Win11 - User32.GetRawInputData fails to read data since 24H2
Background: We are using HwndHost class to host child window inside WPF application. From WndProc method we are forwarding input messages (WM_INPUT) to child process/window using User32.SendMessage. The child process/window WndProc method then receives…
.NET
Windows Presentation Foundation
Windows 11
How to Put New Row at Top of DataGrid
I have a DataGrid with a DataTable as its Source. I would like the new row to be at the top of the grid. All of the pages I've looked at for NewItemPlaceholderPosition show it to be a property of an IEditableCollectionView. Is there a way to put the…
Windows Presentation Foundation
Understanding %temp%\.net Folder | WPF | Single File | Self Contained | WebView2
When developing a single file self-contained WPF application using .NET 8 that uses the WebView2 component, a folder is created under %temp%\.net while the application is running. What is the purpose of this folder, when and how is it created, and is it…
Windows Presentation Foundation
Impact of Changing Framework Order in runtime.config.json on Application Stability
Description: I am working on a .NET 8 WPF application that undergoes obfuscation using SmartAssembly. During the build, runtime.config.json is generated automatically, but SmartAssembly picks WindowsBase.dll from Microsoft.NETCore.App instead of…
Windows Presentation Foundation
DataGrid TextBox Search using Ctrl + F and F3
I am building a WPF MVVM application. I have a DataGrid, like so: <DataGrid Name=“Employees” AutoGenerateColumns=“False” CanUserAddRows=“False” EnableColumnVirtualization=“True” …
Windows Presentation Foundation
XAML

UI Slows Down When Listing Large Data (3000+ Records) in WPF Application
Hello, I am developing a library automation system using WPF and MVVM. My application contains more than 3000 book records, which I list using ICollectionView and ObservableCollection. However, while loading and displaying the data, the UI slows down…
Windows Presentation Foundation
WPF DataGrid resizing column causes extreme scrolling
I have found a behavior with the stock WPF DataGrid that I can't explain or prevent, but it feels like a bug. I am curious if anyone has run into this and what the fix or workaround is. Steps to Reproduce: When using a DataGrid with several columns…
Windows Presentation Foundation

How to control the Visibility property of a UserControl object dynamically using Binding property?
I am working on a .NET C# project to learn MVVM. I am struggling to control the Visibility property of a UserControl dynamically. The login screen (userView.xaml) is a small centralized box that has two userControl views named signInUC.xaml and …
Windows Presentation Foundation
How to reference global resources in user controls in wpf class library projects
I created a WPF class library, and then added a UserControl "Card.xaml", and a resource dictionary "GlobalRes.xaml", I hope to use the style resources in GlobalRes in the Card control. As shown…
Windows Presentation Foundation
C#
How to get the custom WPF dialog box in visual studio
I am using webview2 to display the page on the wpf dialog box initially the issue is there was visual studio icon that was coming by default on the top left I want to remove that icon so that I used WindowStyle="ToolWindow" due to this my…
Windows Presentation Foundation
Windows 11 22598.100 Tooltip problem with WPF apps
I'm finding that Tooltips in WPF V4.8 apps (and earlier versions) are not working in Windows 11 build 22598.100. They appear but then immediately disappear. It happens in all WPF based apps. Tooltips are ok in Winforms apps and also .NET 5.0 WPF apps are…
Windows Presentation Foundation
Windows 11
How to change Windows Lock Screen background without creating a UWP app?
I need to programmatically change the Windows Lock Screen background, but my application's logic is quite complex, and it can't be achieved using the built-in Windows functionalities. I know that it's possible to create a UWP app and use the…
Windows Presentation Foundation
How to number rows in dataGrid
Hello. I am using datagrid. Is it possible to make it possible for the user to add a combined row or with columns by clicking on the table? And how it is possible to make numbering of lines as an example? If a combined string is encountered, then the…
Windows Presentation Foundation
C#
