/// <summary> /// Initializes a new instance of the /// <see cref="T:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl" /> class. /// </summary> public HeaderedItemsControl() { DefaultStyleKey = typeof(HeaderedItemsControl); ItemsControlHelper = new ItemsControlHelper(this); }
/// <summary> /// Applies control template to the items control. /// </summary> protected override void OnApplyTemplate() { ItemsControlHelper.OnApplyTemplate(); base.OnApplyTemplate(); }
/// <summary> /// Initializes a new instance of the /// <see cref="T:Microsoft.Silverlight.Testing.Controls.TreeView" /> class. /// </summary> public TreeView() { DefaultStyleKey = typeof(TreeView); ItemsControlHelper = new ItemsControlHelper(this); Interaction = new InteractionHelper(this); }
/// <summary> /// ItemContainerStyleProperty property changed handler. /// </summary> /// <param name="newValue">New value.</param> protected virtual void OnItemContainerStyleChanged(Style newValue) { ItemsControlHelper.UpdateItemContainerStyle(newValue); }
/// <summary> /// Initializes a new instance of the <see cref="Accordion"/> class. /// </summary> public Accordion() { DefaultStyleKey = typeof(Accordion); ItemsControlHelper = new ItemsControlHelper(this); ObservableCollection<object> items = new ObservableCollection<object>(); ObservableCollection<int> indices = new ObservableCollection<int>(); SelectedItems = items; SelectedIndices = indices; items.CollectionChanged += OnSelectedItemsCollectionChanged; indices.CollectionChanged += OnSelectedIndicesCollectionChanged; _scheduledActions = new List<AccordionItem>(); SizeChanged += OnAccordionSizeChanged; Interaction = new InteractionHelper(this); }
/// <summary> /// Initializes a new instance of the /// <see cref="HeaderedItemsControl" /> class. /// </summary> public HeaderedItemsControl() { DefaultStyleKey = typeof(HeaderedItemsControl); ItemsControlHelper = new ItemsControlHelper(this); }
/// <summary> /// Initialises a new instance of the <see cref="Accordion"/> class. /// </summary> public Accordion() { ItemsControlHelper = new ItemsControlHelper(this); ObservableCollection<object> items = new ObservableCollection<object>(); ObservableCollection<int> indices = new ObservableCollection<int>(); this.SelectedItems = items; this.SelectedIndices = indices; items.CollectionChanged += this.OnSelectedItemsCollectionChanged; indices.CollectionChanged += this.OnSelectedIndicesCollectionChanged; this.scheduledActions = new List<AccordionItem>(); this.SizeChanged += this.OnAccordionSizeChanged; this.Interaction = new InteractionHelper(this); }
/// <summary> /// Applies control template to the items control. /// </summary> public override void OnApplyTemplate() { ItemsControlHelper.OnApplyTemplate(); base.OnApplyTemplate(); #endif }