Category "wpf"

WPF when resize column width or row height, inner control's properties automatically generated

After I change column width or row height width guideline in design mode, control's (in that row or column) height, width, margin property automatically generat

C# WPF Datagrid slow Scrolling

I have a problem with scrolling my datagrid. I am using a WPF C# application with the 4.7.2 .NET Framework. I load about 5000 datasets into a datatable, which I

WPF Cefsharp google login

I know that google login for cefsharp has been blocked for long time now, but is there any way to bypass this for example calling a actual chrome browser for th

Determine when the popup of a combobox encounters the edge of the screen and changes target origin changes to the top-left corner of the target area

I have an issue with popup placement. If the combobox encounters the edge of the screen then the target origin changes to the top-left corner of the target area

WPF Button shortcut key using Dependency Property

I am using a set of standard buttons, reused across a WPF app and want to add a shortcut key to each of the buttons. So I have a ControlTemplate containing the

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