Advertisement
MrModest

UserControl.xaml

Mar 13th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.49 KB | None | 0 0
  1. <DockPanel>
  2.     <Menu DockPanel.Dock="Top" Padding="3">
  3.         <!-- Общие Control'ы -->
  4.         <MenuItem Header="Аниме" IsEnabled="{Binding Mode.AnimeIsEnable}" Name="animeMenuItem" Command="{Binding Mode.SwitchToAnimeMode}"></MenuItem> <!-- Активность кнопки -->
  5.         <MenuItem Header="Манга" IsEnabled="{Binding Mode.MangaIsEnable}" Name="mangaMenuItem" Command="{Binding Mode.SwitchToMangaMode}"></MenuItem> <!-- Активность кнопки -->
  6.         <!-- Общие Control -->
  7.     </Menu>
  8.     <StackPanel>
  9.         <StackPanel Orientation="Horizontal" MinHeight="200">
  10.             <Image Source="Resources/Images/no-image.png" Width="150" MaxHeight="200" Margin="0,5" StretchDirection="DownOnly" />
  11.             <StackPanel>
  12.                 <Label FontSize="20" FontWeight="Bold" Padding="0, 0, -10, 0">Main title name</Label>
  13.                 <Label FontSize="15" VerticalAlignment="Top" Padding="0,-10,0,0">Second title name</Label>
  14.                 <Separator Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="6" />
  15.                 <Grid Margin="5,0" VerticalAlignment="Top" Name="titleDescriptionGrid">
  16.                     <Grid.RowDefinitions>
  17.                         <RowDefinition></RowDefinition>
  18.                         <RowDefinition></RowDefinition>
  19.                         <RowDefinition></RowDefinition>
  20.                         <RowDefinition></RowDefinition>
  21.                     </Grid.RowDefinitions>
  22.  
  23.                     <Grid.ColumnDefinitions>
  24.                         <ColumnDefinition></ColumnDefinition>
  25.                         <ColumnDefinition></ColumnDefinition>
  26.                     </Grid.ColumnDefinitions>
  27.  
  28.                     <Label Grid.Row="0" Grid.Column="0" Name="epchLabel" Content="{Binding Mode.EpChLabel}"></Label> <!-- Текст Label -->
  29.                     <!-- Общие Control -->
  30.  
  31.                     <Label Grid.Row="1" Grid.Column="0" Visibility="{Binding Mode.MangaVisibility}" Name="volLabel">Томов</Label>  <!-- Отображение Control'а -->
  32.                     <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1" Visibility="{Binding Mode.MangaVisibility}"> <!-- Отображение Control'а -->
  33.                         <TextBox VerticalAlignment="Center" Width="40" Name="volTextBox"></TextBox>
  34.                         <Label Name="volTotalLabel">/ ?</Label>
  35.                     </StackPanel>
  36.                    
  37.                     <Label Grid.Row="2" Grid.Column="0">Статус</Label> <!-- Пункты ComboBox'а -->
  38.                     <!-- Общие Control'ы -->
  39.                 </Grid>
  40.             </StackPanel>
  41.         </StackPanel>
  42.         <!-- Общие Control'ы -->
  43.         <TabControl SelectedIndex="1" x:Name="animeTabControl" ItemsSource="{Binding AnimeLists}" Height="250" Visibility="{Binding Mode.AnimeVisibility}">
  44.             <!-- Коллекции внутри TabControl'а -->
  45.         </TabControl>
  46.     </StackPanel>
  47. </DockPanel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement