1
vote
1answer
16 views
ObjectDataProvider wpf local type not found
I have had a look but I can not find the answer to this error (That I understand!).
I am working through this article here CodeProject Datagrid practical example
and trying to modify the code for my ...
0
votes
1answer
48 views
Bind TextBlock to data or just set the text
I am implementing a real time system that needs to update many TextBlocks multiple times a second. Specifically I need to update TextBlock.Text and TextBlock.Foreground.
In general is it better ...
0
votes
1answer
25 views
Why doesn't my dependency property change propagate to my usercontrol
I'm building a Windows Phone 8 app. I have a UserControl whose contents should get updated asynchronously. My model implements INotifyPropertyChanged. When I update a value in my model it propagates ...
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
0answers
10 views
DatGridRow datatrigger overwritten by DatagridTemplateColumn
I have a style defined for DataGridRow
<Style TargetType="{x:Type DataGridRow}">
<Style.Triggers>
<Trigger Property="AlternationIndex" Value="1">
...
1
vote
0answers
18 views
WPF Datagrid binding with vici coolstorage CSList causes cast error
When I try to use a CSList as the ItemsSource for a WPF DataGrid, I get an error
Unable to cast object of type 'System.Object[]' to type 'Product[]'
I'm not entirely sure it is possible to use ...
0
votes
0answers
16 views
Merge Grid column Header in WPF
I have a wpf Grid, i want to merge the two Column Header.I have tried using the below code the problem here is the column spawn to 2 but in the cell is one that why the for each column grid line is ...
0
votes
2answers
28 views
Bind a button to the selected item
I have a button and want to change the click handler every time I change tabs. I was hoping to perform this with Binding.
<Window x:Class="BWCRenameUtility.MainWindow"
...
1
vote
3answers
36 views
WPF databinding after Save button click
I have an app and a Settings window with TabControl containing couple of TabItems. Each of them have some fields (textboxes) which are databinded to the same Singleton object.
Is there any elegant and ...
0
votes
1answer
34 views
DependencyProperty fails to update window datacontext
I have a bad case of semi working bindings between a usercontrol with dependencyproperty and a window where i have a custom class as model in datacontext.
My window
<src:BaseWindow ...
0
votes
0answers
17 views
add new column to datagrid, based on contents of 1st column of grid, using something like SUMIF.. wpf databinding
Good evening all,
Using WPF databinding MVVM, I am attempting to bind data to multiple graphs and datatables.
So far, from an XML file I create an observable collection, and have databound the ...
1
vote
1answer
38 views
Bind ComboBox to Dictionary and the Selected to the Dictionary Key
How to bind the Selected to Dictionary Key?
The formatting of the Value may change.
Dictionary is char, string
<ComboBox Grid.Row="4" Grid.Column="0" DataContext="{Binding ...
0
votes
1answer
51 views
Not binding data from one window's Textbox to another window's Textbox
Data Binding from one textbox to another is not happen properly .Here is the below code am using.
EDIT:
Mainwindow xaml:
<Grid>
<TextBox Name="txtBox1" AcceptsReturn="True" ...
0
votes
1answer
35 views
How to set DataContext of a single control to code the behind
How to set DataContext of a single control to code the behind?
Cannot use DataContext of the Windows as it points to something else.
For a single control I would like to set the DataContext to ...
4
votes
1answer
31 views
Is the Indexer of an object somehow accessible through its TypeDescriptor?
I am having a hard time obtaining information about an object's indexer through the TypeDescriptor - just to be sure, I mean that kind of thing:
class ComponentWithIndexer
{
public string ...