2 types derived from ListBoxItem
PresentationFramework (2)
System\Windows\Controls\ComboBoxItem.cs (1)
18
public class ComboBoxItem :
ListBoxItem
System\Windows\Controls\ListViewItem.cs (1)
12
public class ListViewItem :
ListBoxItem
3 instantiations of ListBoxItem
PresentationFramework (3)
System\Windows\Controls\ListBox.cs (1)
651
return new
ListBoxItem
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7074
DefaultConstructor = delegate () { return new System.Windows.Controls.
ListBoxItem
(); },
System\Windows\Markup\KnownTypes.cs (1)
1382
case KnownElements.ListBoxItem: o = new System.Windows.Controls.
ListBoxItem
(); break;
49 references to ListBoxItem
PresentationFramework (49)
System\Windows\Automation\Peers\ListBoxItemWrapperAutomationPeer.cs (1)
12
public ListBoxItemWrapperAutomationPeer(
ListBoxItem
owner): base(owner)
System\Windows\Controls\ListBox.cs (27)
23
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(
ListBoxItem
))]
285
ListBoxItem
listItem = (info != null) ? info.Container as
ListBoxItem
: null;
329
ListBoxItem
focusedItemUI = (FocusedInfo != null) ? FocusedInfo.Container as
ListBoxItem
: null;
401
ListBoxItem
source = e.OriginalSource as
ListBoxItem
;
584
ListBoxItem
newListBoxItem = e.NewFocus as
ListBoxItem
;
645
return (item is
ListBoxItem
);
694
internal void NotifyListItemClicked(
ListBoxItem
item, MouseButton mouseButton)
764
internal void NotifyListItemMouseDragged(
ListBoxItem
listItem)
775
ListBoxItem
listItem = info.Container as
ListBoxItem
;
790
private void MakeSingleSelection(
ListBoxItem
listItem)
804
private void MakeToggleSelection(
ListBoxItem
item)
813
private void MakeAnchorSelection(
ListBoxItem
actionItem, bool clearCurrent)
901
private void MakeKeyboardSelection(
ListBoxItem
item)
937
private int ElementIndex(
ListBoxItem
listItem)
942
private
ListBoxItem
ElementAt(int index)
944
return ItemContainerGenerator.ContainerFromIndex(index) as
ListBoxItem
;
973
ListBoxItem
listItem = info.Container as
ListBoxItem
;
1004
ListBoxItem
listBoxItem = info.Container as
ListBoxItem
;
1034
internal
ListBoxItem
LastActionItem
1038
return GetWeakReferenceTarget(ref _lastActionItem) as
ListBoxItem
;
System\Windows\Controls\ListBoxItem.cs (14)
43
DefaultStyleKeyProperty.OverrideMetadata(typeof(
ListBoxItem
), new FrameworkPropertyMetadata(typeof(
ListBoxItem
)));
44
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
ListBoxItem
));
45
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
ListBoxItem
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
46
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
ListBoxItem
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
48
IsEnabledProperty.OverrideMetadata(typeof(
ListBoxItem
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
49
IsMouseOverPropertyKey.OverrideMetadata(typeof(
ListBoxItem
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
50
Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(
ListBoxItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
51
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
ListBoxItem
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
68
Selector.IsSelectedProperty.AddOwner(typeof(
ListBoxItem
),
85
ListBoxItem
listItem = d as
ListBoxItem
;
133
public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(
ListBoxItem
));
153
public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(
ListBoxItem
));
System\Windows\Controls\ViewBase.cs (1)
52
get { return typeof(
ListBoxItem
); }
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
467
case 374: t = () => typeof(
ListBoxItem
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5371
Type type = typeof(System.Windows.Controls.
ListBoxItem
);
5372
DependencyProperty dp = System.Windows.Controls.
ListBoxItem
.ContentProperty;
5374
this.GetXamlType(typeof(System.Windows.Controls.
ListBoxItem
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7071
typeof(System.Windows.Controls.
ListBoxItem
),
System\Windows\Markup\KnownTypes.cs (1)
5921
case KnownElements.ListBoxItem: t = typeof(System.Windows.Controls.
ListBoxItem
); break;