Questions tagged [itemsource]
134 questions
0
votes
3 answers
Changing Itemsources Object doesnt change Listbox (C# WPF)
I hope my title isnt too misleading, but heres a quick explanation.
As mentioned in the title im using WPF and I set the Itemsources of a Listbox to an ObservableCollection. I also made a DataTemplate for it to show the values correctly. However my…

Patrick
- 123
- 2
- 10
0
votes
3 answers
UWP ListView not loading items
I will explain my problem in simplest way.
I have been dealing with both listview and gridview and binding for a long time, but now I am having a unexplanable problem, so i really need some help.
Below is the xaml code of my listview.

Muhammad Touseef
- 4,357
- 4
- 31
- 75
0
votes
2 answers
WPF Itemcontrol datatemplate
I'm new in WPF and I can not work this one out hope you guys could help on this. The problem is that the DesignerItemTemplate is not working when its in the item control, I have try to use this directly to one item I can drag it around. Forgive me…
0
votes
1 answer
WPF how to combine two comboboxes with different itemsource into one
Lets say that I currently have two Comboboxes, one that displays the contents of the Productions list and one that displays the contents of the Seasons list from the viewmodel.

kostas
- 3
- 6
0
votes
1 answer
binding combox in wpf datagrid
I have a list that I populate in the init of my viewmodel:
ListOfEmployees = new List(employeeRepository.GetEmployees(true, true));
I am trying to get a combobox in a datagrid to populate from this list.

steveareeno
- 1,925
- 5
- 39
- 59
0
votes
1 answer
Populate my ListView with item source from class
I have this Singleton that hold my ObservableCollection as a memeber:
public sealed class Singleton
{
private static volatile Singleton instance;
private static object syncRoot = new Object();
public ObservableCollection…

david hol
- 1,272
- 7
- 22
- 44
0
votes
1 answer
MVVM Itemsouce button command and calling another view
'PLease help'. I need to call another view from view model when edit button pressed. showdailog() i can not use anymore. I am calling another child view from this view. please help
…

Misu ZAMAN
- 5
- 4
0
votes
0 answers
Change ListView items order when working with item source
I have this collection:
ObservableCollection Files;
This collection is full of objects and i put this list inside my ListView:
ItemsSource="{Binding Files}"
Now when my application do the work vai Parallel.Foreach (via different threads)
i…

mark yer
- 403
- 6
- 12
0
votes
1 answer
updating datagrid using itemsource
I have an Item source which is ObservableCollection however whenever I update the it. the program do not show the item source until i remove the item source and return it.
when I am doing that it stuck my GUI.
private…

Barakr
- 59
- 9
0
votes
1 answer
WPF DataGrid: UI Does Not Update ItemSource
I'm using a DataGrid to get input from the user and place it in a List. I've used the DataGrid.ItemSource property to bind the DataGrid to a List I've created. During runtime however, when I edit the DataGrid the List that is bound to it is not…

DCB2524
- 31
- 1
- 8
0
votes
0 answers
How to read datagrid checkbox status when populating the datagrid with an itemsource in wpf
I have a DataGrid that i am populating using its items source and setting it equal to a DataTable's default view like this:
exampleDataGrid.ItemsSource = exampleDataTable.DefaultView;
Here is the XAML for the datagrid im using:

papasmurf279
- 52
- 8
0
votes
2 answers
WPF ComboBox Binding : MVVM
I am trying to bind WPF combobox ItemsSource with a collection using MVVM design pattern. following is my code
XAML:

Naresh Ravlani
- 1,600
- 13
- 28
0
votes
1 answer
WPF Itemcontrol and datatemplate do not show properly
I have a problem using ItemControl, DataTemplate and Visifire Charts.
First, the code in XAML is as follow
…

Ben
- 957
- 1
- 11
- 37
0
votes
1 answer
Passing a Command to a TextCell inside a DataTemplate in Xamarin.Forms
I have a ListView, ItemsSource bound to the ViewModel, and the items are a custom class (containing the Name of the menu, the Icon, and a Type that is of a Page, which will be launched upon tapping the menu point).
I've discovered that it is…

fonix232
- 2,132
- 6
- 39
- 69
0
votes
2 answers
Get Filtered or Searched result of GridControl
i used devexpress component
i set data for ItemSource property of GridControl in code behhind like this :
grid.ItemsSource = query ;
query is List
when i filtered or searched in gridcontrol , display rows changed
now i want to get the changed…

Mohsen Graphic
- 1
- 3