2 types derived from ListBoxItem
PresentationFramework (2)
src\Framework\System\Windows\Controls\ComboBoxItem.cs (1)
32public class ComboBoxItem : ListBoxItem
src\Framework\System\Windows\Controls\ListViewItem.cs (1)
19public class ListViewItem : ListBoxItem
3 instantiations of ListBoxItem
PresentationFramework (3)
src\Framework\System\Windows\Controls\ListBox.cs (1)
612return new ListBoxItem();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6446bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ListBoxItem(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1390case KnownElements.ListBoxItem: o = new System.Windows.Controls.ListBoxItem(); break;
53 references to ListBoxItem
PresentationFramework (49)
src\Framework\System\Windows\Automation\Peers\ListBoxItemWrapperAutomationPeer.cs (1)
25public ListBoxItemWrapperAutomationPeer(ListBoxItem owner): base(owner)
src\Framework\System\Windows\Controls\ListBox.cs (27)
31[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(ListBoxItem))] 290ListBoxItem listItem = (info != null) ? info.Container as ListBoxItem : null; 335ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.Container as ListBoxItem : null; 407ListBoxItem source = e.OriginalSource as ListBoxItem; 547ListBoxItem newListBoxItem = e.NewFocus as ListBoxItem; 606return (item is ListBoxItem); 655internal void NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton) 725internal void NotifyListItemMouseDragged(ListBoxItem listItem) 736ListBoxItem listItem = info.Container as ListBoxItem; 751private void MakeSingleSelection(ListBoxItem listItem) 765private void MakeToggleSelection(ListBoxItem item) 774private void MakeAnchorSelection(ListBoxItem actionItem, bool clearCurrent) 867private void MakeKeyboardSelection(ListBoxItem item) 903private int ElementIndex(ListBoxItem listItem) 908private ListBoxItem ElementAt(int index) 910return ItemContainerGenerator.ContainerFromIndex(index) as ListBoxItem; 939ListBoxItem listItem = info.Container as ListBoxItem; 970ListBoxItem listBoxItem = info.Container as ListBoxItem; 1000internal ListBoxItem LastActionItem 1004return GetWeakReferenceTarget(ref _lastActionItem) as ListBoxItem;
src\Framework\System\Windows\Controls\ListBoxItem.cs (14)
51DefaultStyleKeyProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(typeof(ListBoxItem))); 52_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ListBoxItem)); 53KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 54KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 56IsEnabledProperty.OverrideMetadata(typeof(ListBoxItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 57IsMouseOverPropertyKey.OverrideMetadata(typeof(ListBoxItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 58Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 59AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 76Selector.IsSelectedProperty.AddOwner(typeof(ListBoxItem), 93ListBoxItem listItem = d as ListBoxItem; 144public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(ListBoxItem)); 164public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(ListBoxItem));
src\Framework\System\Windows\Controls\ViewBase.cs (1)
56get { return typeof(ListBoxItem); }
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
466case 374: t = () => typeof(ListBoxItem); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5029Type type = typeof(System.Windows.Controls.ListBoxItem); 5030DependencyProperty dp = System.Windows.Controls.ListBoxItem.ContentProperty; 5032this.GetXamlType(typeof(System.Windows.Controls.ListBoxItem)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6444typeof(System.Windows.Controls.ListBoxItem),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5918case KnownElements.ListBoxItem: t = typeof(System.Windows.Controls.ListBoxItem); break;
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\ReorderableListEditor.xaml.cs (2)
56ListBoxItem item = VisualTreeUtils.FindVisualAncestor<ListBoxItem>(e.OriginalSource as DependencyObject);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
913ListBoxItem listBoxItem = sender as ListBoxItem;