generated from unoplatform/template
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add lightweight styling to divider (#765)
(cherry picked from commit cd6b89a) # Conflicts: # samples/Directory.Packages.props # src/Directory.Packages.props
- Loading branch information
1 parent
e6ec431
commit 2b01d37
Showing
7 changed files
with
185 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
uid: Toolkit.Controls.Divider | ||
--- | ||
# Divider | ||
A divider is a thin line that groups content in lists and layouts. | ||
|
||
## Properties | ||
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 | ||
-|-|- | ||
DividerForeground|SolidColorBrush|OutlineVariantBrush | ||
DividerSubHeaderForeground|SolidColorBrush|OnSurfaceLowBrush | ||
DividerSubHeaderFontFamily|FontFamily|MaterialMediumFontFamily | ||
DividerSubHeaderFontWeight|FontWeight|BodySmallFontWeight | ||
DividerSubHeaderFontSize|FontSize|BodySmallFontSize | ||
DividerSubHeaderCharacterSpacing|CharacterSpacing|BodySmallCharacterSpacing | ||
DividerSubHeaderMargin|Thickness|0,4,0,0 | ||
DividerHeight|Double|1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters