Category "wpf"

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

WPF change bound command for keybindings based on property?

I have a xaml window that I want to bind the Escape key to different commands in my view model depending on the value of a boolean property. IsSearching == tru

How to Get the Index of ListView Row on Button Click

I am making a wpf Application and encountered a Problem. I have used a listview and added a Button in it via Xaml. <ListView x:Name="list_View" Grid.Colu

WPF ComboBox Multiple Columns

I am just wondering if there is a wpf combobox control that can contain multiple columns? And if not, what XAML I need to use to achieve this? I am just look

Making a walkie talkie wpf application

I've been really interested in making a walkie talkie wpf application, however I'm not too sure where to start. I was wondering what kind of technology would be

Cannot Create custom command in WPF Application

Overview I have a WPF application written in C# .NET 4.0. There are a number of buttons in this project. Currently, every EventHandler for the button click e

WPF Richtextbox Application.Find Text spanning Multiple runs

I'm trying to implement the Application.Find command for the WPF richtextbox. Let's say I'm searching for "expert". Sounds easy enough. But due to the nature o

in WPF. How to scroll Objects in ScrollViewer by mouse-dragging, like as iPhone?

it's done well to scroll by mouse-wheel or scrollbar seed-dragging. but scrolling by mouse-dragging contents on scroll view is not done. How can i implement thi

How to scroll Listview Item to a next item on click the next Item Programatically Wpf

I am trying to build a scrollable Calendar. I am getting values from a JSON dynamically from which I am using minimum year and maximum year and so on. Below is

WPF ScrollBar styles

Is it possible to create scrollbars like in this picture? This picture was taken from this link: http://codesdirectory.blogspot.be/2013/01/wpf-scrollviewer-co

The type forwarder for type 'System.ComponentModel.INotifyPropertyChanging' in assembly 'System' causes a cycle

I am working on upgrading WPF application which is built using .Net Framework 4.6 to .Net 6. While upgrading a few assemblies, I encountered this strange issue

Check if WPF window is open

How can I check wheher a window is open or not. Is it possible? For example: if (window.IsOpen) { // window is open } else { // window is not open }