Created
January 6, 2017 09:50
-
-
Save ionoy/194ec8ae63fd5aecc04e5c10b21acca7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin Centered() : FrameworkElement { | |
HorizontalAlignment: Center | |
} | |
mixin Header() { | |
TextBlock { FontSize: 16 } | |
} | |
TextBlock { | |
@Centered() | |
@Header() { "..." } | |
} | |
++++++++ VS +++++++++++++ | |
mixin Centered() : FrameworkElement { | |
HorizontalAlignment: Center | |
} | |
type Header() { | |
TextBlock { FontSize: 16 } | |
} | |
TextBlock { | |
#Centered() | |
@Header() { "..." } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment