This is a migrated thread and some comments may be shown as answers.

GridView Windows7 Theme errors: The property 'PlusMinusTemplate' was not found in type 'Telerik.Windows.Controls.GridViewToggleButton

4 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Angie
Top achievements
Rank 1
Angie asked on 06 Oct 2010, 03:05 PM
When i try to add windows7 Theme to gridview it errors out i got the latest telerik updated silverlight controls

Here is the detailed error

System.Windows.Markup.XamlParseException occurred
  Message=The property 'PlusMinusTemplate' was not found in type 'Telerik.Windows.Controls.GridViewToggleButton'. [Line: 5 Position: 30]
  LineNumber=5
  LinePosition=30
  StackTrace:
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at RAMDirectHomeowners.View.LiabilityUnderwritting.InitializeComponent()
       at RAMDirectHomeowners.View.LiabilityUnderwritting..ctor()
  InnerException: System.InvalidOperationException
       Message=A ResourceDictionary '/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.GridView.xaml' cannot be found. Please make sure that references to the needed theme assemblies have been added to the project.
       StackTrace:
            at Telerik.Windows.Controls.Theme.GetCachedResourceDictionary(Uri uri)
            at Telerik.Windows.Controls.Theme.GetResourceFromTheme(Theme theme, String controlAssembly, Type defaultStyleKeyType, Theme controlTheme)
            at Telerik.Windows.Controls.Theme.GetResourceValue(Type defaultStyleKey, Theme theme, Theme controlTheme)
            at Telerik.Windows.Controls.Theme.GetThemeStyle(Theme oldTheme, Type defaultStyleKey)
            at Telerik.Windows.Controls.Theme.Apply(FrameworkElement element, Theme oldTheme)
            at Telerik.Windows.Controls.StyleManager.OnThemeChanged(DependencyObject target, DependencyPropertyChangedEventArgs changedEventArgs)
            at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
            at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
            at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
            at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
            at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
            at Telerik.Windows.Controls.StyleManager.SetTheme(DependencyObject element, Theme value)
       InnerException:
            Message=Error HRESULT E_FAIL has been returned from a call to a COM component.
            StackTrace:
                 at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
                 at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s)
                 at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
                 at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
                 at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
                 at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
                 at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
                 at System.Windows.ResourceDictionary.set_Source(Uri value)
                 at Telerik.Windows.Controls.Theme.GetCachedResourceDictionary(Uri uri)
            InnerException:

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 07 Oct 2010, 02:36 PM
Hi Ravindranath,

I was not able to get this exception during extracting the template of the GridViewToogleButton. Please check the attached project and if that is not the case modify it and sent it back to me.

Best wishes,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bård-Inge
Top achievements
Rank 1
answered on 12 Oct 2010, 12:34 PM
I get the same exception with YOUR project...there is obviously a problem here....

Br
BÃ¥rd
0
Angie
Top achievements
Rank 1
answered on 12 Oct 2010, 02:48 PM
Obvious problem is your Telerik.Windows.Control.GridView.dll is version 2010.2.812.1040 mine is 2010.2.714.1040. Even if i run an update on my extension manager I don't get this dll question is why? I currently have installed Telerik.Silverlight Controls version 2010.2.929.0 . I also have attached the image of what extension manager shows me. I went to the website version you guys have and its 2010.2 924 (Sep 24, 2010). So i guess i'm having the most latest version. Wonder why i don't have latest Telerik.Windows.Control.GridView.dll
0
Angie
Top achievements
Rank 1
answered on 12 Oct 2010, 02:58 PM
OK i resolved the issue i removed all my Telerik.dll's and replaced it with latest. I thought Telerik Upgrade wizard do this automatically but looks like it doesn't
Tags
GridView
Asked by
Angie
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Bård-Inge
Top achievements
Rank 1
Angie
Top achievements
Rank 1
Share this question
or