Binding provides a simple and consistent way for applications to present and interact with data.

learn more… | top users | synonyms (1)

0
votes
1answer
9 views

WPF: Bind to element in DataTemplate in ResourceDictionary

I'd like to bind to a element's property (a ListBox's SelectedItems.Count in my specific case) that's dynamically inserted into my window from a DataTemplate located in a ResourceDictionary. I'd like ...
2
votes
1answer
19 views

Binding image in listview just displaying string

What's wrong with this picture? Instead of displaying a nice picture of a prehistoric plant, the string of the location of the bitmap is being displayed! Here's the XAML (snippet): ...
0
votes
0answers
16 views

GridViewColumn Header Binding Fails When In A Style

I have a ListView where the View contains a GridView and a number of column definitions. As Below: <ListView Name="SampleListView" ItemsSource="{Binding SomeSource}" > ...
0
votes
2answers
20 views

Windows Phone 8: How to Bind from ICollection

I'm on windows phone 8 project and i'm new on this platform. I was doing binding from xaml side very well but i generated another new web api classes and i couldn't bind any item from ICollection. ...
0
votes
1answer
13 views

Bind enum with ObjectDataProvider

I have an enum that bind to a ComboBox in my view. public enum MyItems { [Browsable(false)] Item1, [Browsable(true)] Item2, [Browsable(false)] Item3, [Browsable(true)] ...
0
votes
2answers
10 views

LostFocus before ApplicationBar Command

I'm binding a TextBox to a property of my ViewModel. When the user clicks on an ApplicationBar Button, a command is being called (I'm using BindableApplicationBar, which can be found on NuGet). ...
0
votes
0answers
34 views

ComboBox ItemsSource binding not updated after value selected

I have a ComboBox in WPF binding its ItemsSource Property to a Property returning an IEnumerable of String. The binding is just one-way. The class that contains the data for the ComboBox implements ...
0
votes
2answers
25 views

ComboBox (two-way) binding to object property

In the database, table TblPerson has a CHAR(1) field called Gender with a check constraint on possible values null, 'M' and 'F' I'm trying to display (and two-way bind) the (EF mapped to type string) ...
1
vote
0answers
20 views

MVVM Binding Problems with Pivot ItemTemplates Windows Phone 7

I have a Pivot element that has a header template and an itemtemplate with a listbox which also has a itemtemplate. The header template is bound to a list of "DOWS" which i create via code. This works ...
2
votes
1answer
29 views

How to display ObserveableCollection<T> in ListBox

I can't bind to my ObservableCollection<T> within my ListBox. I am using MVVM, WPF. The binding for the page works. My understanding is, the Grid (not shown in code) is bound to my ...
1
vote
2answers
30 views

WPF MenuItem.CommandTarget

Does anybody know what the CommandTarget property on a MenuItem can be used for? The documentation says the following: When used with a RoutedCommand, the command target is the object on which ...
0
votes
1answer
15 views

XAML binding windows phone template

I have a page showing pics with text below it (like a Tile), In xaml I simply bind to a image and text property, and then in the c# code I set the listbox's itemssource to my specific data. Now ...
0
votes
1answer
23 views

Spring BindingResult in MVC Controller method

Take this part of code for example @RequestMapping(method=RequestMethod.POST) public String addUserFromForm(@Valid User user, BindingResult bindingResult){ if(bindingResult.hasErrors()){ ...
0
votes
2answers
36 views

how to binding object-c control?

I would like to binding this object-control, but it is the first time and I have some problem can you help me? I have no problems with the properties and voids "simple" but the other I do not know how ...
0
votes
1answer
30 views

Command called too late

I have a ComboBox that looks like this: <ComboBox SelectedValue="{Binding Mode}" SelectedValuePath="Key" ItemsSource="{Binding MyModes}" DisplayMemberPath="Value" > ...

1 2 3 4 5 519
15 30 50 per page