Show Recent Documents

2 posts, 0 answers
  1. Nikola
    Nikola avatar
    6 posts
    Member since:
    Jul 2012

    Posted 19 Jul 2012 Link to this post

    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}" />

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

    Thanks in advance
  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 24 Jul 2012 Link to this post

    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. 

    Miro Miroslavov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top