C# Class WinRTXamlToolkit.Controls.Extensions.ListViewItemExtensions

Attached properties for use with a ListViewItem.
Note that the IsEnabled property is to be used on an element inside of a ListView and not the ListViewItem itself.
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Свойство Type Description
IsEnabledProperty Windows.UI.Xaml.DependencyProperty
IsSelectedProperty Windows.UI.Xaml.DependencyProperty

Méthodes publiques

Méthode Description
GetIsEnabled ( DependencyObject d ) : bool

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

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

GetIsSelected ( DependencyObject d ) : bool

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

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

SetIsEnabled ( DependencyObject d, bool value ) : void

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

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

SetIsSelected ( DependencyObject d, bool value ) : void

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

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

Private Methods

Méthode Description
OnIsEnabledChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsEnabled property.

OnIsSelectedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsSelected property.

Method Details

GetIsEnabled() public static méthode

Gets the IsEnabled property. This dependency property indicates whether the first ListViewItem found in ancestors is enabled.
Note that the IsEnabled property is to be used on an element inside of a ListView and not the ListViewItem itself. Setting this property will update the IsEnabled property of the ListViewItem making it easier to disable selection of ListViewItems in the databound collection scenarios.
public static GetIsEnabled ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
Résultat bool

GetIsSelected() public static méthode

Gets the IsSelected property. This dependency property indicates whether the first ListViewItem found in ancestors is selected.
Note that the IsSelected property is to be used on an element inside of a ListView and not the ListViewItem itself. Setting this property will update the IsSelected property of the ListViewItem making it easier to disable selection of ListViewItems in the databound collection scenarios.
public static GetIsSelected ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
Résultat bool

SetIsEnabled() public static méthode

Sets the IsEnabled property. This dependency property indicates whether the first ListViewItem found in ancestors is enabled.
Note that the IsEnabled property is to be used on an element inside of a ListView and not the ListViewItem itself. Setting this property will update the IsEnabled property of the ListViewItem making it easier to disable selection of ListViewItems in the databound collection scenarios.
public static SetIsEnabled ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
Résultat void

SetIsSelected() public static méthode

Sets the IsSelected property. This dependency property indicates whether the first ListViewItem found in ancestors is selected.
Note that the IsSelected property is to be used on an element inside of a ListView and not the ListViewItem itself. Setting this property will update the IsSelected property of the ListViewItem making it easier to disable selection of ListViewItems in the databound collection scenarios.
public static SetIsSelected ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
Résultat void

Property Details

IsEnabledProperty public_oe static_oe property

IsEnabled Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsEnabledProperty
Résultat Windows.UI.Xaml.DependencyProperty

IsSelectedProperty public_oe static_oe property

IsSelected Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsSelectedProperty
Résultat Windows.UI.Xaml.DependencyProperty