We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Exception in RibbonWindow constructor (after InitializeComponent)

Getting this exception in RibbonWindow

The type initializer for 'Syncfusion.Windows.Tools.Controls.TitleBar' threw an exception. Error at object 'System.Windows.Controls.ControlTemplate' in markup file 'Syncfusion.Tools.WPF;component/Framework/Ribbon/Themes/generic.ribbonwindow.xaml'.

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:syn="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"


^^^^^ had to add this because the RibbonButton is missing from syncfusion: namespace

xmlns:p="clr-namespace:RapidOlap.IntegrationCenter.Properties"
Title="Title" Name="mainwindow"
Width="800" Height="600" WindowStartupLocation="CenterScreen" WindowState="Normal" WindowStyle="SingleBorderWindow"
syncfusion:Ribbon.ActiveColorScheme="Blue"

>

1 Reply

BA Balavasanth Syncfusion Team June 12, 2009 12:51 PM UTC


Hi kevin,

Thanks for your interests in Syncfusion products.

We could not able to reproduce your mentioned issue, we suspect that there might be some problem with the name space your referring to. Kindly try with the following set of the code snippet and please let us know still if you have any difficulties.

[XAML Code]

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
Width="800" Height="600" WindowStartupLocation="CenterScreen"
WindowState="Normal" WindowStyle="SingleBorderWindow"
syncfusion:Ribbon.ActiveColorScheme="Blue">





Please let us know if you have any queries.

Regards,
Bala.
Tools.WPF Team
Syncfusion Inc.,

Loader.
Live Chat Icon For mobile
Up arrow icon