-
Notifications
You must be signed in to change notification settings - Fork 3
Buttons
Håvard Moås edited this page Oct 18, 2023
·
12 revisions
A Button can have several different styles:
PrimaryLargePrimarySmallPrimaryRoundedSmallPrimaryRoundedLargeSecondaryLargeSecondarySmallSecondaryRoundedSmallSecondaryRoundedLargeGhostLargeGhostSmallGhostRoundedLargeGhostRoundedSmall
By default the Button's style is set to PrimaryLarge.
There is also the possibility to set a Button's Image to the right side by setting the ImagePlacement property to Right.
In the following example a Button's style is set to SecondaryLarge:
<dui:Button Style="{dui:Styles Button=SecondaryLarge}"
Text="Button"
Command="{Binding Something}" />In the following example a Button's Image is set to the right side of the Button's text. Also the Button's style is implicitly set to PrimaryLarge.
<dui:Button ImageSource="{dui:Icons bell_line}"
ImagePlacement="Right"
Text="Button"
Command="{Binding Something}" />Inspect the components properties class to further customize and use it.