Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
ThemeManager Theme throws System.NotSupportedException
posted

Hi all

When I try to bind WPF application with

<ig:ThemeManager.Theme>
        <ig:Office2013Theme StyleMicrosoftControls="True" />
</ig:ThemeManager.Theme>

I've got the exception(look at attached pic). The main xaml looks like

<Window x:Class="Backup.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ignore="http://www.ignore.com"
        xmlns:ig="http://schemas.infragistics.com/xaml"
        mc:Ignorable="d ignore"
        Height="300"
        Width="300"
        Title="Backup V1.0"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        WindowStyle="None"
        DataContext="{Binding Main, Source={StaticResource Locator}}">
    
    <Window.Resources>
    </Window.Resources>
    
    <ig:ThemeManager.Theme>
        <ig:Office2013Theme StyleMicrosoftControls="True" />
    </ig:ThemeManager.Theme>

    <Grid x:Name="LayoutRoot">

        <Button Content="Terst" Height="30" Width="30"></Button>
    </Grid>
</Window>

What am I doing wrong?

THanks