Beispiel #1
0
 /// <summary>
 /// Initializes static members of the <see cref="TreeViewItem"/> class.
 /// </summary>
 static TreeViewItem()
 {
     SelectableMixin.Attach <TreeViewItem>(IsSelectedProperty);
     FocusableProperty.OverrideDefaultValue <TreeViewItem>(true);
     ItemsPanelProperty.OverrideDefaultValue <TreeViewItem>(DefaultPanel);
     RequestBringIntoViewEvent.AddClassHandler <TreeViewItem>(x => x.OnRequestBringIntoView);
 }
Beispiel #2
0
 /// <summary>
 /// overrides some default values
 /// </summary>
 static IndexListItem()
 {
     SelectableMixin.Attach <IndexListItem>(IsSelectedProperty);
     FocusableProperty.OverrideDefaultValue <IndexListItem>(true);
     RequestBringIntoViewEvent.AddClassHandler <IndexListItem>((x, e) => x.OnRequestBringIntoView(e));
     DataContextProperty.Changed.AddClassHandler <IndexListItem>((x, e) => OnDataContextChanged(x, e));
 }
Beispiel #3
0
 /// <summary>
 /// Initializes static members of the <see cref="TreeViewItem"/> class.
 /// </summary>
 static TreeViewItem()
 {
     SelectableMixin.Attach <TreeViewItem>(IsSelectedProperty);
     FocusableProperty.OverrideDefaultValue <TreeViewItem>(true);
     ItemsPanelProperty.OverrideDefaultValue <TreeViewItem>(DefaultPanel);
     ParentProperty.Changed.AddClassHandler <TreeViewItem>((o, e) => o.OnParentChanged(e));
     RequestBringIntoViewEvent.AddClassHandler <TreeViewItem>((x, e) => x.OnRequestBringIntoView(e));
 }
 static ItemsRepeater()
 {
     ClipToBoundsProperty.OverrideDefaultValue <ItemsRepeater>(true);
     RequestBringIntoViewEvent.AddClassHandler <ItemsRepeater>((x, e) => x.OnRequestBringIntoView(e));
 }
 protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e)
 {
     disposables.Add(RequestBringIntoViewEvent.AddClassHandler <Intellisense>(i => OnRequesteBringIntoView));
 }
Beispiel #6
0
 static Intellisense()
 {
     RequestBringIntoViewEvent.AddClassHandler <Intellisense>(i => i.OnRequesteBringIntoView);
 }
 static RenameControl()
 {
     RequestBringIntoViewEvent.AddClassHandler <RenameControl>(i => i.OnRequesteBringIntoView);
 }