Difference between revisions of "XAML"
(→Converters) |
|||
Line 38: | Line 38: | ||
== Converters == | == Converters == | ||
+ | === Basic === | ||
* BooleanToVisibilityConverter | * BooleanToVisibilityConverter | ||
Converts a Boolean into a Visibility, where ''true'' will result in ''Visibility.Visible''. | Converts a Boolean into a Visibility, where ''true'' will result in ''Visibility.Visible''. | ||
* BooleanToCollapsedConverter | * BooleanToCollapsedConverter | ||
Converts a Boolean into a Visibility, where ''true'' will result in ''Visibility.Collapsed''. | Converts a Boolean into a Visibility, where ''true'' will result in ''Visibility.Collapsed''. | ||
+ | |||
+ | === Advanced === | ||
* StringFormatConverter | * StringFormatConverter | ||
Returns a formatted string where placeholders will be filled with values supplied to its ''Param'' properties. | Returns a formatted string where placeholders will be filled with values supplied to its ''Param'' properties. | ||
+ | * EvalExpressionConverter | ||
+ | Evaluates a C# expression and returns the result. | ||
Revision as of 10:24, 25 August 2016
The WinX User Interface can be vastly customized using XAML.
Contents
Templates
The UI is controlled by several predefined XAML templates which are loaded into the App at startup. There is a set of default template deployed with the App at installation, however, each of them can be overridden by placing the respective file in the folder [AppInstallPath\LocalState\XAML
General
- UBIKThemes.xaml
Controls the overall styling and behavior of the App, like standard Brushes (Colors) and Fonts.
AuthenticationPage
- UBIKSplashArea.xaml
- UBIKPageNavigation.xaml
Content Pages
- UBIKObjectIcon.xaml
- UBIKObjectIconSmall.xaml
RootPage
- UBIKMainLeftArea.xaml
- UBIKMainItem.xaml
- UBIKMainItemSmall.xaml
ChildPage
- UBIKChildItem.xaml
- UBIKChildItemSmall.xaml
- UBIKChildAction.xaml
- UBIKPriorityPropertyItem.xaml
DetailsPage
- UBIKDocumentItem.xaml
- UBIKDocumentItemSmall.xaml
Specific UBIK® Elements
Converters
Basic
- BooleanToVisibilityConverter
Converts a Boolean into a Visibility, where true will result in Visibility.Visible.
- BooleanToCollapsedConverter
Converts a Boolean into a Visibility, where true will result in Visibility.Collapsed.
Advanced
- StringFormatConverter
Returns a formatted string where placeholders will be filled with values supplied to its Param properties.
- EvalExpressionConverter
Evaluates a C# expression and returns the result.