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

Show Recent Documents

1 Answer 220 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Nikola
Top achievements
Rank 1
Nikola asked on 19 Jul 2012, 02:03 PM
Trying to understand how recent documents works I looked at your teams demo for RibbonView and i cannot understand where template are coming from

<common:RecentDocuments x:Key="RecentDocuments" />
<common:RecentPlaces x:Key="RecentPlaces" />
<common:AvailableTemplates x:Key="AvailableTemplates" />
<common:HelpItems x:Key="HelpItemsTemplate" />
Lines showed above
<StackPanel Margin="15 15 0 0">
       <TextBlock Text="Recent Documents" FontSize="14" FontWeight="Bold" Margin="0 0 0 2" />
       <Rectangle Height="1" Fill="{StaticResource DottedLineBrush}" />
       <ItemsControl ItemsSource="{StaticResource RecentDocuments}" Margin="0 4 0 0"
                ItemTemplate="{StaticResource RecentDocumentTemplate}" />
</StackPanel>

And can you help me in understanding how ItemsControl work or direct me where can I learn about this

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 24 Jul 2012, 10:48 AM
Hello Nikola,

 RecentDocuments (Places) are just very basic data classes that are supposed to represent one Document in the recent section of the Backstage. You can find the code if you open the Demos solution location in your installation folder in the RibbonView/Common/BackstageClasses file. And the templates are located in the Example itself at the very top of the example.xaml file. 
You can read more about the ItemsControl and how it works here
Hope this helps. 

Greetings,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RibbonView and RibbonWindow
Asked by
Nikola
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or