Category "wpf"

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

How can I link Image Source = "?" with Value from DataTable (path image) in WPF?

I am looking to change the value Source = "img / Best / 1.png" for the DataGrid cell that I clicked on, with a click, a button, any option. How can I bind the v

How to find dynamically created XAML component by Name in C#?

How to find dynamically created XAML component by Name in C#? I created next button and put it into the Stack Panel. var nextButton = new Button(); nextButton

Publish WPF clickonce application to github

I have published my wpf project to the dir publish and it is under source control (github) So I want to add a download link to my readme.md and according to: Is

How to support ListBox SelectedItems binding with MVVM in a navigable application

I am making a WPF application that is navigable via custom "Next" and "Back" buttons and commands (i.e. not using a NavigationWindow). On one screen, I have a L

Auto expand hierarchical data rows in Xamdatarrid

I have a Xamdatagrid having hierarchical data.I want to display all such records expended automatically.So that user doesn't have to click on + icon for each re

Fill a ListView from Postgres Database in WPF C#

I'm using WPF C# Visual Studio 2012. I have a Listview in my xaml like: <ListView Name="listview" Grid.Column="0" Grid.ColumnSp

WPF MVVM Datagrid Save User-Defined Column Order

Can anyone point me to a solution where i can save the column sort order of a wpf-datagrid in a mvvm scenario? Most solutions i have found so far are mostly uti

ShowBalloonTip Not Working

On Windows 10, the ShowBalloonTip method of NotifyIcon NEVER shows the balloon tip. This would appear to have something to do with Windows itself. If I go to S

ListView SelectedItem not highlighted when set in ViewModel

I have a ListView with a ItemSource data binding and a SelectedItem data binding. The ListView is populated with a new ItemSource every time I press the Next o

Moq verifies in debug and fails sometimes in run

I've developed a wpf-mvvm application that uses wmi to document what is built into a given Computer into a json file. I've used the mvvm model to develop the ap

Binding to a structure

I am trying to bind a listview item to a member of a structure, but I am unable to get it to work. The structure is quite simple: public struct DeviceTypeInfo