FormRegion Visible RRS feed

  • Question

  • Check the following code:

    private void WPFFormRegionFactory_FormRegionInitializing(object sender, Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs e)
                    var localStorage = new LocalStorage();
                //checking if user is logged in to Jumble
                    if (localStorage.AuthToken == string.Empty)
                        e.Cancel = true;
                        e.Cancel = false;


    How can I call this somewhere else in my code? I only want the form to be visible if certain things happen.

    Monday, December 14, 2015 3:01 PM


  • Hello Darryl,

    You can use the Visible property of the FormRegion class which allows to set a Boolean value that indicates whether the form region is visible or hidden. True if the form region is visible; False if it is hidden. The default is True.

    • Marked as answer by David_JunFeng Wednesday, December 23, 2015 2:31 PM
    Monday, December 14, 2015 3:11 PM