I've a CollectionViewSource as ItemsSource of my DataGrid...on Window.Resources I've this definition:
<CollectionViewSource x:Key="ItemsPoolCollectionView"
Source="{Binding Path=MyObservableCollection, Mode=OneWay}" />
now, I would do the same definition from code, so I've done this:
Dim _cvs as CollectionViewSource = New Coll...
I want to bind the value property of a WPF ProgressBar to a dependency property that is updated during a long running process. If the long running process is called from the main thread then this blocks the UI (and hence the ProgressBar) from updating until the process completes - preventing the desired progress through the process being...
I need to bind a textblock.text property to a single element in an observable collection, or array element, and have the text update using the INotifyPropertyChanged or INotifyCollectionChanged, whichever is best.
Most examples describe ways to bind listboxes or other list views to entire collections, but my application needs to update ...
After trying several options of having a decent mechanism which allows to use ObservableCollections with the option to dynmically having them updated using an Edit window and binding, without having the global collections updated while making changes on the bound controls, so far the best solution seems to be : Clone the entity, detach t...
I have a WPF usercontrol that will dynamically have any number of gridviews. Each is essentially the exact same except for the ItemsSource. Therefore each have the same columns and the same RowDetailsTemplate. To be specific what I am actually doing is settings the columns to the bound values and then setting the RowDetailsTemplate to th...
I have a custom control that contains two elements that can be clicked (a button and a check box). I'd like to be able to put events in the XAML for each of these events.
i.e.
<Control OnButtonClick="SomeEvent" OnCheckBoxClick="SomeOtherEvent" />
I have no idea how to bind events like that. Any pointers?
The following is the ...
I created style to be used as my ListView's item template that contains a CheckBox and a TextBlock:
<Style x:Key="CheckBoxListStyle" TargetType="{x:Type ListView}">
<Setter Property="SelectionMode" Value="Multiple"></Setter>
<Setter Property="ItemContainerStyle">
<Setter.Value>
...
Good day,
First question here and just learning WPF, so please be gentle...
I'm trying to put together a TreeView whose items fire Commands. I'm sure there are many ways to accomplish this, but my approach has been to create a Style for the TreeViewItem with a ControlTemplate that incorporates a RadioButton for its Command functionalit...
Okay, so I'm fairly new to WPF and data binding, but I've searched and searched and can't seem to find an answer to this.
I have a database (called Inventory), and a dataset (called DevicesDataSet). What I'm trying to do is bind the dataset to a listbox, so that a specific device from the Devices table of the DevicesDataSet can be sele...
Possible Duplicate:
Binding a WPF ShortCut Key to a Command in the ViewModel
On a WPF window I have a menu-item that is bound to a command in the ViewModel:
<MenuItem Header="_Edit page" Command="{Binding EditCommand}"/>
The command is a RelayCommand which forwards the command to a method:
EditCommand = new RelayCommand(()...
I have created an object called Project that has different properties (strings and some custom objects), I have bound text fields to these properties to get user input. I have created a method that outputs this object to an XML file. However when I import this XML file back into memory the text fields do not become populated with the tex...
Hi guys. I'm new to c# so go easy.
Basically I build a data table ( and I have verified it's not empty) but it doesn't seem to get displayed in my wpf datagrid... I used this example here and applied it:link text
My datagrid remains blank.
Does that example look fine to you guys?
here is my code:
XACML:
<Window x:Class="WpfApplicat...