RecentDocumentManager - missing hot keys

Ribbon for WPF Forum

Posted 9 years ago by FinallyInSeattle
Version: 10.1.0521
Avatar
I noticed in the Recent Documents sample that the file numbers (1-9) had access keys assigned. I've added the control and logic to our client and our numbers don't have access keys. I've added our XAML below.

The main difference is that, instead of performing a "manager.Documents.Add(docRef);" for each file, we're serializing and deserializing - our load is as follows: "this.recentDocManager.Deserialize(recentDocuments[0].PreferenceData);". Is there something else we need to define?
      <!--Define Application Menu-->
      <actr:Ribbon.ApplicationMenu>
        <actr:ApplicationMenu AutomationProperties.AutomationId="appMenu">

          <!-- Additional Content (Right side of application menu) -->
          <actr:ApplicationMenu.AdditionalContent>
            <actr:RecentDocumentMenu x:Name="recentDocMenu" Label="Recent SR's" Width="300">
              <shared:RecentDocumentManager x:Name="recentDocManager" MaxDocumentCount="12" MaxFilteredDocumentCount="10"/>
            </actr:RecentDocumentMenu>
          </actr:ApplicationMenu.AdditionalContent>
          
          <actr:ApplicationMenu.FooterButtons>
            <actr:Button AutomationProperties.AutomationId="buttonOptions"
              Command="{StaticResource OptionsCommand}"
              KeyTipAccessText="I" />
            <actr:Button AutomationProperties.AutomationId="buttonExit"
              Command="{StaticResource exitCommand}"
              KeyTipAccessText="X" />
          </actr:ApplicationMenu.FooterButtons>

        </actr:ApplicationMenu>
      </actr:Ribbon.ApplicationMenu>

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello the 1-9 hotkeys should just take effect automatically. I don't believe you have to do anything special to make them take effect. Are you sure you're running the latest build? If so, then please make a simple sample project that shows the issue and email it over so we can take a look. Don't include any .exe files in your ZIP. Thanks!


Actipro Software Support

Posted 9 years ago by FinallyInSeattle
Avatar
Yes, it was my error. There were old dll's hiding out in my bin directory. Thanks!
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.