Category "wpf"

WPF app with embedded WebView2 suddenly shuts down without any visible exception when opening Oookii save file dialog

I'm trying to use an embedded WebView2 control in my WPF application, and open an Ookii VistaSaveFileDialog in response to communication from the webview. Howev

Force WPF BitmapImage to reload from its UriSource

I am trying to build a custom control, based on Image, which simply makes the image reload (from the same URI) on a timer. The original image is displaying fine

Get windows 10 default like icons

I'm currently building a wpf application and am looking for a "generic" looking set of icons like they are used in windows explorer, they can be something betwe

WPF Change Visibility during design-time

My CustomControls UI element Visibility is bound through a BoolToVisibilityConverter, see code below : <cc:CustomFFU LabelText="FFUZoneF_2-1" HorizontalAlig

Wpf navigation from one page to another and data grid loading large data

This is the desktop application I am creating in WPF. I am using Hamburger menu library. Desktop application Wpf I am struggling with this for last one week.

Build error: Reference PresentationCore could not be resolved

I have a WPF C# application hosted on GitHub attached to Travis. I configured my .travis-ci.yml this way: language: csharp solution: FaceDetection/FaceDetectio

What Tools are Used to Draw Software Documentation [closed]

I would like to draw diagrams like this one: (taken from here.) What tools are available to create such figures?

Getting exception Width and Height must be non-negative; while adding items to a Virtualized Treeview in WPF

I am using a virtualized Treeview using Ui virtualisation by setting properties in TreeStyle and using in the ItemsPanelTemplate. The treeview is get

Inputted Items sometimes appear empty in Data grid

I have ItemsControl and a DataGrid in a WPF UserControl. this is how it looks like when the "Add to card" button is pressed a ViewModel instance is added to Obs

Prevent application being runned from network drive

I wonder if it was possible to prevent or at least detect if my application is being used from a network drive instead of a local folder/drive. I wish to infor

Change timer at runtime c#

Iv'e created a timer using dispatcher time : time = new DispatcherTimer(); time.Interval = new TimeSpan(0, 0, 0, 0, 80); and I use it for the speed of an ob

WPF Add menu in line with title bar

I've been searching for ways to get a menu in line with the title bar like the below image. It has the logo on the far left that acts as a menu item and the res

C# Winform LiveCharts does not know how to plot

I'm trying to draw a graph with some arrays. I got 4 arrays (Time,Temprature,Speed,Water). I want to add Time array on AxisX. The others are going to be on Axis

Programmatically creating WPF/ASP.net CRUD UI from Database

I have a requirement to build forms directly from a specific dataset format. I've gone one step of being able to create the database from the dataset using F#.

How can I access the Color from the SolidColorBrush of the Background in a ColorAnimation in XAML

I'm trying to do my own button style. I want to the MouseEnter and the MouseLeave event to use the color chosen for BorderBrush and Background respectively. My

Is it possible to send a message from a WPF app that is hosting a CefSharp control, to the web app running in CefSharp like WebView2 can do

With WebVeiw2 you can send a message to a web app running in it using WebView2Ctrl?.CoreWebView2?.PostWebMessageAsJson(message). Is there a way of doing this in

WPF Label Justify & Distribute Text

I have a Label just displaying a title. How can I justify the text? and how can I distribute the text? Can I use a label or do I have to use another control?

Create a dropdown 'panel' area from a WPF ribbon?

The WPF ribbon (System.Windows.Controls.Ribbon) includes a number of controls which you can add to your ribbon having "dropdown" style behavior where clicking t

Accessing a static object from Style/template in Generic.xml?

I have a double called LoadAnimAngle which simply holds the angle of a spinning loading icon, which gets rotated over time. This variable is defined in my MainV

How to bind elements in separate xaml files?

I have a MainWindow.xmal which has two TabItems: <TabItem Header="Config" ... /> <TabItem Header="Results" ... /> I have a separated Config.xaml