Category "wpf"

How do I fill a datagrid in my View with my datatable in my ViewModel

I am working on an MVVM WPF Application managing Users. I want to display all users from the Users Table in a datagrid in my UsersView. Here is my dataGrid

WPF Control lagging behind children WebView2 control

I am trying to make a draggable window sort of thing in wpf (.net core 6) and I am using webview2 to make a browser window. However I discovered this strange be

Textblock Runs Binding perfomance

(Sorry, google Translate) I'm writing a WPF chat and I'm running into a Textblock.Inlines binding performance issue. The problem occurs when switching tabs TabC

Coloring the first and last rows in a datagrid WPF C#

Can you guy tell me a great way of coloring the last row in a datagrid in WPF, I have to color the first and last rows, I found a way to do the first one by doi

How to change a property of a specific element in a DataTemplate from code behind?

I have a bug in my code. FindChild<T>() is searching a Element which is named "PasswordTextBox" but because "PasswordTextBox" is in the DataTemplate there

How to perform a correct binding using wpf MVVM

I'm working on a bank application in c# wpf using the MVVM pattern which allows a manager in charge of a branch to display the data of one of the customers of t

containing type does not implement interface 'IComponentConnector'

For some reason visual studio will not compile the below code. I am on .NET 6 WPF. Has there been any breaking changes that doesn't allow me to extend System.W

XAML DataTrigger Not Firing?

I have a property in my ModularClientModule class called ExistsOnDisk. When that property is set to false, I want to disable the CheckBox. For some reason, this

Remove a BlurEffect from control WPF C#

I have a border containing a textblock, which has a blur effect applied to it: <Border Grid.Row="2"> <Border.Effect> <BlurEffect Radi

How do i properly bind the IsPressed property to my command parameter?

I've made a custom button to bind a command to a (custom, routed) IsPressedChanged event so that the command is executed both when the button is pressed AND whe

C# Utilizing cancellation tokens for each Task created

I have a task method that generates temperature profiles in my MainWindow but is called in another form when the user inputs data for a lot (an item produced) i

How to set MainWindow title from core project in MVVMCross WPF Application

I am developing a WPF app using MVVMCross. I started with the TipCalc Tutorial where we have the following MainWindow.xaml: <views:MvxWindow x:Class="UI.Mai

why Task delay not working in Window_KeyUp and Window_KeyDown methods?

I have three buttons. The timer should have started when I pressed any of the 3 optional buttons. For example. When I press the blueHeadTopBtn button, the timer

Why does the IsPressedChanged event not work with an interaction trigger but other events do?

Edit: To make it short: as AFigmentOfMyImagination pointed out in his answer, there exists no IsPressedChanged event. However, here is the original question: I

Powershell WPF checkbox binding

I have a MenuItem Checkbox in my main window as well as in another two windows: <MenuItem x:Name = 'FileMenu' Header = '_File'> <MenuItem x

Cefsharp in WPF rendering only when resized

We have a WPF application with CefSharp 79.1.360.0. On one specific computer, CefSharp does not render unless the application is resized. On the DevTools we see

Install A folder from the web into a directory with C#

I am trying to make an installer app for an aircraft for X-Plane 11. I need to find a way to get a folder and install it to a user defined directory. How do i d

WPF nested user controls getting error 26: ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's

First of all, I started from a week to studying WPF, so I will appologize for any mistakes I wrote here in code. I have the following situation: First user cont

How do I access all XAML elements with a given tag in C# WPF?

In my XAML, I have various error messages in the following structure: <Border CornerRadius="3" Background="#FFF3C7C7" Margin="6" Visibility="Collapsed" N

WPF Canvas: Rotate a grouped shape

In my WPF application, I am trying to rotate a set of grouped shapes inside a canvas. I am getting grouped shape object TOP/LEFT position using the formulae men