C# Класс WinRTXamlToolkit.Controls.Extensions.ListBoxItemExtensions

Attached properties for use with a ListBoxItem.
Note that the IsEnabled property is to be used on an element inside of a ListBox and not the ListBoxItem itself.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
IsEnabledProperty Windows.UI.Xaml.DependencyProperty
IsSelectedProperty Windows.UI.Xaml.DependencyProperty

Открытые методы

Метод Описание
GetIsEnabled ( DependencyObject d ) : bool

Gets the IsEnabled property. This dependency property indicates whether the first ListBoxItem found in ancestors is enabled.

Note that the IsEnabled property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsEnabled property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.

GetIsSelected ( DependencyObject d ) : bool

Gets the IsSelected property. This dependency property indicates whether the first ListBoxItem found in ancestors is selected.

Note that the IsSelected property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsSelected property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.

SetIsEnabled ( DependencyObject d, bool value ) : void

Sets the IsEnabled property. This dependency property indicates whether the first ListBoxItem found in ancestors is enabled.

Note that the IsEnabled property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsEnabled property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.

SetIsSelected ( DependencyObject d, bool value ) : void

Sets the IsSelected property. This dependency property indicates whether the first ListBoxItem found in ancestors is selected.

Note that the IsSelected property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsSelected property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.

Приватные методы

Метод Описание
OnIsEnabledChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsEnabled property.

OnIsSelectedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsSelected property.

Описание методов

GetIsEnabled() публичный статический Метод

Gets the IsEnabled property. This dependency property indicates whether the first ListBoxItem found in ancestors is enabled.
Note that the IsEnabled property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsEnabled property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.
public static GetIsEnabled ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
Результат bool

GetIsSelected() публичный статический Метод

Gets the IsSelected property. This dependency property indicates whether the first ListBoxItem found in ancestors is selected.
Note that the IsSelected property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsSelected property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.
public static GetIsSelected ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
Результат bool

SetIsEnabled() публичный статический Метод

Sets the IsEnabled property. This dependency property indicates whether the first ListBoxItem found in ancestors is enabled.
Note that the IsEnabled property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsEnabled property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.
public static SetIsEnabled ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
Результат void

SetIsSelected() публичный статический Метод

Sets the IsSelected property. This dependency property indicates whether the first ListBoxItem found in ancestors is selected.
Note that the IsSelected property is to be used on an element inside of a ListBox and not the ListBoxItem itself. Setting this property will update the IsSelected property of the ListBoxItem making it easier to disable selection of ListBoxItems in the databound collection scenarios.
public static SetIsSelected ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
Результат void

Описание свойств

IsEnabledProperty публичное статическое свойство

IsEnabled Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsEnabledProperty
Результат Windows.UI.Xaml.DependencyProperty

IsSelectedProperty публичное статическое свойство

IsSelected Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsSelectedProperty
Результат Windows.UI.Xaml.DependencyProperty