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