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
3166
Office2007UICompatibility is set to False
posted

I have set the Office2007UICompatibility is set to False. This is done to Hide QuickAccessToolbar. I am setting Ribbon to Visible and as per my understanding and look and feel it looks the same as Office2007UICompatibility set to True.

Do I loose any functionality by setting Office2007UICompatibility to False ?

 

  • 20872
    Offline posted

    Hello,

    You could find more infromation about Office 2007 UI Capabilites at the following link :

    http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=Win_Using_Microsoft_Office_2007_UI_Capabilities.html

    If you want to remove the QuicjAccessToolbar you could use CreationFilter like the following one:

     class Class1Creation : IUIElementCreationFilter
        {
            public void AfterCreateChildElements(UIElement parent)
            {
                QatQuickCustomizeToolUIElement tool = parent as QatQuickCustomizeToolUIElement;
                if (tool != null)
                {
                    tool.Rect = new Rectangle(tool.Rect.X, tool.Rect.Y, 0, 0);
                }

            }

            public bool BeforeCreateChildElements(UIElement parent)
            {
                return false;
            }

       }

    what you should do after that is to assing an instance from this class to the CreationFilter property like:

    ultraToolbarsManager1.CreationFilter = new Class1Creation();

    Please let us know if you have any other questions.