VS2013 / Blend does not show the XAML markup

4 posts, 0 answers
  1. Eitan
    Eitan avatar
    26 posts
    Member since:
    Jun 2012

    Posted 27 Oct 2014 Link to this post

    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>







  2. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 30 Oct 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Eitan
    Eitan avatar
    26 posts
    Member since:
    Jun 2012

    Posted 30 Oct 2014 in reply to Dimitrina Link to this post

    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
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 05 Nov 2014 Link to this post

    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.

     
Back to Top