基本框架搭建
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<UserControl x:Class="linesider_screen_bankend.Modules.ModuleName.Views.CommonLog"
|
||||
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:linesider_screen_bankend.Modules.ModuleName.Views"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True">
|
||||
<Grid>
|
||||
<!-- Log GroupBox -->
|
||||
<GroupBox Header="系统日志" Style="{StaticResource MaterialDesignGroupBox}">
|
||||
<TextBox HorizontalAlignment="Left" TextWrapping="Wrap" Style="{StaticResource MaterialDesignTextBox}"/>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -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 linesider_screen_bankend.Modules.ModuleName.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// CommonLog.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class CommonLog : UserControl
|
||||
{
|
||||
public CommonLog()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<UserControl x:Class="linesider_screen_bankend.Modules.ModuleName.Views.TopMenu"
|
||||
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:linesider_screen_bankend.Modules.ModuleName.Views"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True">
|
||||
<Grid >
|
||||
<DockPanel LastChildFill="false">
|
||||
<!--<materialDesign:PackIcon Width="Auto" Kind="Menu" Margin="0,0" VerticalAlignment="Center" DockPanel.Dock="Left"/>-->
|
||||
<Menu DockPanel.Dock="Left" Style="{StaticResource MaterialDesignMenu}">
|
||||
<MenuItem Header="主页" Command="{Binding NavigateToHomeCommand}"/>
|
||||
<MenuItem Header="配置" Command="{Binding NavigateToSettingsCommand}"/>
|
||||
</Menu>
|
||||
<Button DockPanel.Dock="Right" Content="退出" Width="100" Background="Red" Foreground="White" Style="{StaticResource MaterialDesignRaisedButton}"/>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
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;
|
||||
using linesider_screen_bankend.Core;
|
||||
using Prism.Commands;
|
||||
using Prism.Regions;
|
||||
using SqlSugar;
|
||||
|
||||
namespace linesider_screen_bankend.Modules.ModuleName.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// TopMenu.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TopMenu : UserControl
|
||||
{
|
||||
|
||||
|
||||
|
||||
public TopMenu(IRegionManager regionManager)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<UserControl x:Class="linesider_screen_bankend.Modules.ModuleName.Views.ViewA"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:linesider_screen_bankend.Modules.ModuleName.Views"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True" >
|
||||
<Grid>
|
||||
<TextBlock Text="{Binding Message}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="24"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -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 linesider_screen_bankend.Modules.ModuleName.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ViewA.xaml
|
||||
/// </summary>
|
||||
public partial class ViewA : UserControl
|
||||
{
|
||||
public ViewA()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user