0
votes
1answer
23 views

How to use DataContext?

What I am trying to do is simply have a combobox populate with data from an sqlite table. While I have done this with code methods, I wold really like to do this in what I can see is the better WPF ...
2
votes
1answer
26 views

Can't find visual tree element when data binding to gradient stop

Trying to make a DataTemplate style, where it should change the colour of a couple of gradient stops based on the value of a boolean 'IsReported'. This is a MVVM Project. However, when I add items to ...
3
votes
1answer
20 views

Creating template for indexed property

I have a view model that contains a collection of Item Attributes, which in turn each contain a path to an image. There may be anywhere from 0 .. N item attributes in the collection. A stackpanel in ...
0
votes
1answer
18 views

How to get object bound to DataGridRow in Xaml?

There is DataGrid with ItemsSource as ObservableCollection. ParticipantViewModel having property named ExpenseType, Currency etc. For some specific expense types participant can change currency and ...
0
votes
1answer
29 views

Binding WPF - escape charakcter “@”

I've problem with Binding to variable which name startswith @. Code: <TextBlock Text="{Binding @object.name}" Grid.Column="2"></TextBlock> Anyone knows how to do it?
0
votes
0answers
75 views

C# 'if' Binding value revisited

I'd like to hide DataGrid column controls based on an enum property value called Flags. It is provided by interface IAccount. The check box should be visible only when Flags contains an Editable ...
0
votes
0answers
56 views

Direct Coding XAML in C# (WPF)

Is there a way to directly write XAML code for a bound variable in C#? What I mean by this is, if I have an XAML object databound to a C# variable, would I be able to directly write XAML code for that ...
1
vote
1answer
42 views

WPF UserControl Binding

I've been trying to find a solution to this problem, but I'm quite confused by the possible approaches I've found on the Internet. I have created a UserControl containing a slider for DateTime. ...
0
votes
0answers
37 views

Cannot bind DependencyProperty of type IList from both XAML and Setter

After implementing the propsed code from here: Cannot bind ObservableCollection to List dp from xaml I found out that if I had several instances of the control in the same page, the IList recieved ...
0
votes
2answers
45 views

Simple ListView data binding

I'm trying to display data in a ListView with WPF and C#, and I'm confused by the different examples and methods I have seen. I'm looking for a fully working example similar to my program, or a list ...
0
votes
3answers
24 views

xaml Convert ID to String without using ComboBox

I've been using code like this <ComboBox ItemsSource="{Binding Path=CompaniesViewModel.CompaniesCollection}" SelectedValuePath="CompanyId" ...
1
vote
1answer
29 views

Binding treeview to object

Bit new to WPF, so i'm just trying to get my head around some bindings in the context of treeviews. First, some code. In my main window i add my namespace; xmlns:WPFFM="clr-namespace:WPFFM" My ...
0
votes
1answer
25 views

Master-Detail Binding

I am trying to implement simple master detail databinding C# WPF in Xaml. On the left side I have a listbox which is properly generated and on the right side I have a datagrid. When I click on left ...
0
votes
1answer
54 views

Set WPF Image source from List<T> based on combo box selection

I have a SearchResponse class that is returned to my viewmodel. public class SearchResponse { public ICollection<SearchResult> Results { get; private set; } public string ...
0
votes
0answers
24 views

how to access to the main data context in the datagrid binding?

I have a control which name is "Principal" and this control has a dataGrid. <DataGrid.Columns> <DataGridTextColumn Header="IDVideo" Binding="{Binding IDVideo, Mode=TwoWay}" ...

1 2 3 4 5 289
15 30 50 per page