Category "wpf"

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 }

Remove Wpf Charting Legend

Can anyone help with wpf toolkit charting control? I want to remove the legend beside my chart, but I can't find the solution. Please help thanks. <Window

WPF nested data binding to control - why does it not work

I have searched google and stackoverflow alot to find a answer to my question without any luck. I find the solution to the problem. Ex: Data Binding to Nested

How to bind column header to property in ViewModel? (WPF MVVM)

I Have window that have DataContext that is bind to ViewModel object (VM1 for the example). VM1 have a lot of properties and one of them is a string that called

Call a function when button is clicked in a different window (WPF app)

I launch a window from a page of my wpf app and I would like to call a function when a button is pressed in the child window Here is the page that calls the wi

WPF TreeView multiple itemsSource

I want to display the following using a wpf TreeView: My objects are different, there is no Base class or Interface, I must define a HierarchicalDataTemplate

How to change WPF Rectangle Style Programatically

[EDIT] *I had forgotten to include the Exception returned 'System.Windows.Style' is not a valid value for property 'Fill'* This is my first post, I've alread

RabbitMQ Sample not working in WPF

I'm trying to use rabbitMQ under a WPF application.I've followed the sample that are present on rabbitmq site. The sender is a console application that does

Can I prevent the WPF ToolTip from showing up from inside the ToolTipOpening event handler?

I have a canvas with MANY shapes in it and I want each one of them to display a string ToolTip. In order to save some memory I wanted to set the ToolTip value w

WPF ComboBox SelectedItem dynamic binding

I'd like to bind the SelectedItem of a ComboBox to a specific item of an ObservableCollection inside the ViewModel. In the ViewModel I have one ObservableColle