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

Edit Control Parts in Blend

3 Answers 142 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 04 Apr 2009, 12:11 AM
Blend 2.5
RadControls 2008 Q3

Edit Control Parts (Template) > Edit a Copy > This Document >

Exception: Type Reference cannot find public type named 'RadGridView'

Any clue?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Apr 2009, 06:14 AM
Hi Brad,

Generally Blend will throw such exceptions if there is no correct XmlnsDefinition for the assembly however we definitely have this in the GridView dll.

Can you send us small project where this can be reproduced? You can try also our latest release - Q1 2009.

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
McLanahan Stevens
Top achievements
Rank 1
answered on 09 Jul 2009, 08:28 PM
Has this been fixed in the latest version?

I'm actually running a trial of the Telerik controls under Expression Blend 2 SP1. So far I can successfully add the controls to the canvas (RadGrid and RadChart) but when I try to "Edit Control Parts->Edit a Copy, I get exactly the same error.

Any help would be much appreciated!

I have attached a chunk of sample XAML which reproduces the problem:

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="GraphinTest.Window1"
    x:Name="Window"
    Title="Window1"
    Width="640" Height="480" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Window.Resources>
        <ControlTemplate x:Key="RadChartControlTemplate1" TargetType="{x:Type telerik:RadChart}">
            <Grid Background="{TemplateBinding Background}">
                <Grid x:Name="PART_DefaultLayoutGrid">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <ContentPresenter x:Name="PART_DefaultChartTitleContainer" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    <ContentPresenter x:Name="PART_DefaultChartAreaContainer" Grid.Column="0" Grid.Row="1" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    <Border Grid.Column="1" Grid.Row="0" Grid.RowSpan="2">
                        <ContentPresenter x:Name="PART_DefaultChartLegendContainer" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    </Border>
                </Grid>
                <ContentPresenter Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
            </Grid>
        </ControlTemplate>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <telerik:RadChart Margin="56,56,137,58" Content="RadChart" Template="{DynamicResource RadChartControlTemplate1}"/>
    </Grid>
</Window>
0
McLanahan Stevens
Top achievements
Rank 1
answered on 09 Jul 2009, 09:11 PM
I may have figured it out...

So after restarting blend a few times, I noticed Blend was having issues with System.Windows. So I added System.Windows.dll from C:\Program Files\Microsoft Silverlight\2.0.40115.0, rebuilt, and it appears to have fixed the problem.



Tags
GridView
Asked by
Brad
Top achievements
Rank 1
Answers by
Vlad
Telerik team
McLanahan Stevens
Top achievements
Rank 1
Share this question
or