RecentDocManager

Ribbon for WPF Forum

Posted 14 years ago by Michael.Ehlert
Version: 9.1.0505
Avatar
Hi,
is there an easy possibilty to set the ScreenTip for the entries in the documentlist to another property (i.e. tag) instead of location?

Regards

Michael

Comments (4)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Michael,

The ItemTemplate for the RecentDocumentManager control is currently this:
<DataTemplate DataType="shared:IDocument">
    <ribbonControls:Button Style="{StaticResource RecentDocumentButtonStyle}"
            Label="{Binding Name}" ScreenTipHeader="{Binding Location}" ScreenTipDescription=""
            />
</DataTemplate>
You could set it to bind the ScreenTipHeader to something else if you wish.


Actipro Software Support

Posted 14 years ago by Michael.Ehlert
Avatar
Thank you for the fast response. I set the template like so:

<ribbon:ApplicationMenu.AdditionalContent>
<ribbon:RecentDocumentMenu Label="Letzte Transaktionen">
<ribbon:RecentDocumentMenu.ItemTemplate>
<DataTemplate DataType="shared:IDocument" >
<ribbon:Button
Label="{Binding Name}"
ScreenTipHeader="Test"
ScreenTipDescription=""
/>
</DataTemplate>
</ribbon:RecentDocumentMenu.ItemTemplate>

...

but - how can i keep the RecentDocumentButtonStyle and only replace the screentipheader?
I didn't find a possibility to set the button's style to staticresource RecentDocumentButtonStyle in the template, the resource key can't be found.

Regards

Michael
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Michael,

You could copy that style from the default styles. It's downloadable from your account if you are a WPF Studio customer.

But we made a change for the next maintenance release for you so that the style gets implicitly applied and this will work in the next build (just tested it in a QuickStart):
<ribbon:RecentDocumentMenu.ItemTemplate>
    <DataTemplate DataType="shared:IDocument">
        <ribbon:Button Label="{Binding Name}" ScreenTipHeader="Test" ScreenTipDescription="" />
    </DataTemplate>
</ribbon:RecentDocumentMenu.ItemTemplate>


Actipro Software Support

Posted 14 years ago by Michael.Ehlert
Avatar
Hi,
I do prefer your solution with the implicitly applied style, so i'm looking forward to the next maintenance release. Again, thank you very much for the fast response!

Michael

[Modified at 10/05/2009 08:28 AM]
The latest build of this product (v24.1.1) was released 22 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.