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.
Unfortunately, activation email could not send to your email. Please try again.

Exception in RibbonWindow constructor (after InitializeComponent)

Thread ID:

Created:

Updated:

Platform:

Replies:

82385 Jun 11,2009 07:01 AM Jun 12,2009 08:51 AM WPF 1
loading
Tags: Tools
Kevin Ashley
Asked On June 11, 2009 07:01 AM

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"

>

Balavasanth [Syncfusion]
Replied On June 12, 2009 08:51 AM


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.,

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;