You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Rettenbacher edited this page Dec 9, 2017
·
2 revisions
What is @extend?
Extend takes the contents of a style-declaration-block and injects it into another one.
You can use @extend if you want to base a style on one or more other styles. This is more flexible than the native Style.BaseOn method.
Inherit/Copy From Another Style-Declaration-Block
For example if you want to reuse the default Label style for your customLabel class called MyLabel, you can use the extend keyword to copy the contents of Label into the style-declaration-block of MyLabel: