Advertisement
Guest User

Untitled

a guest
May 26th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. <Window x:Class="WpfApp1.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp1"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="350" Width="525">
  9. <!--<Window.Resources>
  10. <Style TargetType="TextBlock"
  11. <Setter Property=""
  12. </Window.Resources>-->
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="*"/>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="*"/>
  18. </Grid.RowDefinitions>
  19. <Grid VerticalAlignment="Center">
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="*"/>
  22. <ColumnDefinition Width="*"/>
  23. </Grid.ColumnDefinitions>
  24. <TextBlock TextAlignment="Center" Text="{Binding FirstName}"/>
  25. <TextBlock TextAlignment="Center" Grid.Column="1" Text="{Binding LastName}"/>
  26. </Grid>
  27. <StackPanel Grid.Row="1" VerticalAlignment="Center">
  28. <TextBlock>Adres:</TextBlock>
  29. <WrapPanel>
  30. <TextBlock Text="{Binding City}"></TextBlock>
  31. <TextBlock Text=", "></TextBlock>
  32. <TextBlock Text="{Binding Street}"></TextBlock>
  33. </WrapPanel>
  34. <TextBlock>(Miasto), (Ulica)</TextBlock>
  35. </StackPanel>
  36. <StackPanel Grid.Row="2">
  37. <TextBlock>Zainteresowania:</TextBlock>
  38. <ItemsControl ItemsSource="{Binding Interests}">
  39. <ItemsControl.ItemTemplate>
  40. <DataTemplate>
  41. <WrapPanel>
  42. <WrapPanel.Resources>
  43. <Style TargetType="TextBlock">
  44. <Setter Property="FontSize" Value="20"></Setter>
  45. </Style>
  46. </WrapPanel.Resources>
  47. <TextBlock Text="- "></TextBlock>
  48. <TextBlock Text="{Binding .}"></TextBlock>
  49. </WrapPanel>
  50. </DataTemplate>
  51. </ItemsControl.ItemTemplate>
  52. </ItemsControl>
  53. </StackPanel>
  54. </Grid>
  55. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement