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
20
UltraTile being closed issue
posted

I'd like to knoe how to prevent the UltraTile being closed by clicking the "x" and being enlarged in C#?

  • 290
    Suggested Answer
    posted

    There are 2 ways to do it.

    1. Either you can set the properties
       this.ultraTilePanel1.Tiles[3].Settings.ShowCloseButton = False;
       this.ultraTilePanel1.Tiles[3].Settings.ShowStateChangeButton = False;

       this.ultraTile3.Settings.ShowCloseButton = False;
       this.ultraTile3.Settings.ShowStateChangeButton = False;

    2. Or you can handle the StateChanging event of a particular tile at runtime as in:                                

     

     

     

     

    private void tile1_StateChanging(object sender, Infragistics.Win.Misc.TileStateChangingEventArgs e)
    {
         e.Cancel =
    true;
    }

    Hope this helps.