Category "wpf"

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

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

Multi linear brush in same fill rect only in xaml

Can i use lineargradientbrush to fill a rect in xaml only combining different direction? I'd like to have it in a drawingimage... ex image below

FFmpeg library in WPF

I am building a softwere that can decode and encode using Wpf and c#, and I want to do that using, FFmpeg libary. I saw the ffmpeg autogen warpper but I couldn'

WPF airspace issue and WinForms IDesignHost

I'm trying to migrate portions of an app to WPF. One of the near-impossible parts is an IDesignerHost (i.e., a Windows Forms Designer). So for that, I want to u

Using DrawingImage as Button Content in WPF

I want to use a DrawingImage, created from an svg, as content for a WPF Button control. If I set the DrawingImage to Button.Content it only shows the name of th

How to support light and dark mode title bar in wpf c#?

So, I'm trying to customize my wpf app a bit, but thought I would be better to leave the title bar as it is and not do a custom title bar. Problem is, the title

Sharing a window in Teams with a custom WindowChrome flashes the original window chrome

I have a WPF desktop application with a window with a custom chrome. As soon as I set the WindowChrome style-property of the window, I have an issue when sharin

Trouble binding ViewModel to View, as part of a ListViewItem DataTemplate with ReactiveUI

I'm having some issues trying to display a view in a ListViewItem Data template in reactive. I have a ListView in, for example ReceiptView.xaml whose source is

How do I code a browse file button that lets the user upload their own STL file into a STL viewer?

I am currently trying to integrate an STL File Viewer in my WPF application. I have been using the HelixToolKit to do this and currently can display an STL/OBJ/

Two Identical applications which communicate over a TCP socket connection on the localhost

C#/XAML .NET WPF ... Both applications need to have the ability to connect with each other, and both should have listeners. How would I do this as I know that u

SetVirtualHostName within WebMessageReceived event handler doesn't work

I'm trying to dynamically create an image within a WebView2, using a source passed in from the WebView2's containing application. The source image exists on an