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
235
Whats the correct way to tell if a tile has been closed?
posted

Hello,

Sorry for the dumb question, but i dont seem to be able to find much information on this.

Out application has a TilePanel hosting multiple tiles, with a row status button to show / hide each tile.

What is the correct way to be notified that the user has clicked the tile close button, so that we can uncheck show / hide button?

Checking VisabilityChanged doesnt seem to work as the tile goes invisible as its expanding, and the closed event never fires.fg 

Thanks

Steve

Parents
  • 235
    Offline posted

    Hello, I have been digging a little deeper into this issue using Reflector and think I may have found a couple of issues.

    According to Reflector, UltraTile.add_Closing and remove_Closing place the event delegate into the eventsOptimized collection but OnClosing looks in the base.Events collection, hence will never find the event.

    Compare this to StateChanging, where base.Events is used for both add/remove and raising the event.

    Also if you call the SetVisible() function to make the tile invisible, then you get an exception. Again this is due to the closing events. It looks like the code is creating a TileClosedEventArgs but trying to raise a Closing event, hence gets a cast exception.

    This is using version 10.3.20103.1000

    Can you please investigate and let me know these are bugs?

    Thanks.

    Steve

Reply Children
No Data