Skip to content

Commit

Permalink
Merge pull request #932 from unoplatform/dev/xygu/20231127/divider-us…
Browse files Browse the repository at this point in the history
…age-examples
  • Loading branch information
Xiaoy312 authored Nov 27, 2023
2 parents 58fa06b + 7c4597f commit 1ba0cdf
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions doc/controls/Divider.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ Property|Type|Description
SubHeader|String|Gets or sets the text of the text below the Divider.
SubHeaderForeground|Brush|Gets or sets the foreground of the subheader.

### C#
```csharp
public partial class Divider : Control
```

### XAML
```xml
xmlns:utu="using:Uno.Toolkit.UI"
...

content
<utu:Divider/>
content

```

## Lightweight Styling

Key|Type|Value
Expand All @@ -38,3 +22,17 @@ DividerSubHeaderFontSize|FontSize|BodySmallFontSize
DividerSubHeaderCharacterSpacing|CharacterSpacing|BodySmallCharacterSpacing
DividerSubHeaderMargin|Thickness|0,4,0,0
DividerHeight|Double|1

## Usage
```xml
xmlns:utu="using:Uno.Toolkit.UI"
...

<TextBlock Text="Asd" />
<utu:Divider />
<TextBlock Text="Asd" />
<utu:Divider Foreground="Gray"
SubHeader="Separator"
SubHeaderForeground="Black" />
<TextBlock Text="Asd" />
```

0 comments on commit 1ba0cdf

Please sign in to comment.