Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="WpfApp1.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:WpfApp1"
- mc:Ignorable="d"
- Title="MainWindow" Height="350" Width="525">
- <!--<Window.Resources>
- <Style TargetType="TextBlock"
- <Setter Property=""
- </Window.Resources>-->
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid VerticalAlignment="Center">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <TextBlock TextAlignment="Center" Text="{Binding FirstName}"/>
- <TextBlock TextAlignment="Center" Grid.Column="1" Text="{Binding LastName}"/>
- </Grid>
- <StackPanel Grid.Row="1" VerticalAlignment="Center">
- <TextBlock>Adres:</TextBlock>
- <WrapPanel>
- <TextBlock Text="{Binding City}"></TextBlock>
- <TextBlock Text=", "></TextBlock>
- <TextBlock Text="{Binding Street}"></TextBlock>
- </WrapPanel>
- <TextBlock>(Miasto), (Ulica)</TextBlock>
- </StackPanel>
- <StackPanel Grid.Row="2">
- <TextBlock>Zainteresowania:</TextBlock>
- <ItemsControl ItemsSource="{Binding Interests}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <WrapPanel>
- <WrapPanel.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="FontSize" Value="20"></Setter>
- </Style>
- </WrapPanel.Resources>
- <TextBlock Text="- "></TextBlock>
- <TextBlock Text="{Binding .}"></TextBlock>
- </WrapPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </StackPanel>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement