Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telerik set application theme from XAML

Is it possible to set application wide theme from XAML in Telerik? There is only a code-behind example. I would like to set in in XAML and have a Metro theme in design-mode too.

like image 406
redman Avatar asked Mar 20 '26 20:03

redman


1 Answers

You could achieve this as follows:

<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     
    mc:Ignorable="d"
    x:Class="SilverlightApplication.App">
        <Application.Resources>
            <telerik:MetroTheme x:Key="Theme" IsApplicationTheme="True"/>
        </Application.Resources>
 </Application>
like image 164
Borislav Ivanov Avatar answered Mar 24 '26 05:03

Borislav Ivanov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!