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

RibbonBackStage with RadTileView

2 Answers 103 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yonggu Kang
Top achievements
Rank 1
Iron
Yonggu Kang asked on 28 Aug 2012, 03:28 PM

Hi telerik,

I have a RibbonBackStage binded with ViewModel,in which view contains radTileView.
When expands one in a  RadTileView after selecting backstage tab, it spreads wider than the width of remained tab space
as if he assumes there is no space for backstage tab header width,so bottom horizontal scrollbar appears and minimized tiles are out of screen.
Brief XAML is as follows;
(PreservePositionWhenMaximized setting has no effect)

   <DataTemplate x:Key="ContentTemplate">
                <ContentPresenter Content="{Binding View, Mode=OneWay}" />
    </DataTemplate>
 
   <telerik:RadTileView x:Name="purTiles" ItemsSource="{Binding ChildVM}" ContentTemplate="{StaticResource ContentTemplate}" MinimizedColumnWidth="350" MinimizedRowHeight="300" PreservePositionWhenMaximized="False">
......
   </telerik:RadTileView>

Searched this thread if any limits exist when using tileview with backstage,but can't find out.
What am I missing ?

p.s. can't find button to upload image.

RGDS
Kang

2 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 31 Aug 2012, 11:52 AM
Hi Yong-Gu,
I guess that you're experiencing this strange behavior because by default the RibbonBackStage has a ScrollViewer around its content. This means that the RadTileView will be measured with infinity (because of the ScrollViewer) and this is the default behavior of the TileView when it doesn't have size and it's measured with infinity. You can change this by setting (Max)Height/(Max)Width to the RadTileView or you could use two attached properties and RowHeight/ColumnWidth:
<telerik:RadTileView MinimizedColumnWidth="350" MinimizedRowHeight="300"
                                telerik:TileViewPanel.InfiniteHeight="550" telerik:TileViewPanel.InfiniteWidth="1000"
                                RowHeight="250" ColumnWidth="300" ColumnsCount="2"
                                PreservePositionWhenMaximized="False">
.....
</telerik:RadTileView>
If you have further questions please feel free to ask.

Greetings,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yonggu Kang
Top achievements
Rank 1
Iron
answered on 03 Sep 2012, 11:13 AM
Aha~ Thank you for your info.

RGDS
Kang

Tags
RibbonView and RibbonWindow
Asked by
Yonggu Kang
Top achievements
Rank 1
Iron
Answers by
Zarko
Telerik team
Yonggu Kang
Top achievements
Rank 1
Iron
Share this question
or