Behaviour to collapse the GridViewColumn when the Header isn't visible Set this behavior to an object of type GridViewColumnHeader in XAML: <GridViewColumnHeader behaviors:GridViewBehaviors.CollapseableColumn="True" >... Then set the GridViewColumnHeader.Visibility to Visibility.Collapsed or Visibility.Hidden to make the column invisible.
More...
|
| static bool | GetCollapseableColumn (DependencyObject obj) |
| | Get the value of the CollapseableColumn attached property from a DependencyObject.
|
| |
| static void | SetCollapseableColumn (DependencyObject obj, bool value) |
| | Sets the value of the CollapseableColumn attached property on a DependencyObject.
|
| |
|
| static readonly DependencyProperty | CollapseableColumnProperty = DependencyProperty.RegisterAttached("CollapseableColumn", typeof(bool), typeof(GridViewBehaviors), new UIPropertyMetadata(false, OnCollapseableColumnChanged)) |
| | Attached DependencyProperty to indicate whether the GridViewColumnHeader is collapseable.
|
| |
Behaviour to collapse the GridViewColumn when the Header isn't visible Set this behavior to an object of type GridViewColumnHeader in XAML: <GridViewColumnHeader behaviors:GridViewBehaviors.CollapseableColumn="True" >... Then set the GridViewColumnHeader.Visibility to Visibility.Collapsed or Visibility.Hidden to make the column invisible.
Definition at line 18 of file GridViewBehaviors.cs.
◆ AdjustWidth()
| static void Vereinsmeisterschaften.Behaviors.GridViewBehaviors.AdjustWidth |
( |
object | sender, |
|
|
DependencyPropertyChangedEventArgs | e ) |
|
staticprivate |
◆ GetCollapseableColumn()
| static bool Vereinsmeisterschaften.Behaviors.GridViewBehaviors.GetCollapseableColumn |
( |
DependencyObject | obj | ) |
|
|
static |
Get the value of the CollapseableColumn attached property from a DependencyObject.
- Parameters
-
- Returns
- Value of the CollapseableColumn attached property
Definition at line 32 of file GridViewBehaviors.cs.
◆ OnCollapseableColumnChanged()
| static void Vereinsmeisterschaften.Behaviors.GridViewBehaviors.OnCollapseableColumnChanged |
( |
DependencyObject | obj, |
|
|
DependencyPropertyChangedEventArgs | args ) |
|
staticprivate |
◆ SetCollapseableColumn()
| static void Vereinsmeisterschaften.Behaviors.GridViewBehaviors.SetCollapseableColumn |
( |
DependencyObject | obj, |
|
|
bool | value ) |
|
static |
Sets the value of the CollapseableColumn attached property on a DependencyObject.
- Parameters
-
| obj | DependencyObject |
| value | Value for the CollapseableColumn attached property |
Definition at line 42 of file GridViewBehaviors.cs.
◆ _lastGridViewColumnWidths
| Dictionary<GridViewColumn, double> Vereinsmeisterschaften.Behaviors.GridViewBehaviors._lastGridViewColumnWidths = new Dictionary<GridViewColumn, double>() |
|
staticprivate |
◆ CollapseableColumnProperty
| readonly DependencyProperty Vereinsmeisterschaften.Behaviors.GridViewBehaviors.CollapseableColumnProperty = DependencyProperty.RegisterAttached("CollapseableColumn", typeof(bool), typeof(GridViewBehaviors), new UIPropertyMetadata(false, OnCollapseableColumnChanged)) |
|
static |
Attached DependencyProperty to indicate whether the GridViewColumnHeader is collapseable.
Definition at line 25 of file GridViewBehaviors.cs.
The documentation for this class was generated from the following file: