Created
August 6, 2011 02:23
-
-
Save vquaiato/1128922 to your computer and use it in GitHub Desktop.
Complex types properties
This file contains hidden or 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
| <!-- | |
| 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