Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Custom Theme Error ..

Sort Posts: Previous Next
  •  08-07-2008, 10:43 AM Post no. 13945

    Custom Theme Error ..

    Hi all

    I created a custom theme .. Under the "themes" folder in project there is a xaml file.....        TableView.XceedDataGridTheme1.xaml   ...

    "XceedDataGridTheme1" is the project name.

    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:local="clr-namespace:XceedDataGridTheme1"
                        xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">

      <ResourceDictionary.MergedDictionaries>

        <ResourceDictionary Source="XceedDataGridTheme1;;;component\themes/XceedDataGridTheme1/TableView.XceedDataGridTheme1.xaml"/>

      </ResourceDictionary.MergedDictionaries>

    </ResourceDictionary>

     

     

    When i reffered the theme in my application it is throwing a error ..........

     

     

     "XceedDataGridTheme1;;;component\themes/XceedDataGridTheme1/TableView.XceedDataGridTheme1.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Cannot locate resource 'XceedDataGridTheme1;;;component\themes/XceedDataGridTheme1/TableView.XceedDataGridTheme1.xaml'.  Error at object 'System.Windows.ResourceDictionary',

     

    as far as i guess it is due  ..

    <ResourceDictionary Source="XceedDataGridTheme1;;;component\themes/XceedDataGridTheme1/TableView.XceedDataGridTheme1.xaml"/>

     but this is what i got by default after creation of project .. how can i resolve this ...???

    Filed under: , ,
  •  08-13-2008, 3:42 PM Post no. 14059 in reply to 13945

    Re: Custom Theme Error ..

    Have you followed all the instructions from the documentation :

    "Open the project that contains the grid to which you want to apply your theme, and add the custom theme's assembly. Refer to the Creating your first DataGrid Project topic if you require help.

    Add your theme's namespace mapping using the xmlns attribute. You can add it either to the window's characteristics or in any other location, as long as the grid that will be themed is in the same scope.

    Because your theme is not part of the default themes provided by Xceed (those included in the Xceed.Wpf.DataGrid.dll assembly), you need to use property element syntax to set the Theme property."

    Perhaps you are just missing a step, please let me know if this is indeed what you tried so I can investigate further.


    Mathieu Drimonakos
    -Technical Designer-
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.