Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
How to place Close,Restore and Minimize Buttons inside Application Menu
posted

Hai Team ,

I want ti place  3 buttons to close ,restore and minimize my application  ,iam  never using this controlls inside my ribbon tabs and  those controlls wont be visible inside the ribbon tabs , so  how can i  do this 

with out using these controlls inside the ribbon tabs is it possible to set the target Id  ? please let me know how can i implement this 

 

Thanks

  • 54937
    Offline posted

    The buttons in the title bar are not tools and so they cannot be put in the application menu. You could create tools (e.g. ButtonTools) that you put into the application menu and handle the click or associate them with commands that would affect the window. If you're using a xamRibbonWindow then you can use the (Close|Restore|Minimize)Command instances that it defines. e.g.

    <igRibbon:ButtonTool Caption="Maximize" Command="{x:Static igRibbon:XamRibbonWindow.MaximizeCommand}" />
    <igRibbon:ButtonTool Caption="Minimize" Command="{x:Static igRibbon:XamRibbonWindow.MinimizeCommand}" />
    <igRibbon:ButtonTool Caption="Restore" Command="{x:Static igRibbon:XamRibbonWindow.RestoreCommand}" />
    <igRibbon:ButtonTool Caption="Exit" Command="{x:Static igRibbon:XamRibbonWindow.CloseCommand}" />