Main.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Window x:Class="MyMoviesWPF.MVVM.View.Main"
  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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  7. xmlns:local="clr-namespace:MyMoviesWPF.MVVM.View"
  8. xmlns:viewmodel="clr-namespace:MyMoviesWPF.MVVM.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:MainViewModel}"
  9. mc:Ignorable="d"
  10. Title="Main" Height="900" Width="1600"
  11. WindowStartupLocation="CenterScreen">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="45*"/>
  15. <RowDefinition Height="397*"/>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="139*"/>
  19. <ColumnDefinition Width="485*"/>
  20. <ColumnDefinition Width="176*"/>
  21. </Grid.ColumnDefinitions>
  22. <ContentControl
  23. HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Column="2"
  24. Content="{Binding CurrentToolbar}" Grid.Row="0"
  25. />
  26. <ContentControl
  27. HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1"
  28. Content="{Binding CurrentView}" Grid.Row="1"
  29. />
  30. <!--<StackPanel Grid.Column="1" Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center" Width="824">
  31. <TextBox Width="765" Height="50"
  32. Style="{DynamicResource MaterialDesignOutlinedTextBox}" BorderBrush="{DynamicResource MaterialDesignBodyLight}" materialDesign:HintAssist.Hint="ПОИСК" BorderThickness="1.5" />
  33. <Button Width="58" Height="50" />
  34. </StackPanel>-->
  35. </Grid>
  36. </Window>