implement NavigateCommand

This commit is contained in:
Natlinux81
2022-08-27 02:23:07 +02:00
parent 694b932f24
commit fa278fc245
15 changed files with 250 additions and 25 deletions

View File

@@ -0,0 +1,23 @@
<UserControl x:Class="Apollon.WPF.Views.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"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Border BorderThickness="4"
BorderBrush="#0000a0"
CornerRadius="5"
Grid.RowSpan="2"
Grid.ColumnSpan="3">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="{StaticResource ColorPrimary4}" Offset="0.2"/>
<GradientStop Color="{StaticResource ColorPrimary5}" Offset="0.8"/>
</LinearGradientBrush>
</Border.Background>
</Border>
</Grid>
</UserControl>

View 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
{
/// <summary>
/// Interaction logic for Layout.xaml
/// </summary>
public partial class Layout : UserControl
{
public Layout()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,14 @@
<UserControl x:Class="Apollon.WPF.Views.NavBarView"
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"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<TextBlock Text="Navbar"
FontSize="35"
Padding="100"/>
</Grid>
</UserControl>

View 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
{
/// <summary>
/// Interaction logic for NavBarView.xaml
/// </summary>
public partial class NavBarView : UserControl
{
public NavBarView()
{
InitializeComponent();
}
}
}

View File

@@ -20,18 +20,18 @@
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border BorderThickness="4"
<!--<Border BorderThickness="4"
BorderBrush="#0000a0"
CornerRadius="5"
Grid.RowSpan="2"
Grid.ColumnSpan="3">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#d7e8fd" Offset="0.2"/>
<GradientStop Color="#81a9e2" Offset="0.8"/>
<GradientStop Color="{StaticResource ColorPrimary4}" Offset="0.2"/>
<GradientStop Color="{StaticResource ColorPrimary5}" Offset="0.8"/>
</LinearGradientBrush>
</Border.Background>
</Border>
</Border>-->
<StackPanel Grid.ColumnSpan="3">
<TextBlock
@@ -39,7 +39,7 @@
FontSize="50"
TextAlignment="Center"
Margin="0,35"
Foreground="#ff8000"
Foreground="{StaticResource BrushPrimary2}"
FontFamily="Arial Black">
<TextBlock.Effect>
<DropShadowEffect Color="#808080"></DropShadowEffect>
@@ -52,7 +52,7 @@
FontFamily="Arial"
FontWeight="Bold"
FontSize="20"
Foreground="#0000a0">
Foreground="{StaticResource BrushPrimary1}">
</TextBlock>
</StackPanel>
@@ -86,7 +86,7 @@
FontFamily="Arial"
FontWeight="Bold"
FontSize="16"
Foreground="#0000a0"/>
Foreground="{StaticResource BrushPrimary1}"/>
<components:OverViewListing Height="400"
Width="400"
@@ -103,7 +103,7 @@
FontFamily="Arial"
FontWeight="Bold"
FontSize="16"
Foreground="#0000a0"/>
Foreground="{StaticResource BrushPrimary1}"/>
<components:OverviewDetails Width="320"
DataContext="{Binding OverviewDetailsViewModel}"/>
@@ -113,7 +113,8 @@
Height="40"
Width="210"
Margin="40"
Cursor="Hand"/>
Cursor="Hand"
Command="{Binding NavigateNavBarCommand}"/>
</StackPanel>
</Grid>