Questions tagged [itemsource]
134 questions
0
votes
1 answer
binding itemsource of two way in codebehind?
there is a listbox was binding with itemsource.
I want to change the data of collection after then.
the click button of adding data doesn't make change the listbox.
then I add the update after the itemsource, but it makes PresentatonFramework.pdb…

tom tom
- 29
- 10
0
votes
2 answers
DisplayMemberPath databinding
I have a puzzled problem of databinding in WPF.
There is a listbox in XAML which it has linked with ItemSource,
but when it runs, it shows the lists of class names.
so I have applied to DisplayMemberPath, but it doesn't helpful.
and also I'm…

tom tom
- 29
- 10
0
votes
1 answer
Why do we use itemsource actually?
I am new to .net and i studied on msdn that it "represents a control that can be used to present a collection of items."
By this line what i understand is suppose if i use it for TabControl then it provides a control which will enable several…

user3735822
- 337
- 2
- 12
0
votes
0 answers
wpf setting datatable as itemsource get list but isn't visible
DataGrid1.ItemsSource = mgr.srcData(0).DefaultView 'returns datatable
DataGrid1 has all the columns hidden but only 2 visibles
Running the application works, appear the rows but doesn't show the values, only blank rows although I can get their…

giwo12
- 1
- 1
0
votes
0 answers
How to bind a datagrid inside a RowDetailsTemplate to another datacontext
I have a Datagrid that is bound with the property ItemsSource="{Binding}" to a DataContext in the codebehind. Thats fine.
Now I would like to add a datagrid inside the RowDetailTemplate. I want to bind this inner Datagrid to a complete other source…

Andre
- 1
- 1
0
votes
2 answers
Adding a small popup on a wpf listbox that is already using itemsource
Here is a portion of my wpf-xaml code :
…

user3742045
- 1
- 1
0
votes
2 answers
how to delete a selected template in a listbox
i have a listbox which has a data template binded to task from xml file,i want to delete selected template on button click,but its throws me an exception "Operation is not valid while ItemsSource is in use. Access and modify elements with…

Safwan
- 171
- 1
- 17
0
votes
2 answers
WPF ItemSource Not Working in XAML
I am writing a chess UI in WPF.
I have set the window datacontext in XAML:
I've defined the 'local' namespace as the namespace which holds the view…

PeteGO
- 5,597
- 3
- 39
- 70
0
votes
2 answers
WPF ItemsControl binding issue
I have problem with Binding: see my code
This is Xaml code:

Abdulsalam Elsharif
- 4,773
- 7
- 32
- 66
0
votes
0 answers
Force ItemsControl to treat UiElements as data
How can I use on ItemTemplate on an ItemsControl whose Items is a list of UiElements?
Note : I know this is not the intended use, but it would be useful for debugging purposes

pastillman
- 1,104
- 2
- 16
- 27
0
votes
2 answers
How to set Datagrid itemsource to EntityCollection in Silverlight?
I'm working on a Silverlight project for CRM 2011. I have an EntityCollection resulting from a QueryExpression and i need to display these entities in a datagrid.
I have checked several solutions online, but none is working.
I would appreciate your…

user1927272
- 27
- 1
- 6
0
votes
1 answer
XAML - ListView DoubleTapped Catastrophic failure
I get a Catastrophic failure when a ListViews ItemSource - ObservableCollection gets loaded with less items, when using a Double Tap event. Now a wrote a very simple example of this, and I still get the same error.
This is a Windows 8.1 Store…

Edwin le Roux
- 41
- 4
0
votes
1 answer
How will i show the first item of an observablecollection in a Listbox?
i have this declaration:
public ObservableCollection Collection { get; set; }
i tried something, like:
myListBox.ItemsSource = Collection[0];
to show the first item of Collection in the Listbox control, but it gives error.
how…

burhan
- 121
- 1
- 9
0
votes
3 answers
0
votes
2 answers
TreeView with multiple ItemSources
I need to show items from two different sources in my Tree View. How can I achieve that?
Details:
Item source A: This item source will have a header, n children, where each child can have up to 32 sub children.
Item source B: This item source will…

WAQ
- 2,556
- 6
- 45
- 86