create layout
This commit is contained in:
34
Apollon.WPF/Views/Components/Layout.xaml
Normal file
34
Apollon.WPF/Views/Components/Layout.xaml
Normal file
@@ -0,0 +1,34 @@
|
||||
<UserControl x:Class="Apollon.WPF.Views.Components.Layout"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="680" d:DesignWidth="1100">
|
||||
<Grid>
|
||||
<Grid Margin="0 35 15 15">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="0"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="250"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--<Border BorderThickness="2"
|
||||
BorderBrush="{StaticResource BrushPrimary1}"
|
||||
Grid.Row="1" Grid.Column="1"
|
||||
CornerRadius="5">
|
||||
</Border>-->
|
||||
|
||||
<ContentControl Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Content="{Binding ContentVieModel}"/>
|
||||
|
||||
<local:TournamentDetails Height="80" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Center" DataContext="{Binding TournamentDetailsViewModel}"/>
|
||||
<local:NavBarPreparationView Grid.RowSpan="2" DataContext="{Binding NavBarPreparationViewModel}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
Apollon.WPF/Views/Components/Layout.xaml.cs
Normal file
28
Apollon.WPF/Views/Components/Layout.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Apollon.WPF.Views.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for Layout.xaml
|
||||
/// </summary>
|
||||
public partial class Layout : UserControl
|
||||
{
|
||||
public Layout()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,8 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="680" d:DesignWidth="1100">
|
||||
<Grid Height="80">
|
||||
d:DesignHeight="80" d:DesignWidth="1100">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="600"/>
|
||||
|
||||
Reference in New Issue
Block a user