Click or drag to resize

GridHelpers Klasse

Diese Klasse stellt DependencyProperties für die Zeilenzahl und Spaltenzahl von WPF-Grids zur Verfügung. Damit wird es möglich, die Spalten- und Zeilenzahl von Grids zur Laufzeit über Databinding zu setzen. Ich habe die Logik nahezu unverändert von Rachel Lim's Blog auf https://rachel53461.wordpress.com/2011/09/17/wpf-grids-rowcolumn-count-properties/ übernommen. Thanks and respect to Rachel Lim on https://rachel53461.wordpress.com/
Vererbungshierarchie
SystemObject
  Vishnu.WPF_UI.DependencyPropertiesGridHelpers

Namensraum: Vishnu.WPF_UI.DependencyProperties
Assembly: Vishnu.WPF_UI (in Vishnu.WPF_UI.dll) Version: 1.0.0+d75bac576d44afb64cfff79fd3665c8ca1172cbc
Syntax
public static class GridHelpers

Der GridHelpers Typ exponiert die folgenden Member.

Methoden
 NameBeschreibung
Public MethodeStatic MemberColumnCountChanged Change Event - Adds the columns.
Public MethodeStatic MemberColumnsPropertiesChanged Change Event - Makes specified Column's Width equal to Auto or Star depending on GridHelpers._gridColumnUnitType.
Public MethodeStatic MemberGetColumnCount Returns the actual ColumnCount of a given Grid.
Public MethodeStatic MemberGetColumnsProperties Returns a string representing the value of the ColumnsPropertiesProperty of a given Grid.
Public MethodeStatic MemberGetRowCount Returns the actual RowCount of a given Grid.
Public MethodeStatic MemberGetRowsProperties Returns a string representing the value of the RowsPropertiesProperty of a given Grid.
Public MethodeStatic MemberRowCountChanged Change Event - Adds the Rows.
Public MethodeStatic MemberRowsPropertiesChanged Change Event - Makes the specified Row's Height equal to Auto or Star depending on GridHelpers._gridRowUnitType.
Public MethodeStatic MemberSetColumnCount Sets the ColumnCount of a given Grid to the given value.
Public MethodeStatic MemberSetColumnsProperties Sets the new value of the ColumnsPropertiesProperty of a given Grid.
Public MethodeStatic MemberSetRowCount Sets the RowCount of a given Grid to the given value.
Public MethodeStatic MemberSetRowsProperties Sets the new value of the RowsPropertiesProperty of a given Grid.
Zurück nach oben
Felder
 NameBeschreibung
Public FeldStatic MemberColumnCountProperty Adds the specified number of Columns to ColumnDefinitions. Default Width is Auto.
Public FeldStatic MemberColumnsPropertiesProperty Makes the specified Column's Width equal to Auto or Star depending on GridHelpers._gridColumnUnitType. Can set on multiple Columns.
Public FeldStatic MemberRowCountProperty Adds the specified number of Rows to RowDefinitions. Default Height is Auto.
Public FeldStatic MemberRowsPropertiesProperty Makes the specified Row's Height equal to Auto or Star depending on GridHelpers._gridRowUnitType. Can set on multiple Rows.
Zurück nach oben
Angefügte Eigenschaften
 NameBeschreibung
Public EigenschaftColumnCount Adds the specified number of Columns to ColumnDefinitions. Default Width is Auto.
Public EigenschaftColumnsProperties Makes the specified Column's Width equal to Auto or Star depending on GridHelpers._gridColumnUnitType. Can set on multiple Columns.
Public EigenschaftRowCount Adds the specified number of Rows to RowDefinitions. Default Height is Auto.
Public EigenschaftRowsProperties Makes the specified Row's Height equal to Auto or Star depending on GridHelpers._gridRowUnitType. Can set on multiple Rows.
Zurück nach oben
Anmerkungen
03.10.2022 Erik Nagel: created.
Siehe auch