Xaml Controls Gallery Project Fails
05 Mar 2022 Running VS 2022 Com Ed under Win 10 Trying to Build and Run the XAML Controls Gallery.sln I load the code, change nothing and Buld the app but I get an error: Certificate could not be opened: XamlControlsGallery_TemporaryKey.pfx.The…
How to create sample of responsive Fonts between WinUI3 and WPF which meets WER spec
HI i want to create a responsive Fonts between WinUI3 and WPF which meets WER spec any reference for this?
I get System.Windows.Style as text of the tooltip of the header in a datagrid
I want to define a style for the datagrid columns that get the text of the tooltip through an attached property. But I get the text System.Windows.Style instead of the text. The code is this. XML resource file that defines the style: <Style…
Insert path in ResourceDictionary
Hi, How to insert this code in the ResourceDictionary : <Path Fill="Red" Stroke="Black" StrokeThickness="0.3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeDashCap="Round"…
with .Net5+ we have a wpf Mediaelement to play, stop, etc. media files. But why where is MediaCapture to make videos from pc camera.
I use .net6 with wpf to capture videos from pc camera and play them upon user request
WPF UserControl DependencyProperty do not have BindingExpression?
I found that some of the Dependency properties of my UserControl do not have BindingExpressions. I was confused all day. P.S: i use [PostSharp/AOP][1] to auto implement INotifyPropertyChanged and DepencenyProperty Register. I believe my problem…
c# wpf web browser change background
i work a project in c# wpf and using webbrowser. but my web browser background color is white. i want to change background color to #F222. how to make this my web browser is bottom of the window
Running/Migrating a WPF application into Linux
Hello, We have developed a WPF application that is widely used by users who have the Windows operating system on their machines. Now, we would like to also reach users who use Linux. What would be the best approach for such a migration? I did a…
window.getRangeFromPoints() doesn't return correct range in some cases.
We are trying to fetch content from visible area, but this doesn't return correct range in some cases. What we have observed is that this might be due endnote/footnote reference in b/w but it works fine with endnote/footnote in some cases. How do we…
I have a problem with my WPF Designer in VS Community 2022
I have a problem with my WPF Designer in VS Community 2022. The designer does not load but gives the following error message: "Some assembly references are missing. Creating to restore the NuGet cache can fix this problem". Since I am new…
How to implement INotifyPropertyChanged like interface in my WPF project?
I have a WPF app where the data source of a datagrid are filtered data of a excel worksheet. The worksheet looks something like this : I'm loading the filtered data from that sheet to a datagrid using the below code on window load event : …
How do stop Lost_focus on click of ComboBox in WPF?
I use C# WPF What I need : When focus lost on ComboBox , check if ComboBox has no a valid item Show a Error . My Problem : In this case when I click on the ComboBox the LostFocus event will fire but it seems didn't happened , in google search I found…
Why are the datagrids not streching in my WPF app?
Hi, this question is linked with my previous 2 questions (Q1 and Q2) as I am trying to combine the design elements from both of them to a single new WPF app but struggling to do so as the datagrids are not stretching as intended. This is what my XAML…
Setting MenuItem icon from binary image, in WPF (by C#)
First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I have custom Context Menu and MenuItem. I want to set the MenuItem icon source from the binary image. These are my codes: XAML: …
VSTO Word crashes with multi instance native window handle
I want to notify word on ribbon click/actions so I have created class from nativewindow and handling parentnotify win messages but word gets crashed when I have multiple instances open and as soon as I close one of them then others gets crashed. Below is…
WPF : Curly lines are getting drawn differently on different height( y coordinate)
Issue: I am facing issue in wpf while trying to draw curly lines i.e curls are appearing fine at some points but not on all points for y coordinate. Observation : Looks like it draws curves correctly only if y coordinate is multiple of width of rect…
How to make TabItems fit the app window & some other design changes..
How can I make the TabItems of a TabControl Fit the entire window except for the header even when maximized or when in normal mode? Also, how do I remove the thin line between the header and page in TabItems(shown by arrow in attached image) so that…
WPF touch events
I have a WPF app. In this app context menus are defined in XAML inside border elements. Unfortunately I don't have a Windows device with touch functionality. 1) If these elements are operated by touch and the user presses a little longer on one of…
WPF-Blend How can I edit Item Template or Control Template in designer in Blend VS 2022
Hello everyone, I have a treeview: <TreeView ItemTemplate="{DynamicResource AccountsTreeViewItemTemplate}" /> and here is the template: <HierarchicalDataTemplate x:Key="AccountsTreeViewItemTemplate"…
DirectX renderer .net6 port in WPF
Hi, I am porting a directx renderer to .net6 from .net framework 4.8. Previously we could use D3DImage and draw to that in a wpf window. Now since its missing, i manage to draw using the window handle but now problem comes are GUI buttons, it draws on…