5 changed files with 103 additions and 6 deletions
@ -0,0 +1,40 @@ |
|||||
|
<UserControl x:Class="SunlightCentralizedControlManagement_SCCM_.View.SYSSetView" |
||||
|
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:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF" |
||||
|
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel" |
||||
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.View" |
||||
|
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties" |
||||
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
||||
|
xmlns:ConvertMoels="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ConvertMoels" |
||||
|
mc:Ignorable="d" |
||||
|
Loaded="UserControl_Loaded" |
||||
|
d:DesignHeight="900" d:DesignWidth="1800"> |
||||
|
<Grid> |
||||
|
<StackPanel x:Name="s1cr" VerticalAlignment="Bottom" Height="60" Background="#FF00204E" Orientation="Horizontal"> |
||||
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD"> |
||||
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_Machine" VerticalAlignment="Center"> |
||||
|
<StackPanel Orientation="Horizontal" > |
||||
|
<materialDesign:PackIcon Kind="CoffeeMachine" Width="40" Height="30" Margin="10" VerticalAlignment="Center"/> |
||||
|
<TextBlock Text="{x:Static lang:Resources.Machine}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/> |
||||
|
</StackPanel> |
||||
|
</ListViewItem> |
||||
|
</ListView> |
||||
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD"> |
||||
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_EngineerSet" VerticalAlignment="Center"> |
||||
|
<StackPanel Orientation="Horizontal" > |
||||
|
<materialDesign:PackIcon Kind="Dharmachakra" Width="40" Height="30" Margin="10" VerticalAlignment="Center"/> |
||||
|
<TextBlock Text="{x:Static lang:Resources.EngineerSet}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/> |
||||
|
</StackPanel> |
||||
|
</ListViewItem> |
||||
|
</ListView> |
||||
|
</StackPanel> |
||||
|
|
||||
|
<Grid Background="White" Margin="0,0,0,60"> |
||||
|
<ContentControl x:Name="Picture"/> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
|
||||
|
</UserControl> |
@ -0,0 +1,51 @@ |
|||||
|
using MaterialDesignThemes.Wpf; |
||||
|
using OpenTK.Graphics.ES11; |
||||
|
using SunlightCentralizedControlManagement_SCCM_.ViewModel; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Net; |
||||
|
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.Markup; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
using System.Xaml; |
||||
|
using static SunlightCentralizedControlManagement_SCCM_.UserClass.SqliteHelper; |
||||
|
|
||||
|
namespace SunlightCentralizedControlManagement_SCCM_.View |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// CurveView.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SYSSetView : UserControl |
||||
|
{ |
||||
|
public SYSSetView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
private void UserControl_Loaded(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
Picture.Content = new View.EngineerSetView(); |
||||
|
} |
||||
|
|
||||
|
private void ListViewItem_Machine(object sender, MouseButtonEventArgs e) |
||||
|
{ |
||||
|
Picture.Content = new View.MachinesSet(); |
||||
|
} |
||||
|
|
||||
|
private void ListViewItem_EngineerSet(object sender, MouseButtonEventArgs e) |
||||
|
{ |
||||
|
Picture.Content = new View.EngineerSetView(); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue