public ItemsControl() { items = BuildProperty <ObservableCollection <ItemView> > ("Items"); items.Value = new ObservableCollection <ItemView> (); Items.CollectionChanged += HandleItemsChanged; itemsPanel = BuildProperty <Panel> ("ItemsPanel"); itemsPanel.DependencyPropertyValueChanged += HandleItemsPanelChanged; ItemsPanel = new StackPanel(); itemsSource = BuildProperty <IEnumerable> ("ItemsSource"); itemsSource.DependencyPropertyValueChanged += ItemsSourceChanged; ItemTemplate = new DataTemplate(o => o is UIElement ? o as UIElement : new TextBlock() { Text = o.ToString() }); StyleHelper.ApplyStyle(this, typeof(ItemsControl)); }
public TabControl() { StyleHelper.ApplyStyle(this, typeof(TabControl)); }
public UserControl() { StyleHelper.ApplyStyle(this, typeof(UserControl)); }
public Button() { StyleHelper.ApplyStyle(this, typeof(Button)); }
public Menu() { StyleHelper.ApplyStyle(this, typeof(Menu)); }