'Tile' type is not public or internal

2 posts, 0 answers
  1. Chris
    Chris avatar
    9 posts
    Member since:
    Jun 2012

    Posted 28 Jun 2013 Link to this post

    Latest Build:  2013.2.611.45
    It will not build,  Error I am getting when I try to build:
    Error 1 Only public or internal classes can be used within markup. 'Tile' type is not public or internal. .... 13 20 ...

    The Preview is showing up as expected in the design view.

    <Window x:Class="Management.MainWindow"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    Title="MainWindow" Height="768" Width="1366" ResizeMode="NoResize" WindowStyle="None">
        <Grid Name="MainGrid">
            <Grid.Resources>
                <DataTemplate x:Key="GroupTemplate">
                    <Border BorderThickness="1" BorderBrush="Black" Margin="5">
                        <TextBlock Text="{Binding}" Margin="5,0,0,5" FontWeight="Bold"/>
                    </Border>
                </DataTemplate>
                <Style TargetType="telerik:Tile">
                    <Setter Property="Margin" Value="5,15,0,0"/>
                </Style>
            </Grid.Resources>
            <telerik:RadTileList x:Name="LayoutSetup" GroupTemplate="{StaticResource GroupTemplate}">
     
                <telerik:Tile Group="Continent" Background="Green" TouchUp="Tile_TouchUp" >
                    <TextBlock Text="Europe"/>
                </telerik:Tile>
                <telerik:Tile  Group="Country" Background="Blue">
                    <TextBlock Text="Germany"/>
                </telerik:Tile>
                <telerik:Tile Group="Continent" Background="Green">
                    <TextBlock Text="Asia"/>
                </telerik:Tile>
                <telerik:Tile  Group="Country" Background="Blue">
                    <TextBlock Text="Italy"/>
                </telerik:Tile>
            </telerik:RadTileList>
        </Grid>
    </Window>


    update:  I am no longer looking to use this control,  moved to using a wrap panel and radbuttons instead.  Suits what I need it to do better.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Jul 2013 Link to this post

    Hello Chris,

    Indeed, we are aware of this issue and just in case you decide on going back to TileList, for the time being, you will have to define the Controls namespace in xaml and work directly with it:

        xmlns:controls ="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
     
    <controls:RadTileList >
                <controls:Tile Content="Tile 1" />
            </controls:RadTileList>

    Plese let us know in case you find any other issues. 

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top