Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <UserControl x:Class="ShikiDesk.Controls.ShortInfoControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ShikiDesk.Controls"
  7. mc:Ignorable="d">
  8. <Grid>
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="Auto"/>
  11. <RowDefinition Height="*" />
  12. </Grid.RowDefinitions>
  13.  
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="160" />
  16. <ColumnDefinition Width="*" />
  17. </Grid.ColumnDefinitions>
  18.  
  19. <Image Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"
  20. Source="{Binding Poster.original}"
  21. Width="150" Height="200"
  22. StretchDirection="DownOnly" VerticalAlignment="Top" />
  23.  
  24. <StackPanel Grid.Column="1" Grid.Row="0">
  25. <TextBlock Text="{Binding Name}" FontSize="15" FontWeight="Bold" />
  26. <TextBlock Text="{Binding RusName}" Margin="0,5" FontSize="15" FontWeight="Medium" />
  27. </StackPanel>
  28.  
  29. <TextBlock Grid.Column="1" Grid.Row="1" TextWrapping="WrapWithOverflow" Text="{Binding Description}" />
  30. </Grid>
  31. </UserControl>
  32.  
  33. <ScrollViewer VerticalScrollBarVisibility="Auto">
  34. <ItemsControl ItemsSource="{Binding Mode=OneWay}" BorderThickness="2">
  35. <ItemsControl.ItemTemplate>
  36. <DataTemplate>
  37. <Border BorderBrush="Gray" BorderThickness="2">
  38. <controls:ShortInfoControl Grid.Column="0" Margin="5"/>
  39. </Border>
  40. </DataTemplate>
  41. </ItemsControl.ItemTemplate>
  42. </ItemsControl>
  43. </ScrollViewer>
  44.  
  45. <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement