This is a migrated thread and some comments may be shown as answers.

ContainerShape

1 Answer 59 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jakub
Top achievements
Rank 1
Jakub asked on 16 Apr 2015, 01:22 PM

How i can change style of collapse button in containerShape and it s possible to set backround color just for header in container?

 

 Thank you

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 17 Apr 2015, 10:58 AM
Hello Jakub,

There are no exposed properties which control the HeaderBackground or the ToggleButtonStyle. However you could extract the default style of the RadDiagramContainerShape and apply your modification. If you make that style implicit it will be applied across all your RadDiagramContainerShape's. You can find more information on how to extract the Template/Style of our controls in this article.
I have modified the default style and added Background to the Grid holding the header and the button. However you could change it based on your needs. As for the Style of the RadToggleButton you can apply it directly to the button in the template.

I have attached a sample project with the custom style for your convenience. Please let us know if you need further assistance.

Kind regards,
Kiril Vandov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Diagram
Asked by
Jakub
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Share this question
or