Skip to content

Settings controls

INFO

Images of all controls will be added soon.

These controls are used in the Customization window. They ease the UI development by providing ready to use controls for any property that widget could need.

Color

This control allows users to change color on any color property.

Properties

NameTypeDescriptionDefault
HeaderstringName of the setting.null
DescriptionstringDescription of the setting.null
ColorColorSpecifies the selected color.null

Usage

This setting should be used in the Appearance page.

XML
<widget:ColorSettingsControl Header="Color"
                             Color="{x:Bind ((models:CustomSettings)app:App.Current.CustomSettings).Background.Color, Mode=TwoWay" />

Alignment

This control allows users to align elements in their widget. By using this control in the Photos widget, users are be able to move the header text anywhere.

Properties

NameTypeDescriptionDefault
HeaderstringName of the setting.null
DescriptionstringDescription of the setting.null
HorizontalAlignmentSettingHorizontalAlignmentSpecifies the selected horizontal alignment.null
VerticalAlignmentSettingVerticalAlignmentSpecifies the selected vertical alignment.null
ShowHorizontalAlignmentboolSpecifies whether the horizontal alignment setting should be displayed.true
ShowVerticalAlignmentboolSpecifies whether the vertical alignment setting should be displayed.true
ShowMarginboolSpecifies whether the margin setting should be displayed.true
ShowStretchboolSpecifies whether the stretch option should be displayed in horizontal and vertical alignment settings.true

Usage

This setting should be used in the Appearance page.

XML
<widget:ColorSettingsControl Header="Color"
                             Color="{x:Bind ((models:CustomSettings)app:App.Current.CustomSettings).Background.Color, Mode=TwoWay" />

Margin

This control allows users to align elements by offseting their position. By using this control in the Photos widget, users are be able to offset the header text.

Properties

NameTypeDescriptionDefault
HeaderstringName of the setting.null
DescriptionstringDescription of the setting.null
MarginSettingWidgetThicknessSpecifies the widget thickness to use.null

Usage

This setting should be used in the Appearance page.

XML
<widget:MarginSettingsControl Header="Text margin"
                              MarginSetting="{x:Bind ((models:CustomSettings)app:App.Current.CustomSettings).TextMargin, Mode=TwoWay}" />

Font

This control allows users to personalize how text looks within their widget.

Properties

NameTypeDescriptionDefault
HeaderstringName of the setting.null
DescriptionstringDescription of the setting.null
WidgetFontWidgetFontSpecifies the widget font to use.new()
ShowFontColorboolSpecifies whether the font color setting should be displayed.true
ShowFontSizeboolSpecifies whether the font size setting should be displayed.true
ShowFontFamilyboolSpecifies whether the font font family setting should be displayed.true
ShowFontWeightboolSpecifies whether the font weight setting should be displayed.true
ShowFontStyleboolSpecifies whether the font style setting should be displayed.true

Usage

This setting should be used in the Appearance page.

XML
<widget:FontSettingsControl Header="Time font"
                            WidgetFont="{x:Bind ((models:CustomSettings)app:App.Current.CustomSettings).TimeFont, Mode=TwoWay}"/>

Corner radius

This control allows users to round corners of a border.

Properties

NameTypeDescriptionDefault
HeaderstringName of the setting.null
DescriptionstringDescription of the setting.null
WidgetCornerRadiusWidgetCornerRadiusSpecifies the widget corner radius to use.null

Usage

This setting should be used in the Appearance page.

XML
<widget:CornerRadiusSettingsControl Header="Corner radius"
                                    WidgetCornerRadius="{x:Bind ((models:CustomSettings)app:App.Current.CustomSettings).CornerRadius, Mode=TwoWay}" />

Border

This control allows users to change border of a border element.

Properties

NameTypeDescriptionDefault
HeaderstringName of the setting.null
DescriptionstringDescription of the setting.null
WidgetBorderWidgetBorderSpecifies the widget border to use.null

Usage

This setting should be used in the Appearance page.

XML
<widget:BorderSettingsControl Header="Border"
                              WidgetBorder="{x:Bind ((models:CustomSettings)app:App.Current.CustomSettings).Border, Mode=TwoWay}" />

Released under CC-BY-4.0