Menu
  • HOME
  • TAGS

Adding checkBoxes to UniformGrid

c#,wpf,checkbox,uniformgrid

do you have to add UI elements dynamically? can't you just predefine your CheckBox template and add CheckBox.Content instead? If it's possible then define an ObservableCollection that contains your CheckBox.Contentlike this: public ObservableCollection<string> SubfolderNames { get; set; } then define an ItemsControl and bind it's ItemsSource to your collection: <ItemsControl...