RecentDocuments ReadOnly

Ribbon for WPF Forum

Posted 8 years ago by Jürgen Hölker - dSPACE GbmH
Avatar
Hi, i have a Ribbon with BackstageTab and a Recent-Menu like the following:

<ribbon:BackstageTab Name="RecentTab" Header="Recent">
     <StackPanel Orientation="Horizontal">
         <Border Style="{StaticResource ContentBoxBorderStyle}">
             <DockPanel Margin="19,9">
                 <ribbon:Separator DockPanel.Dock="Top" Label="Recent Documents" Context="BackstageItem" />
                 <ScrollViewer VerticalScrollBarVisibility="Auto">
                     <ribbon:RecentDocumentMenu VariantSize="Large" Manager="{Binding RecentDocuments}" />
                 </ScrollViewer>
             </DockPanel>
          </Border>
    </StackPanel>
</ribbon:BackstageTab>
The RecentDocumentManager-Binding is a RecentDocumentManager in code. I get all RecentDocuments, but they are ReadOnly.
What do i need to do here??

Greets,

**Jürgen**

[Modified at 07/13/2011 12:53 AM]

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jürgen,

If look at the documentation topic on RecentDocumentMenu, the last section talks about how the buttons it makes use ApplicationCommands.Open. You need to handle that command in your code and if no handler is found, the button will be disabled.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.