Class PropertyGroupDescription
Describes the grouping of items using a property name as the criteria.
Implements
Inherited Members
Namespace: System.Windows.Data
Assembly: OpenSilver.dll
Syntax
public class PropertyGroupDescription : GroupDescription, INotifyPropertyChanged
Constructors
| Improve this Doc View SourcePropertyGroupDescription()
Initializes a new instance of the PropertyGroupDescription class.
Declaration
public PropertyGroupDescription()
PropertyGroupDescription(String)
Initializes a new instance of the PropertyGroupDescription class.
Declaration
public PropertyGroupDescription(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Property name that we want to group by |
PropertyGroupDescription(String, IValueConverter)
Initializes a new instance of the PropertyGroupDescription class.
Declaration
public PropertyGroupDescription(string propertyName, IValueConverter converter)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Property name that we want to group by |
IValueConverter | converter | Converter applied to the property value before determining the group name |
PropertyGroupDescription(String, IValueConverter, StringComparison)
Initializes a new instance of the PropertyGroupDescription class.
Declaration
public PropertyGroupDescription(string propertyName, IValueConverter converter, StringComparison stringComparison)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Property name that we want to group by |
IValueConverter | converter | Converter applied to the property value before determining the group name |
System.StringComparison | stringComparison | The type of string comparison to use |
Properties
| Improve this Doc View SourceConverter
Gets or sets a converter to apply to the property value or the item to produce the final value that is used to determine which group(s) an item belongs to.
Declaration
public IValueConverter Converter { get; set; }
Property Value
Type | Description |
---|---|
IValueConverter |
PropertyName
Gets or sets the name of the property that is used to determine which group(s) an item belongs to.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StringComparison
Gets or sets a StringComparison value that specifies the comparison between the value of an item (as determined by PropertyName and Converter) and the name of a group.
Declaration
public StringComparison StringComparison { get; set; }
Property Value
Type | Description |
---|---|
System.StringComparison |
Methods
| Improve this Doc View SourceGroupNameFromItem(Object, Int32, CultureInfo)
Returns the group name(s) for the given item
Declaration
public override object GroupNameFromItem(object item, int level, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item to return group names for |
System.Int32 | level | The level of grouping |
System.Globalization.CultureInfo | culture | The CultureInfo to supply to the converter |
Returns
Type | Description |
---|---|
System.Object | The group name(s) for the given item |
Overrides
| Improve this Doc View SourceNamesMatch(Object, Object)
Returns a value that indicates whether the group name and the item name match so that the item belongs to the group.
Declaration
public override bool NamesMatch(object groupName, object itemName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | groupName | The name of the group to check |
System.Object | itemName | The name of the item to check |
Returns
Type | Description |
---|---|
System.Boolean | true if the names match and the item belongs to the group; otherwise, false |