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