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

RadTileList / Tile (Telerik) combined with Caliburn

6 Answers 125 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 03 Oct 2013, 02:17 PM
Has someone experience with RadTileList / Tile (Telerik) combined with Caliburn?

I have an ItemsControl (RadTileList) as the root of a UserControl.

The Items that are loaded by Caliburn are supposed to be Tiles, but they are 'wrapped' in a UserControl before they are added to the RadTileList. This is causing strange effects like having a 'Tile' in a 'Tile'  which ends up in several tiles when you start moving the tiles...

RadTileList:
<Grid>       
    <telerik:RadTileList x:Name="Items" >           
        <telerik:RadTileList.ItemTemplate>
             <DataTemplate>
                <ContentControl cal:View.Model="{Binding}"></ContentControl>
             </DataTemplate>   
        </telerik:RadTileList.ItemTemplate>                                  
    </telerik:RadTileList>           
</Grid>

In a UserControl, representing the tile:
<telerik:Tile TileType="Quadruple">
    <TextBlock>My contacts</TextBlock>
</telerik:Tile>

Did someone got this Telerik/Caliburn scenario working?

Thanks,
Peter

6 Answers, 1 is accepted

Sort by
0
Vedha
Top achievements
Rank 1
answered on 03 Oct 2013, 11:29 PM
i have exactly the same issue, binding to a collection of objects does not correspond to a Tile object, but the contentpresenter you've mentioned, I'd lake to change the Tile's background color and TileType and It doesnt work.

Can someone help?.
Thanks
0
Maya
Telerik team
answered on 04 Oct 2013, 09:13 AM
Hello,

Generally, Tile is a ContentControl on its own. Can you try reproducing the same behavior without working with Caliburn ? Do you get the same exception ? What is the exact way you see a tile ? What does it mean a tile in a tile ? Probably an image attached will be helpful.  

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 >>
0
Peter
Top achievements
Rank 1
answered on 04 Oct 2013, 10:15 AM

- Create new project
- Create user control:

<UserControl x:Class="RadTileList.UserControlContainsTileAsRoot"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <telerik:Tile>
        <TextBlock>Hello world</TextBlock>
    </telerik:Tile>
</UserControl>


- Change MainWindow

<Window x:Class="RadTileList.MainWindow"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:radTileList="clr-namespace:RadTileList"
        Title="MainWindow" Height="318" Width="1002">
    <Grid>
 
        <telerik:RadTileList>
            <telerik:Tile>Tile 1</telerik:Tile>
            <telerik:Tile>Tile 2</telerik:Tile>
            <radTileList:UserControlContainsTileAsRoot></radTileList:UserControlContainsTileAsRoot>
        </telerik:RadTileList>
 
    </Grid>
</Window>

Effect2 is when i move the 'inner tile'.

It seems that the RadTileList cannot deal with 'UserControls'. Caliburn wraps the Tiles in a UserControl before they are added. Does someone has experience with preventing the 'wrap'?

Best regards,
Peter






0
Maya
Telerik team
answered on 04 Oct 2013, 11:08 AM
Hello Peter,

Indeed, you are absolutely right. I have tested the behavior in a simple project and it is easily reproducible. I have also tested the scenario with the binaries that are about to be released with our Q3 2013 version and it behaves a bit better - all tiles are correctly rendered and reordering them does not result in the image you sent. The only thing not working correctly ( that I managed to find in some minutes testing) is selection. I will definitely improve the behavior, but unfortunately it will not be available for the upcoming release since there will be no time for extensive testing. 
Will it be possible to clarify what the result you want to get is ? Is there anything more specific that you require and cannot be accomplished by just setting the content of a Tile ? 

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 >>
0
Peter
Top achievements
Rank 1
answered on 04 Oct 2013, 12:08 PM

There is still another problem.

If you set a non-default TileType, it is not applied.

<UserControl x:Class="RadGridView_WPF_AR_1.UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <telerik:Tile TileType="Quadruple">
        <TextBlock>Hello world</TextBlock>
    </telerik:Tile>
</UserControl>


This results in a TileType 'Double' instead of Quadruple...

Best regards,
Peter

0
Maya
Telerik team
answered on 04 Oct 2013, 12:14 PM
Hello Peter,

Thank you for the additional info. I will investigate the issue further. Let me know in case you encounter 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
Peter
Top achievements
Rank 1
Answers by
Vedha
Top achievements
Rank 1
Maya
Telerik team
Peter
Top achievements
Rank 1
Share this question
or