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

VS2013 / Blend does not show the XAML markup

3 Answers 160 Views
HubTile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eitan
Top achievements
Rank 1
Eitan asked on 27 Oct 2014, 04:38 PM
Hi,

I created a small test app with below code XAML code. Both VS2013 and Blend don't show the page and both complain on Invalid Markup.

Is the problem is with your code or with mine, and how can I fix the problem?

Thanks,
Eitan

<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel"
      Grid.Row="1"
      Margin="12,0,12,0">
 
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
 
    <telerikPrimitives:RadHubTile x:Name="rhtFindMyTrip"
                                  Grid.Row="0"
                                  Width="420"
                                  Height="200"
                                  Title="find my trip"
                                  ImageSource="/Assets/Tiles/sun.png"
                                  Count="4">
    </telerikPrimitives:RadHubTile>
 
    <telerikPrimitives:RadCustomHubTile Grid.Row="1"
                                        Width="Auto"
                                        Height="128"
                                        x:Name="CustomTile"
                                        Margin="12, 0, 0, 0"
                                        Foreground="{x:Null}">
        <!--Eitan
        FrontContentTemplate="{StaticResource MyTemplate}"-->
 
        <telerikPrimitives:RadCustomHubTile.FrontContent>
            <Grid Background="#FF28853D">
                <Image Source="/Assets/Tiles/sun.png" />
 
                <TextBlock Text="Now, 12"
                           FontSize="{StaticResource PhoneFontSizeMedium}"
                           FontFamily="{StaticResource PhoneFontFamilySemiLight}"
                           VerticalAlignment="Top"
                           HorizontalAlignment="Left"
                           Margin="8"
                           Foreground="Black"
                           FontWeight="Bold" />
            </Grid>
        </telerikPrimitives:RadCustomHubTile.FrontContent>
 
        <telerikPrimitives:RadCustomHubTile.BackContent>
            <Grid Background="#FF852881">
                <Image Source="/Assets/Tiles/cloud.png" />
 
                <TextBlock Text="Later, 10"
                           FontSize="{StaticResource PhoneFontSizeMedium}"
                           FontFamily="{StaticResource PhoneFontFamilySemiLight}"
                           VerticalAlignment="Top"
                           HorizontalAlignment="Left"
                           Margin="8"
                           Foreground="Black"
                           FontWeight="Bold" />
            </Grid>
        </telerikPrimitives:RadCustomHubTile.BackContent>
 
    </telerikPrimitives:RadCustomHubTile>
</Grid>







​

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 30 Oct 2014, 03:11 PM
Hi Eitan,

Unfortunately I couldn't reproduce this issue you reported. Please, find attached a sample project and compare it with your project. Please let us know if there is anything that we are missing and modify our project to demonstrate the issue. This will allow us to further investigate the case.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Eitan
Top achievements
Rank 1
answered on 30 Oct 2014, 03:56 PM
Hi,

I opened the sample you sent me.

VS2013 ask me if I want to upgrade the Telerik to a new version of your controls, I said yes:
     Runtime Version: v4.0.30319
     Version: 2014.3.1021.3040

after the update, VS2013 will not show the XAML of the MainPage. Please see attached screen capture.
The application builds and runs OK, just the XAML designer is broken.

Thanks,
Eitan
0
Ves
Telerik team
answered on 05 Nov 2014, 07:36 AM
Hi Eitan,

I can see on your screenshot (and it is a bit confusing) that you do not have a reference to Telerik.Windows.Controls.Primitives. This would lead to the error you see, but it would not allow you to run the project. Still, please make sure that both assemblies Telerik.Windows.Core and Telerik.Windows.Controls.Primitives are referenced in your project.

In addition, sometimes, when assemblies are replaced (upgraded) Visual Studio keeps old versions cached. Please, close the designer, restart Visual Studio, then clean and rebuild the project. After that, you can open the designer again and it should work. I have attached a screenshot of how my Visual Studio looks with Dimitrina's example open.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
HubTile
Asked by
Eitan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Eitan
Top achievements
Rank 1
Ves
Telerik team
Share this question
or