Skip to main content
1 vote
0 answers
94 views

In case of large number of items Context Menu is slowing down WPF application view rendering

I have following context menu defined as a part of the DataTemplate in xaml: <DataTemplate DataType="{x:Type viewModel:OverviewAnnotationItemViewModel}"> <views:...
Djomla's user avatar
  • 13
0 votes
1 answer
84 views

How can I resolve issue about BindingExpression in WPF c#?

I am working on a configuration editor and I was having issues binding ObservableCollection to combobox items in XAML. My setup: I am using Prism I am also using MaterialDesignThemes in the project ...
NeoGenesis521's user avatar
0 votes
3 answers
50 views

Getting selected item of datagrid, which is an element of an observable collection

I've found lots of options for getting the selected item of a datagrid - easy. However, I have a property (DataGridViews) bound to an ItemsControl in xaml, which is an ObservableCollection. ...
EMCA's user avatar
  • 1
-1 votes
0 answers
33 views

MigraDoc chart odd behaviour when both min and max are given absolute [closed]

I’m using MigraDoc to add a chart in a PDF, but I’m facing an issue with the X-axis scaling when setting small minimum and maximum values. When I define a narrow range for the X-axis (for example, ...
apl's user avatar
  • 7
0 votes
0 answers
84 views

How can I bind sets of columns to collection items? [closed]

I have this view model bound to the DataContext of a UserControl: public SomeViewModel : BaseViewModel { public IEnumerable<Products> Products { get; set; } ... } public class Products {...
patsy2k's user avatar
  • 655
0 votes
0 answers
46 views

WPF DataGrid with DataGrid Template Column. Getting Mouse Wheel Scroll to work

I have a datagrid. On of it's columns is a template column containing a further "sub" data grid. This allows me to display hierarchical data and looks pretty good. <DataGrid Name="...
FunkyDexter's user avatar
0 votes
0 answers
62 views

Trouble implementing app version expiry (forced updates) in C# WPF on .NET 5

My current implementation for version expiry always says the publish date is invalid. I use .csproj buildtask to integrate the build date into the executable during compilation then check it at run ...
Abraham .M's user avatar
0 votes
4 answers
158 views

Is there a way to debug xaml file in Visual Studio?

I'm working on a WPF project targeting .NET 8. I have a breakpoint set on a line 127 in xaml file, but the debugger never hits it, even though I expect the corresponding UI logic to execute. The ...
s342's user avatar
  • 25
0 votes
1 answer
91 views

WPF TreeView how to align the control?

I want to build a web page–like effect that displays a directory tree with multi-level nesting. The left side should show the directory names, and the right side should display operation buttons ...
sendreams's user avatar
  • 391
2 votes
0 answers
42 views

Can I impersonate a gMSA (managed service account) with LogonUser/WindowsIdentity to test folder write access? [duplicate]

I’m building a Windows installer (WPF, .NET 8) that needs to validate a chosen account (either a domain user or a gMSA) can write to several directories before installation. The simplest way I’ve ...
Adam's user avatar
  • 133
0 votes
0 answers
42 views

How do i disable the Slide Over Submenu on Hamburger Menu

In my application a hamburger menu by DevExpress is used. All user controls are collected in several groups. Icons of each group are displayed in the menu. When clicked on the menu expands inline ...
CuzImSkyz's user avatar
1 vote
1 answer
93 views

How to get the HWND handle of elements in .Net MAUI [duplicate]

I'm integrating the Dahua CCTV SDK (for live cameras) into a .NET MAUI application. I've successfully implemented this in WPF using HwndHost and in Avalonia using NativeControlHost, but I'm struggling ...
Guilherme Schneider's user avatar
0 votes
0 answers
57 views

How do I properly remove the white bottom right corner of a ListView in WPF

So I have this scrollbar style to make the scrollbar look a bit better than the default one. And when my ListView uses it, it looks great, until both scrollbars become visible, because then it starts ...
JohnA's user avatar
  • 636
0 votes
0 answers
74 views

How do I create a custom MouseButtonEventArgs in WPF?

I need to pass additional data in a WPF mouse event, so I'm trying to create my own event args inheriting MouseButtonEventArgs. What's the correct way to subclass it? I can't get it working how I want ...
Pascal's user avatar
  • 35
2 votes
3 answers
133 views

Right align Custom Caption Button - Syncfusion Dockingmanager

Syncfusion Dockingmanager, WPF C# App, all packages at latest version After successful adding a custom caption button to a Dockingmanager window, I'm not able to right align (or right place) it, just ...
user3262353's user avatar

15 30 50 per page
1
2 3 4 5
11339