Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > Q3 2010 SP1 Calendar Design Error

Not answered Q3 2010 SP1 Calendar Design Error

Feed from this thread
  • Rahul Singh avatar

    Posted on Feb 17, 2011 (permalink)

    HI!

    Error 110 '/Telerik.Windows.Controls.Input;component/Themes/GenericExpressionDark.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. '/Telerik.Windows.Controls.Input;component/themes/Expression/Dark/ComboBox.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Line '7' Position '230'.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls.Input;component/Themes/GenericExpressionDark.xaml'.  Error at object 'System.Windows.ResourceDictionary'. D:\Development\Merged Modules\2011.02.10\TabsFMWpfXbapReactiveMaintenance\TabsFMWpfXbapReactiveMaintenance\PMJobsExtPage.xaml 4225 33 TabsFMWpfXbapReactiveMaintenance

    can any please let me know why I'm getting this design error.

    I'm using VS2008 sp1, 3.5 sp1 win 7 64bit. 

    My XAML
     

     

     

     

    <Window x:Class="TelerikDateSelectCal.Window1"
        xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"        
        xmlns:local="clr-namespace:TelerikDateSelectCal"
        Title="Window1" Height="300" Width="552"
        xml:lang="en-GB">
        <Window.Resources>
              
            <local:CustomTemplateSelector x:Key="WorksDiaryDayTemplateSelector">
                  
                <local:CustomTemplateSelector.SelectedRed>
                    <DataTemplate>
                        <Border Background="Red" Width="20">
                            <TextBox Background="Transparent" Text="{Binding Text}"
                            BorderThickness="0"/>
                        </Border>
                    </DataTemplate>
                </local:CustomTemplateSelector.SelectedRed>
      
                <local:CustomTemplateSelector.SelectedGreen>
                    <DataTemplate>
                        <Border Background="Green" Width="20">
                            <TextBox Background="Transparent" Text="{Binding Text}"
                            BorderThickness="0"/>
                        </Border>
                    </DataTemplate>
                </local:CustomTemplateSelector.SelectedGreen>
      
                <local:CustomTemplateSelector.SelectedBlue>
                    <DataTemplate>
                        <Border Background="Blue" Width="20">
                            <TextBox Background="Transparent" Text="{Binding Text}"
                            BorderThickness="0"/>
                        </Border>
                    </DataTemplate>
                </local:CustomTemplateSelector.SelectedBlue>
      
                <local:CustomTemplateSelector.SelectedYellow>
                    <DataTemplate>
                        <Border Background="Yellow" Width="20">
                            <TextBox Background="Transparent" Text="{Binding Text}"
                            BorderThickness="0"/>
                        </Border>
                    </DataTemplate>
                </local:CustomTemplateSelector.SelectedYellow>
      
                <local:CustomTemplateSelector.SelectedBlank>
                    <DataTemplate x:Name="Test">
                            <TextBox Background="Transparent" Text="{Binding Text}"
                            BorderThickness="0" Width="20"/>
                    </DataTemplate>
                    </local:CustomTemplateSelector.SelectedBlank>
            </local:CustomTemplateSelector>
      
      
      
        </Window.Resources>
          
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="20*"/>
            </Grid.ColumnDefinitions>
              
            <Grid Grid.Column="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="20*"/>
                </Grid.ColumnDefinitions>
      
                <StackPanel Grid.Column="0">
                    <Button Name="btnRed" Width="20" Height="20" Margin="3" Background="Red" Click="SetComboOpen"/>
                    <Button Name="btnGreen" Width="20" Height="20" Margin="3" Background="Green" Click="SetComboOpen"/>
                    <Button Name="btnBlue" Width="20" Height="20" Margin="3" Background="Blue" Click="SetComboOpen"/>
                    <Button Name="btnYellow" Width="20" Height="20" Margin="3" Background="Yellow" Click="SetComboOpen"/>
                      
                    <TextBox Margin="4" Name="txt1" Height="50" BorderBrush="BlueViolet" TextWrapping="Wrap"
                             Width="150"></TextBox>
                      
                    <telerik:RadGridView>
                          
                    </telerik:RadGridView>
                      
                </StackPanel>
                  
                <StackPanel Grid.Column="1">
                    <ComboBox Name="cmbRed" Width="175" Margin="2" DropDownClosed="SetCacBackColor" >
                        <ComboBoxItem>Red</ComboBoxItem>
                    </ComboBox>
                    <ComboBox Name="cmbGreen" Width="175" Margin="2" DropDownClosed="SetCacBackColor">
                        <ComboBoxItem>Green</ComboBoxItem>
                    </ComboBox>
                    <ComboBox Name="cmbBlue" Width="175" Margin="2" DropDownClosed="SetCacBackColor">
                        <ComboBoxItem>Blue</ComboBoxItem>
                    </ComboBox>
                    <ComboBox Name="cmbYellow" Width="175" Margin="2" DropDownClosed="SetCacBackColor">
                        <ComboBoxItem>Yellow</ComboBoxItem>
                    </ComboBox>
                </StackPanel>
            </Grid>
      
            <telerik:RadCalendar x:Name="calendar" Grid.Column="1"
                    Margin="2" SelectionMode="Single"
                    IsTodayHighlighted="True" ViewsHeaderVisibility="Collapsed" Culture="en-GB"
                    Rows="1" Columns="1" 
                    SelectionChanged="calendar_SelectionChanged"
                    DayTemplateSelector="{StaticResource WorksDiaryDayTemplateSelector}"/>
        </Grid>
    </Window>

     

     

     

     

     

     

     

     

    Thanks
    Rahul Singh

    Reply

  • Rahul Singh avatar

    Posted on Feb 20, 2011 (permalink)

    Problem is not with the Calendar, it's when you add Rad Grid in the same xaml then you get this error.

    Still waiting for some responses

    Reply

  • Vanya Pavlova Vanya Pavlova admin's avatar

    Posted on Feb 22, 2011 (permalink)

    Hello Rahul Singh,


    Please take a look at the following forum thread.

    Regards,
    Vanya Pavlova
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > Q3 2010 SP1 Calendar Design Error
Related resources for "Q3 2010 SP1 Calendar Design Error"

WPF Calendar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]