Questions tagged [itemsource]

134 questions
2
votes
1 answer

wpf combobox itemssource collectionviewsource vs direct binding

I saw that a combobox itemsource can be binded in two main ways: Direct binding CollectionViewSource
andrea
  • 1,326
  • 7
  • 31
  • 60
2
votes
1 answer

DataTemplates to display a collection of Points as Ellipses in WPF

In my application, the user is supposed to click over an image, and as he clicks some dots appear. Also he can remove them by right clicking, etc. So I have a test project composed of a single Window (xaml + codebehind) with a canvas, and I am…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
2
votes
1 answer

How to deal with ListBox with huge amount of ItemSource in wpf?

There is a ListBox with huge amount of ItemSource(Observablecollection, moore than 400000, include picture, string, and so on) in my WPF work, and ever time I run it, it took many time and space to load the ListBox. Is there any good solution to…
Chobits
  • 65
  • 7
2
votes
2 answers

WPF DataGrid DataGridTemplateColumn ComboBox ItemSource

I'm trying to create a very simple CRUD WPF application. I have a datagrid with 2 columns, ID, and Category. For category, I want to be able to select from a list when adding and editing. Here's what I have so far in the xaml:
1
vote
1 answer
1
vote
0 answers

ItemTapped doesn't work when sorting listview

Im working on a xamarin project where you can toggle every object in the listview to show more information. So the toggle worked until I tried to sort the list after Id number. Do someone have a solution for this kind of problem? Code for…
fredsoftx
  • 13
  • 4
1
vote
1 answer

Wp7 ListBox ItemSource ObservableCollection IndexOUtofRange and Items are not updated

I have the following issue: I am creating a Windows Phone 7 application and I am using a ListBox which is bound to an ObservableCollection people. The implementation of this you see below: public class Person { private string _id { get; set; } …
user459611
1
vote
3 answers

How to show Picker items according to localization language in Xamarin.Forms xaml

A standard way to create a picker with xaml is the following. https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/picker/populating-itemssource
1
vote
1 answer

Changing the collection of Itemsource Dynamically in HierarchialDataTemplate of TreeView

TreeView has to be populated recursively with different collection. I was able to populate perfectly when i had only one type of collection from second level. But now I have a requirement to handle two different collection after second level. I…
User1312
  • 43
  • 6
1
vote
1 answer

Refreshing a datagrid without ObersvableCollection but with a property of my viewmodel

I have a Datagrid. I want to refresh it when a event occurs. So I have this : I made…
user7345171
1
vote
1 answer

populate static items into c# WPF combo box

I am trying to add the static values in to my combo box which is being written in WPF c#. I have following xaml piece of code which adds the items into my combo box.
Raj
  • 151
  • 1
  • 14
1
vote
1 answer

How to correctly bind to an Itemsource inside an datatemplate

I am using an ItemsControl which has a list of Objects... inside the ItemContainerTemplate I have another DataTemplate. Inside of that DataTemplate I can't bind to the ItemsControl.ItemSource anymore. Since I am not very good with bindings via Find…
1
vote
1 answer

Why ComboBox item shrinks in the DropDownBorder after it is selected?

I have a ComboBox for which I bound ItemsSource to a enum collection and SelectedItem to a DependencyProperty of the same enum type. So far no problem. Now I want to display a drawing (associated with each value of the enum collection) instead of…
1
vote
1 answer

ComboBox in DataGridTemplateColumn is cleared after hide the column in WPF

I created simple DataGridTemplateColumn containing combobox. I set binding for the Visibility of whole column and also for ItemSource and SelectedItem of ComboBox (I need to have different ItemsSource for different rows). Everything works fine until…
Marek S.
  • 11
  • 1
  • 2