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
740
Styling custom button in tile header
posted

Hi,

With creationfilter i'm adding custom buttons to the tile header with ButtonUIElement. I would like the styling of these buttons to be exactly the same as the existing buttons of the tile. Like the close button for example. Alternatively: if i use TileHeaderButtonUIElement instead of ButtonUIElement the styling by default is ok. However with TileHeaderButtonUIElement i'm unable to set a custom text or image.

What's the best way to add a button in the tile header with exactly the same styling?

Regards,

Jacob

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi Jacob,

     

    Thank you for posting in our forums.

     

    What you could do in your case is to create a class that inherits ButtonUIElement and set defaults on it which would make it mimic the TileHeaderButtonUIElement. This way you will have ButtonUIElement functionality with TileHeaderButtonUIElement look.

     

    I have attached a sample which demonstrates this suggestion.

     

    Please let me know if you have any additional questions.

    WTP_CustomButton.zip
Children