/// <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);
 }
示例#2
0
文件: Rating.cs 项目: ykns/callisto
 /// <summary>
 /// Applies control template to the items control.
 /// </summary>
 protected override void OnApplyTemplate()
 {
     ItemsControlHelper.OnApplyTemplate();
     base.OnApplyTemplate();
 }
示例#3
0
 /// <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);
 }
示例#4
0
文件: Rating.cs 项目: ykns/callisto
 /// <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);
        }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="HeaderedItemsControl" /> class.
 /// </summary>
 public HeaderedItemsControl()
 {
     DefaultStyleKey    = typeof(HeaderedItemsControl);
     ItemsControlHelper = new ItemsControlHelper(this);
 }
示例#7
0
        /// <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
        }