Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created January 6, 2017 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionoy/194ec8ae63fd5aecc04e5c10b21acca7 to your computer and use it in GitHub Desktop.
Save ionoy/194ec8ae63fd5aecc04e5c10b21acca7 to your computer and use it in GitHub Desktop.
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