GridControl.GroupRowExpandButtonStyleSettings Property
Gets or sets style settings applied to the group row‘s expand button.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
Declaration
[DP(null, Handler = "OnGroupRowExpandButtonStyleSettingsChanged")]
public GroupRowExpandButtonStyleSettings GroupRowExpandButtonStyleSettings { get; set; }
Property Value
Type | Description |
---|---|
GroupRowExpandButtonStyleSettings | Style settings applied to the group row‘s expand button. |
Remarks
GroupRowExpandButtonStyleSettings include the following properties:
Property | Description |
---|---|
Foreground | Gets or sets a brush that paints the expand button’s foreground. |
HoverForeground | Gets or sets a brush that paints the expand button’s foreground when a user hovers the mouse pointer over this button. |
PressedForeground | Gets or sets a brush that paints the expand button’s foreground when a user presses this button. |
Margin | Gets or sets the expand button’s margin. |
Icon | Gets or sets the expand button’s icon. |
RotateAngle | Gets or sets an angle, on which the expand button’s icon is rotated from the collapsed state to expanded. |
RotateDuration | Gets or sets a duration of time for the expand/collapse icon rotation. |
RotateEasingFunction | Gets or sets an easing function applied to the expand/collapse icon rotation. |
Example
The following code sample changes the expand button’s icon and its expand/collapse animation:
<Window ...
xmlns:dxg="using:DevExpress.WinUI.Grid"
xmlns:dx="using:DevExpress.WinUI.Core">
<dxg:GridControl ...>
<dxg:GridControl.GroupRowExpandButtonStyleSettings>
<dxg:GroupRowExpandButtonStyleSettings Foreground="Blue" RotateAngle="36" RotateDuration="0:0:0.3">
<dxg:GroupRowExpandButtonStyleSettings.RotateEasingFunction>
<BackEase Amplitude="1.5"/>
</dxg:GroupRowExpandButtonStyleSettings.RotateEasingFunction>
<dxg:GroupRowExpandButtonStyleSettings.Icon>
<dx:DXSymbolIconSource Symbol="Play"/>
</dxg:GroupRowExpandButtonStyleSettings.Icon>
</dxg:GroupRowExpandButtonStyleSettings>
</dxg:GridControl.GroupRowExpandButtonStyleSettings>
</dxg:GridControl>
See Also