2 types derived from ListBoxItem
PresentationFramework (2)
System\Windows\Controls\ComboBoxItem.cs (1)
19public class ComboBoxItem : ListBoxItem
System\Windows\Controls\ListViewItem.cs (1)
13public class ListViewItem : ListBoxItem
3 instantiations of ListBoxItem
PresentationFramework (3)
System\Windows\Controls\ListBox.cs (1)
653return new ListBoxItem();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7075DefaultConstructor = delegate () { return new System.Windows.Controls.ListBoxItem(); },
System\Windows\Markup\KnownTypes.cs (1)
1383case KnownElements.ListBoxItem: o = new System.Windows.Controls.ListBoxItem(); break;
49 references to ListBoxItem
PresentationFramework (49)
System\Windows\Automation\Peers\ListBoxItemWrapperAutomationPeer.cs (1)
13public ListBoxItemWrapperAutomationPeer(ListBoxItem owner): base(owner)
System\Windows\Controls\ListBox.cs (27)
24[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(ListBoxItem))] 286ListBoxItem listItem = (info != null) ? info.Container as ListBoxItem : null; 331ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.Container as ListBoxItem : null; 403ListBoxItem source = e.OriginalSource as ListBoxItem; 586ListBoxItem newListBoxItem = e.NewFocus as ListBoxItem; 647return (item is ListBoxItem); 696internal void NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton) 766internal void NotifyListItemMouseDragged(ListBoxItem listItem) 777ListBoxItem listItem = info.Container as ListBoxItem; 792private void MakeSingleSelection(ListBoxItem listItem) 806private void MakeToggleSelection(ListBoxItem item) 815private void MakeAnchorSelection(ListBoxItem actionItem, bool clearCurrent) 906private void MakeKeyboardSelection(ListBoxItem item) 942private int ElementIndex(ListBoxItem listItem) 947private ListBoxItem ElementAt(int index) 949return ItemContainerGenerator.ContainerFromIndex(index) as ListBoxItem; 978ListBoxItem listItem = info.Container as ListBoxItem; 1009ListBoxItem listBoxItem = info.Container as ListBoxItem; 1039internal ListBoxItem LastActionItem 1043return GetWeakReferenceTarget(ref _lastActionItem) as ListBoxItem;
System\Windows\Controls\ListBoxItem.cs (14)
44DefaultStyleKeyProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(typeof(ListBoxItem))); 45_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ListBoxItem)); 46KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 47KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 49IsEnabledProperty.OverrideMetadata(typeof(ListBoxItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 50IsMouseOverPropertyKey.OverrideMetadata(typeof(ListBoxItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 51Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 52AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 69Selector.IsSelectedProperty.AddOwner(typeof(ListBoxItem), 86ListBoxItem listItem = d as ListBoxItem; 137public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(ListBoxItem)); 157public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(ListBoxItem));
System\Windows\Controls\ViewBase.cs (1)
53get { return typeof(ListBoxItem); }
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
468case 374: t = () => typeof(ListBoxItem); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5372Type type = typeof(System.Windows.Controls.ListBoxItem); 5373DependencyProperty dp = System.Windows.Controls.ListBoxItem.ContentProperty; 5375this.GetXamlType(typeof(System.Windows.Controls.ListBoxItem)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7072typeof(System.Windows.Controls.ListBoxItem),
System\Windows\Markup\KnownTypes.cs (1)
5922case KnownElements.ListBoxItem: t = typeof(System.Windows.Controls.ListBoxItem); break;