Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

How to inject a dependency into a WPF IValueConverter

I want to add DI to my WPF IValueConverter. I already found this question here, but it only works with Xamarin. How to resolve a dependency in IValueConverter in Xamarin.Forms using Prism/DryIoC. So ...
06luki06's user avatar
0 votes
1 answer
52 views

PathGeometry Isn't Displaying in WPF Xaml

I have a ResourceDictionary called Icons.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas....
JoshQuake's user avatar
  • 129
0 votes
0 answers
54 views

Problem with propagation validation errors to user control from parent window

I'm trying to learn WPF and MVVM pattern. But I'm hopeless how validation and passing validation errors work in WPF. I tried a Copilot to help with the problem, but it is stuck in circle with ideas. ...
Feng Lee's user avatar
1 vote
0 answers
53 views

How do I grab a program's DWM thumbnail from it's process handle in .NET 6.0 WPF C#

I am trying to recreate the Flip3D feature from Windows Vista (pictured below), but now I need to get the DWM thumbnails from each program. I already have each program's process handle, but now I need ...
Eric William's user avatar
0 votes
0 answers
67 views

XAML WPF vertically centered TextBlock not accurate

As you can see in the image the text is not quite centered vertically which really triggers me do you have any ideas? <StackPanel Height="50" VerticalAlignment="Center" ...
mohamad VideoEditor's user avatar
-1 votes
1 answer
124 views

WPF menu in MVVM [closed]

I am writing an app in WPF with MVVM which needs a menu that will be present (although probably with slightly changed items) across multiple views (UserControl). How can this be done consistently with ...
J.Valášek's user avatar
-2 votes
2 answers
48 views

Many Radio buttons as Toggle buttons with altered style

I have in my WPF application 20 radiobuttons. I want them to look like togglebuttons and have 2 states: With content "IN" and green background when they are unchecked With content "OUT&...
mudahan's user avatar
  • 49
0 votes
0 answers
37 views

Duplicate Points from Scatter Plot are displayed in Live Charts Core

I'm new to C# WPF and Live Charts Core, and I'm trying to build up my knowledge in that field. I have an application that shows every second the output that comes from a random number generator as a ...
Anas Mousa's user avatar
2 votes
1 answer
127 views

How can I use dependency injection with UserControl instance inside a Window in WPF?

I want to do a navigation bar and the most common way to navigate in WPF application is using UserControls and data templates but if I using dependency injection i can´t use xaml like this: <Window ...
Lund's user avatar
  • 31
0 votes
1 answer
79 views

Why is the user control not showing everything in the window?

I have a wpf application with a user control embedded which contains a menu. When the user selects an item, the CurrentVW in the viewmodel renders whichever user control applies into the lower left ...
Avdecha's user avatar
-1 votes
0 answers
68 views

How to get an Ellipse to change colour based on a Binding? [duplicate]

I've yet to figure out how to get my Ellipse to change from Red to Green based on a Binding. XAML <Window x:Class="WpfApp1.MainWindow" x:Name="_window" xmlns=&...
quickblueblur's user avatar
0 votes
0 answers
46 views

MdXaml doesn't render images from html code

I'm trying to display formatted with Html images from Markdown file in WPF, but without success. Markdown file Html code part: <img src="PrsTiefe1.PNG" alt="PrsTiefe1" width=&...
Witold Lisiecki's user avatar
0 votes
1 answer
65 views

Formatted string with a TextBox inside

I have a part of xaml dialog that: It's two Labels and TextBox inside the phrase. I need to localize label and in other languages "days" is not in the end of phrase. So I need to use ...
Bogdan's user avatar
  • 11
0 votes
1 answer
73 views

What kind of object should I create to have its property be bound to a control's property

I created a class derived from DependencyObject and added properties to it which were registered as DependencyProperty: public class DependencyPair : DependencyObject { public static readonly ...
Hürol Aslan's user avatar
0 votes
0 answers
71 views

tray icon with statuses c# wpf

In WPF the tray icon resource is loading but icons are not showing in tray. I have to show the icons according to status of logged in user like in the Skype. I use .Net Framework 4.0. In code you can ...
Давид Асадян's user avatar

15 30 50 per page
1
2 3 4 5
11345