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.
显示文件 Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
IsEnabledProperty Windows.UI.Xaml.DependencyProperty
IsSelectedProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method 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

Method 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 method

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
return bool

GetIsSelected() public static method

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
return bool

SetIsEnabled() public static method

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
return void

SetIsSelected() public static method

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
return void

Property Details

IsEnabledProperty public_oe static_oe property

IsEnabled Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsEnabledProperty
return Windows.UI.Xaml.DependencyProperty

IsSelectedProperty public_oe static_oe property

IsSelected Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsSelectedProperty
return Windows.UI.Xaml.DependencyProperty