Telerik从XAML设置应用程序主题

red*_*man 2 silverlight xaml telerik

是否可以在Telerik中设置XAML的应用程序范围主题?只有一个代码隐藏的例子.我想在XAML中设置并且在设计模式中也有Metro主题.

Bor*_*nov 7

您可以按如下方式实现此目的:

<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>
Run Code Online (Sandbox Code Playgroud)