Hello,
I'm trying to build a custom theme to apply a Windows7 based theme.
I follow all the steps here http://www.telerik.com/help/silverlight/common-styling-apperance-themes-custom-theme-project-telerik-approach.html , and as I add the Docking.xaml theming file to my custom theme project, VS2010 says that the Telerik.Windows.Controls.Animations is not include in the assembly Telerik.Windows.Controls.Docking (v2011.1.516.1040) although the build succeeded.
xmlns:telerikDockingAnimations="clr-namespace:Telerik.Windows.Controls.Animations;assembly=Telerik.Windows.Controls.Docking"
I wonder if this could be a reason for the error I got when lauching my solution. Pointing the InitializeComponent() in my mainpage.xaml.cs :
L'exception System.Windows.Markup.XamlParseException s'est produite Message=La propriété Set 'System.Windows.FrameworkElement.Style' a levé une exception. [Line: 50 Position: 109] LineNumber=50 LinePosition=109 StackTrace: à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) à SpaceX.MainPage.InitializeComponent() à SpaceX.MainPage..ctor() InnerException: System.Windows.Markup.XamlParseException Message=La propriété Set 'Telerik.Windows.Controls.Theme.ApplicationThemeSetter' a levé une exception. [Line: 11 Position: 69] LineNumber=11 LinePosition=69 StackTrace: à MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers, String xamlResourceUriString) à System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle) InnerException: Message=Une erreur HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM. StackTrace: à MS.Internal.XcpImports.CheckHResult(UInt32 hr) à MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s) à MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj) à System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value) à System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue) à System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) à System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter) à System.Windows.ResourceDictionary.set_Source(Uri value) à Telerik.Windows.Controls.Theme.CreateResourceDictionaryForApplicationTheme(Theme theme, String controlAssembly) à Telerik.Windows.Controls.Theme.AddMergedDictionaryFromApplicationTheme(ResourceDictionary generic, String assemblyName) à Telerik.Windows.Controls.Theme.OnApplicationThemeSetterChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) à Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e) à System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue) à System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) à System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter) à System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) à Telerik.Windows.Controls.Theme.SetApplicationThemeSetter(DependencyObject obj, String value) InnerException: I'm using Silverlight beta 5, and can not go back to sl4 because of a 'CreateRiaClientFilesTask / missing ClientFrameworkPath' error. Shouldn't it work with sl5 ?
Any idea ?
Thanks,
Marc.