init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<base:BaseView x:Class="DTS.Viewer.Navigation.View.NavigationItem"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common">
|
||||
<base:BaseView.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="../Resources/styles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</base:BaseView.Resources>
|
||||
<StackPanel>
|
||||
<controls:RoundedBox >
|
||||
<!-- ReSharper disable once Xaml.StaticResourceNotResolved -->
|
||||
<Button Width="200" Height="30" Background="White" Content="This is button" Style="{StaticResource NavigationButtonStyle}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<i:InvokeCommandAction Command="{Binding ClickedCommand}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</controls:RoundedBox>
|
||||
</StackPanel>
|
||||
</base:BaseView>
|
||||
@@ -0,0 +1,15 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Viewer.Navigation.View
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for NavigationItem.xaml
|
||||
/// </summary>
|
||||
public partial class NavigationItem : IBaseView
|
||||
{
|
||||
public NavigationItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<base:BaseView x:Class="DTS.Viewer.Navigation.NavigationView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||||
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common">
|
||||
<ContentControl x:Name="NavigationRegion" Background="LightGray">
|
||||
<ContentControl.Template>
|
||||
<ControlTemplate TargetType="ContentControl">
|
||||
<Grid>
|
||||
<controls:RoundedBox />
|
||||
<Label>Navigation View</Label>
|
||||
<ContentPresenter Content="{TemplateBinding Content}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</ContentControl.Template>
|
||||
</ContentControl>
|
||||
</base:BaseView>
|
||||
@@ -0,0 +1,15 @@
|
||||
using DTS.Common.Interface;
|
||||
|
||||
namespace DTS.Viewer.Navigation
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for NavigationView.xaml
|
||||
/// </summary>
|
||||
public partial class NavigationView : INavigationView
|
||||
{
|
||||
public NavigationView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user