Skip to content

MarkupExtensions

Håvard Moås edited this page Mar 30, 2022 · 5 revisions

👉 To get started, make sure you have followed the getting started steps

StringCase

Converts an Input with a StringCase. This can be used with static values (like LocalizedStrings).

Samples can be found here

Example usage

<Label Text="{dxui:StringCase Input={x:Static SamplesResources:LocalizedStrings.TestString},StringCase=Upper}" />

DIPSColor

Returns a DIPS Color.

Samples can be found here

Example usage

<BoxView BackgroundColor="{dxui:DIPSColor Theme=TealPrimary}" />

InvertedBool

Markup Extension for InvertedBoolConverter

<Label IsVisible="{markup:BoolInverter Value={x:Static MyClass.MyStaticBoolProperty}}" />