Skip to content

Instantly share code, notes, and snippets.

@vquaiato
Created August 6, 2011 02:23
Show Gist options
  • Select an option

  • Save vquaiato/1128922 to your computer and use it in GitHub Desktop.

Select an option

Save vquaiato/1128922 to your computer and use it in GitHub Desktop.
Complex types properties
<!--
Background é uma propriedade do objeto Button
E pode ser setada para um tipo complexo no XAML
Como mostrado abaixo
-->
<Button>
<Button.Background>
<SolidColorBrush Color="Blue" />
</Button.Background>
</Button>
<!--
O content de um button pode ser setado para qualquer objeto
Image é um objeto, e isto é composition em POO
-->
<Button>
<Button.Content>
<Image Source="file.jpg" />
</Button.Content>
</Button>
<!-- Grid.Row no objeto Button é uma propriedade herdada do objeto Grid
Isto é POO, apenas serializada em application markup -->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="100" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Grid.Row="1" />
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment