Top "Wpf-controls" questions

WPF controls include UserControls, which are composite collections of other controls, and CustomControls, which are controls built with WPF styles and templates.

Create a grid in WPF as Template programmatically

I want to create a basic user control with a style programmatically. In this style I want to add a …

c# wpf wpf-controls frameworkelementfactory
TextBox TextChanged event on programmatic versus user change of text contents

I would like to differentiate between changing the text programmatically (for example in a button click handler event) and user …

wpf events wpf-controls
WPF: Cancel a user selection in a databound ListBox?

How do I cancel a user selection in a databound WPF ListBox? The source property is set correctly, but the …

wpf mvvm wpf-controls
Could not load assembly, Exception from HRESULT: 0x80131040

Exception: Could not load file or assembly 'WPFVisifire.Charts, Version=4.1.0.0, Culture=neutral, PublicKeyToken=99d724542e4db593' or one of …

wpf charts wpf-controls visifire
WPF User Control's DataContext is Null

I have a user control where the XAML of the control can bind to the appropriate properties from the parent's …

wpf wpf-controls
Animate Expander in WPF

How to animate the expanded and collapsed actions of a Wpf expander control?

animation wpf-controls expander
How do I create a dashed border with rounded corners in WPF?

The Rectangle element has StrokeDashArray which allows it to be drawn with dashes, but it doesn't support rounded corners. The …

c# wpf xaml wpf-controls
The default value type does not match the type of the property

I have this class public class Tooth { public string Id {get;set;} } And this custrom control public partial class ToothUI : …

c# wpf wpf-controls
An integer value in WPF Resources?

Is that possible to set an integer value in WPF control Resources?! <UserControl.Resources> <SolidColorBrush x:Key="…

wpf wpf-controls
How to get WPF Window to autosize to content and no more

I have a dialog containing 2 TextBlocks, a Progress Bar and a cancel Button. Here is the XAML: <Window x:…

c# wpf xaml layout wpf-controls