Tagged Questions
0
votes
0answers
29 views
C# WPF. Binding Property Change but UI not updating when mutli-threading
I have a project, where I bind TextBlock's Text property with a get/set in the codebehind. However, when the application loads, changing binding property can not update the ui.
MainWindow.xaml:
...
0
votes
1answer
14 views
Access Button's Tag property from ControlTemplate in XAML
In my Window I have a series of six buttons that indicate the six possible states for one of the properties of my ViewModel. The one that's active needs to be highlighted. To do this, I've created the ...
0
votes
1answer
17 views
Bind to DataContext Property from within DataGridColumn
Property Foo is in my DataContext
ViewModel {
Visibility Foo;
}
But I cannot figure out how to access Foo inside a Column. In this case, I assume it's probably looking for Foo in whatever ...
0
votes
0answers
15 views
Sorting not working when using Converter for Binding in WPF
I am using Telerik's RadGridView. For a some columns, sorting feature is not working. I am binding those columns via converter as below:
<telerik:GridViewDataColumn Width="Auto"
...
0
votes
2answers
41 views
C# WPF Binding to DataBase
Hei all. If something would be not clear then please tell
I have dataGrid and TreeView.
I have loaded data base as Entity Data Model and some tables.
One of these tables "relation" should show to ...
0
votes
1answer
36 views
WPF binding on generic list
In my WP8 project, using MVVM, I bind an object to the View. That object has a generic list which I need to bind on a LongListSelector. Since I cant convert my list to observable, how can I bind it ...
0
votes
0answers
20 views
Advice for visualizing dynamically generated chart data in WPF
Hi I'm new to WPF and am writing an application that receives data from a variable number of sources. Sources get added at runtime. Data is generated at runtime from the sources.
Right now I am ...
0
votes
1answer
31 views
WPF - Change Textbox value according to another Textbox value
Ok.
I have a 'Person' class with such properties: PersonId, Name and Age.
So far I've added 3 different people and set the DataContext from a List. My validation rules are working ok.
What I want to ...
2
votes
2answers
40 views
Bind Items to MenuItem -> use Command
I have a MenuItem, which has a collection of items in it. It looks like the File -> Open Menuitem.
So:
File
Open
Open from DataBase
File 1
File 2
File 3
XAML Code:
<Menu>
...
-1
votes
1answer
28 views
Bind RichTextBox Document to Embedded Text File Without Use of Code-Behind
I currently have a large license file embedded in my program that I'd like to bind a RichTextBox to. I've tried multiple methods but found no good way to do this without including something in the ...
0
votes
0answers
37 views
PropertyChanged from background thread not updating the view only on windows8
I wrote a C#, WPF, .NET 4.0 application.
A textblock in the view is bind directly to a string property on the model which is updated from a background thread, when the property value is changed, a ...
0
votes
1answer
35 views
Binding certain elements from a list to a combobox
I have the following question:
In my view model I have a list with an object that has a property Name and Value, both strings. I want to bind the list to a combo box in my view, but I want to display ...
0
votes
0answers
29 views
Binding when the Property is Vector3D, which is a struct
I'm trying to bind 3 TextBoxes (as a first step, but really 3 DataGrid columns) to components of a Vector3D property. Notice, though, that Vector3D is a struct and is thus value-type.
The idea for ...
0
votes
2answers
39 views
Binding ViewModel property in DataTemplate
I have a Prop1 and a Prop2 property in a ViewModel (XYViewModel.cs) and this XAML (XY.xaml):
<GridView ItemsSource="{Binding Prop1}">
<GridView.ItemTemplate>
...
0
votes
1answer
48 views
DataGrid reverts the values back to original when leaving row
For some reason, when I updated values in a DataGrid, they are not persisted in the in-memory object? In fact, during editing of cells the new values are displayed, but as soon as I tab onto the next ...