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

Parents
No Data
Reply
  • 6759
    Offline posted

    Hi Jean-Pascal Robert-Nicoud,

    Could you please post the full exception details(Click "Copy exception detail to the clipboard" link on the exception popup in VS and paste it into a text file - check out the attached screenshot) so I could have a better chance to get some idea what's is going on. It would be even better if you could create a small sample that illustrate the exception you're getting.

Children