### App.xaml Resources Source: https://benruehl.github.io/adonis-ui/docs/getting-started Adds the default light color scheme and classic theme resources to the application. ```xaml ``` -------------------------------- ### SplitButton Example Source: https://benruehl.github.io/adonis-ui/docs/guides/custom-controls An example of how to implement a SplitButton with a ContextMenu in XAML. ```xaml ``` -------------------------------- ### MainWindow Constructor Example Source: https://benruehl.github.io/adonis-ui/docs/guides/space An example of implementing the `SetSpaceResourceOwnerFallback` method within a WPF MainWindow's constructor before calling `InitializeComponent()`. ```C# public partial class MainWindow : Window { public MainWindow() { AdonisUI.SpaceExtension.SetSpaceResourceOwnerFallback(this); InitializeComponent(); } } ``` -------------------------------- ### Window Style Source: https://benruehl.github.io/adonis-ui/docs/getting-started Derives the window's style from the default Adonis UI style. ```xaml ``` -------------------------------- ### App.xaml Resources Source: https://benruehl.github.io/adonis-ui/docs/getting-started/introduction Add Adonis UI and ClassicTheme resources to your application in App.xaml. ```xaml ``` -------------------------------- ### Window Style Source: https://benruehl.github.io/adonis-ui/docs/getting-started/introduction Derive your window's style from the default style of Adonis UI. ```xaml ``` -------------------------------- ### Override named resources Source: https://benruehl.github.io/adonis-ui/docs/getting-started/configuration Override colors and dimensions by assigning the appropriate resource key and using the correct resource type. ```xaml #0BAC08 2 1 ``` -------------------------------- ### Advanced Usage with MessageBoxModel Source: https://benruehl.github.io/adonis-ui/docs/guides/message-box Demonstrates using MessageBoxModel for more detailed control over message box properties like text, caption, icon, and buttons. ```csharp using AdonisUI.Controls; var messageBox = new MessageBoxModel { Text = "Hello world!", Caption = "Info", Icon = MessageBoxImage.Information, Buttons = MessageBoxButtons.OkCancel(), }; MessageBox.Show(messageBox); ``` -------------------------------- ### Advanced Usage with Custom Buttons and Checkboxes Source: https://benruehl.github.io/adonis-ui/docs/guides/message-box Illustrates a more complex message box configuration with custom button labels, custom buttons identified by IDs, checkboxes with specific placement, and disabling the sound. ```csharp using AdonisUI.Controls; const string CHEESE_BUTTON_ID = "cheese"; const string BACON_BUTTON_ID = "bacon"; var messageBox = new MessageBoxModel { Text = "Would you like to apply some extras?", Caption = "Extra cheese maybe?", Icon = MessageBoxImage.Question, Buttons = new [] { MessageBoxButtons.Yes("Yes, all you have!"), MessageBoxButtons.Custom("Extra cheese", CHEESE_BUTTON_ID), MessageBoxButtons.Custom("Extra bacon", BACON_BUTTON_ID), MessageBoxButtons.No("No, no extras"), MessageBoxButtons.Cancel(), }, CheckBoxes = new [] { new MessageBoxCheckBoxModel("Apply to all items of the order") { IsChecked = true, Placement = MessageBoxCheckBoxPlacement.BelowText, }, }, IsSoundEnabled = false, }; MessageBox.Show(messageBox); ``` -------------------------------- ### Customizing Default Space Values Source: https://benruehl.github.io/adonis-ui/docs/guides/space Provides XAML snippets to override the default base values for horizontal and vertical space by defining them in application resources. ```XAML 8 8 ``` -------------------------------- ### Placement for ScrollViewers Source: https://benruehl.github.io/adonis-ui/docs/guides/scrollbars Configuring the placement of vertical and horizontal scroll bars for ScrollViewers. ```XAML ``` -------------------------------- ### Expansion Mode for ScrollBars Source: https://benruehl.github.io/adonis-ui/docs/guides/scrollbars Directly setting the expansion mode for ScrollBar elements. ```XAML ``` -------------------------------- ### Expansion Mode for ScrollViewers Source: https://benruehl.github.io/adonis-ui/docs/guides/scrollbars Customizing vertical and horizontal scroll bar expansion modes for ScrollViewers. ```XAML ``` -------------------------------- ### Customizing ripple durations Source: https://benruehl.github.io/adonis-ui/docs/guides/ripple The ripple effect uses an animation to appear and afterwards another one to disappear. For both animations the duration can be controlled separately. For the first one use `FadeInDuration` and for the second one `FadeOutDuration`. Both are set to 200 milliseconds by default. Their values are inherited to children so they can be set for individual controls, containers like grids or windows or the whole application. ```xaml