Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
Vereinsmeisterschaften.Behaviors.GridViewBehaviors Class Reference

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 Public Member Functions

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 Public Attributes

static readonly DependencyProperty CollapseableColumnProperty = DependencyProperty.RegisterAttached("CollapseableColumn", typeof(bool), typeof(GridViewBehaviors), new UIPropertyMetadata(false, OnCollapseableColumnChanged))
 Attached DependencyProperty to indicate whether the GridViewColumnHeader is collapseable.
 

Static Private Member Functions

static void OnCollapseableColumnChanged (DependencyObject obj, DependencyPropertyChangedEventArgs args)
 
static void AdjustWidth (object sender, DependencyPropertyChangedEventArgs e)
 

Static Private Attributes

static Dictionary< GridViewColumn, double > _lastGridViewColumnWidths = new Dictionary<GridViewColumn, double>()
 

Detailed Description

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.

Member Function Documentation

◆ AdjustWidth()

static void Vereinsmeisterschaften.Behaviors.GridViewBehaviors.AdjustWidth ( object sender,
DependencyPropertyChangedEventArgs e )
staticprivate

Definition at line 56 of file GridViewBehaviors.cs.

◆ GetCollapseableColumn()

static bool Vereinsmeisterschaften.Behaviors.GridViewBehaviors.GetCollapseableColumn ( DependencyObject obj)
static

Get the value of the CollapseableColumn attached property from a DependencyObject.

Parameters
objDependencyObject
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

Definition at line 47 of file GridViewBehaviors.cs.

◆ SetCollapseableColumn()

static void Vereinsmeisterschaften.Behaviors.GridViewBehaviors.SetCollapseableColumn ( DependencyObject obj,
bool value )
static

Sets the value of the CollapseableColumn attached property on a DependencyObject.

Parameters
objDependencyObject
valueValue for the CollapseableColumn attached property

Definition at line 42 of file GridViewBehaviors.cs.

Member Data Documentation

◆ _lastGridViewColumnWidths

Dictionary<GridViewColumn, double> Vereinsmeisterschaften.Behaviors.GridViewBehaviors._lastGridViewColumnWidths = new Dictionary<GridViewColumn, double>()
staticprivate

Definition at line 20 of file GridViewBehaviors.cs.

◆ 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: