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

'Tile' type is not public or internal

1 Answer 104 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 28 Jun 2013, 05:40 PM
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.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Jul 2013, 06:40 AM
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 >>
Tags
TileList
Asked by
Chris
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or