Category "wpf"

WPF Drawing Wheel Color Picker?

I'm have try drawing color picker by Ellipse LinearGradientBrush. <Ellipse Width="200" Height="200"> <Ellipse.Fill> <VisualBrush Tile

WPF Textbox Validation Error binded to Variable

In a .xaml file, I have a number of Textbox objects that are linked to data paths as such: <TextBox Text="{Binding Path=Var1}"> These variables (like Var

Determ if a System Tray is expanded

is it possible to determ if the Windows Systems tray is expanded or alternativly if a click on the expand icon (small arrow) is happend? I could not found anyth

How to make adding controls in a WPF application faster

I'm working on a WPF app that lets users edit data records. For a test, I'm adding 50 rows to a tree view and this takes ~200ms. This creates noticable stutter

WPF RichTextBox - How to get second line?

I would like to choose the second or other line from RichTextbox instead of the first or last line. I know this is the code for selecting the first line and the

LibeCharts WPF - binding to a Series

I am struggling in very beginning with WPF and LiveCharts. I am trying to implement the Starting Example (https://lvcharts.net/App/examples/v1/Wpf/Components) b

How to Add Row in datagrid wpf

Private Property DataTable As DataTable Public Property DataView As DataView Public Sub New() InitializeComponent() DataTable = New DataTable()

How to nest formatted strings in XAML?

Is it possible to nest formatted strings in XAML without creating a custom class? Here is an example of what I want to achieve: Format a string, e.g. "inner sta

how to drag and drop point in oxyplot,i have no idea

i'm using oxyplot,i want to drag point in scatter series,but i hava no idea. i tried to add OnMouseMove but its not work. var _model0 = new PlotModel(); //axes

ReactiveUi: How can I replace the default IViewLocator when using AutoFac?

High! I am trying to replace the default IViewLocator of ReactiveUi/Splat in WPF. I am using AutoFac as container. My goal is very simple: ReactiveUi/Splat shou

if itemcontainerstyle is inside DataTemplate and a call the the main window is used an System.NullReferenceExc on start-up but works fine if ignored

when i try to call a event from the main wind if a control is in a template in itemcontainerstyle when the run a System.NullReferenceException: 'Object referenc

VirtualizingStackPanel with cache

We have to requirement to virtualize a ListView/ItemsControl with a VirtualizingStackPanel. Although everything works as expected, the Control's ItemTemplate ad

Binding Callback Function to a HeaderTemplate

How do I bind a callback function to a DataTemplate inside a HeaderTemplate in WinUI3? After reading various answers it appears the DataContext inside a HeaderT

How to include an XAML icon in another XAML file

I've downloaded the Visual Studio Image Library, which contains XAML icons. For example, this is the content of the file FolderClosed_16x.xaml: <!-- This fil

Could not load file or assembly 'Microsoft.Data.SqlClient' in .NET 6

I have developed a WPF app on .NET 5 (CRUD operations with Entity Framework Core). MSI packages are built with Wix toolset. Up to here everything works. I am cu

how Handy Control don't effect on my App theme?

I want to use PersianDatepicker in my WPF App. I use HandyControl For That. but when use it in my App All of My App themes changed. I use this Tag in my App.xam

multidimensional list remove duplicates only for that level

I am trying to build a treeview of crates from a program called Serato, how they build their crates in their program is by the files in a folder, however the is

multidimensional list remove duplicates only for that level

I am trying to build a treeview of crates from a program called Serato, how they build their crates in their program is by the files in a folder, however the is

Positioning a Windows.Controls.Grid in a WPF flowdocument

How can I specify programmatically the position of a new grid (created programmatically, see below) within a FlowDocumt I have already created via XAML. I want

Does a WPF app in the new Microsoft Store require signing?

Microsoft is rolling out the new store that accepts MSI/EXE apps. I've been granted access for my new WPF app. I'm new to WPF dev and struggling with what I sho