Hi,
Is it possible to add just a TextBlock to Quick Access Toolbar ? I would like to display current time in the main application window.
Thanks,
Ed
Hello Ed,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the QuickAccessToolbar and add a two TextBlocks, one before and one after the default Template. You can choose which one you want to use. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Stefan,
Thanks for the sample. Just in case - as far as I understand, it's also possible to add TextBlock to right side of xamRibbon's ribbon area and make it visible for any selected menu item (also by changing default style of the ribbon), correct ? I am not sure that user will accept current time in QuickAccessToolbar because of the font size.
You are correct about the Styles. Also you can change the TextBlock fontsize as you want.
I also tried to use LabelTool but I've got an error message:
{"The Tool type 'Infragistics.Windows.Ribbon.LabelTool' does not support being added to the QuickAccessToolbar."}
Hi Stefan
Two questions about your sample?
1. Is there a way to put TextBlock to the far right of the main window?
2. Looks like this approach will require style replacement on every upgrade of Ribbon Control. Is there a better way to extend it?
Thank you,
Dmitri
This behavior is expected, because you are able to add tools, which do an action in the QAT and since the LabelTool dosn't do any action yo uare not able to add it to there.
Hope this helps you.