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

Error when setting StyleManager.Theme Property

2 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ClausDC
Top achievements
Rank 1
Iron
ClausDC asked on 08 Sep 2010, 02:05 PM
The following exception occurs when we execute our application on a non development pc:

Beim Festlegen der Eigenschaft "Telerik.Windows.Controls.StyleManager.Theme" wurde eine Ausnahme ausgelöst.  

(roughly: When setting property "Telerik.Windows.Controls.StyleManager.Theme" an exception occurred.)

bei System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)

   bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory,

   Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)

   bei System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties,

   Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)

   bei System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)

   bei System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   bei dcits.rmx.NETConnector.UI.Views.SelectContactWinterSportsServiceItemView.InitializeComponent()

   bei dcits.rmx.NETConnector.UI.Views.SelectContactWinterSportsServiceItemView..ctor(

   SelectContactWinterSportsServiceItemViewModel viewModel)

   bei dcits.rmx.NETConnector.UI.Controllers.SelectContactWinterSportsServiceItemController..ctor(

   ObservableCollection`1 serviceItems, DNCUIEasyKeyboards keyboard)

   bei dcits.rmx.NETConnector.DNCUIController.SelectContactWinterSportsServiceItemReferringToReceiptShowDialog(

   DNCArrayList serviceItems, DNCUIEasyKeyboards keyboard, DNCUIDialogResults& dialogResult,

   DNCContactWinterSportsServiceItem& selectedServiceItem)


I think this has to do with the setting

telerik:StyleManager.Theme="Windows7"

in the XAML file.

Note that this error does not occur on a development pc (Windows 7) but on pcs with Windows XP. Do we need special DLLs for this theme to work under a non Win7 environment?

2 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 08 Sep 2010, 02:30 PM
Hi ClausDC,

Does it work correctly on the non-developer computer if you remove the telerik:StyleManager.Theme="Windows7" ?

Can you paste here the relevant xaml code?

Greetings,
Veselin Vasilev
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
ClausDC
Top achievements
Rank 1
Iron
answered on 08 Sep 2010, 03:51 PM
Nevermind. We solved the problem.

Thanks for your help.
Tags
GridView
Asked by
ClausDC
Top achievements
Rank 1
Iron
Answers by
Veselin Vasilev
Telerik team
ClausDC
Top achievements
Rank 1
Iron
Share this question
or