You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
5.5 KiB
72 lines
5.5 KiB
<Window x:Class="SunlightAggregationManager.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:SunlightAggregationManager"
|
|
mc:Ignorable="d"
|
|
Loaded="Window_Loaded"
|
|
Title="SUNLIGHT" Height="720" Width="1280" WindowStyle="None" ResizeMode="NoResize">
|
|
|
|
<Grid>
|
|
<Grid x:Name="GridTitle" Height="50" VerticalAlignment="Top" Background="#FF006361" Margin="0,0,0,0" MouseDown="GridTitle_MouseDown">
|
|
<TextBlock Text="Sunlight Aggregation Manager (SERVER)" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22" Foreground="White"/>
|
|
<Button HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center" Width="50" Click="exit_Click"
|
|
Background="#FF006361" BorderBrush="#FF006361" >
|
|
<!-- 按钮内容:矢量图标 -->
|
|
<Viewbox Width="50" Height="40">
|
|
<Path x:Name="IconPath_exit" Data="M4,2 H14v20H4V2zm2,2v16h6V4H6zm12 8-4-4v3H8v2h6v3l4-4z" Fill="White" />
|
|
</Viewbox>
|
|
</Button>
|
|
<Button HorizontalAlignment="Right" Margin="0,0,65,0" VerticalAlignment="Center" Width="50" Click="maximize_Click"
|
|
Background="#FF006361" BorderBrush="#FF006361">
|
|
<!-- 最大化图标:一个空心的矩形 -->
|
|
<Viewbox Width="50" Height="40">
|
|
<Path x:Name="IconPath_maximize" Data="M4,2 H15 V15 H4 Z" Fill="White" />
|
|
</Viewbox>
|
|
</Button>
|
|
<Button HorizontalAlignment="Right" Margin="0,0,125,0" VerticalAlignment="Center" Width="50" Click="minimize_Click"
|
|
Background="#FF006361" BorderBrush="#FF006361">
|
|
<!-- 最小化图标:一条横线 -->
|
|
<Viewbox Width="50" Height="40">
|
|
<Path x:Name="IconPath_minimize" Data="M2,2 H18 " Stroke="White" StrokeThickness="2" />
|
|
</Viewbox>
|
|
</Button>
|
|
</Grid>
|
|
<Grid x:Name="GridMenu" Width="200" HorizontalAlignment="Left" Background="#FF00204E" Margin="0,50,0,0" >
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD" Background="{x:Null}" >
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_state">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.state}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_serve">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.serve}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_log">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.log}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_machine">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.machine}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_extend">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.extend}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_user">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.user}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_Action">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.Action}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_set">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.set}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_MouseLeftButtonUp_help">
|
|
<TextBlock Text="{x:Static local:ResourceLanguage.help}" VerticalAlignment="Center" Margin="20 10" Foreground="White" HorizontalAlignment="Center" FontSize="24"/>
|
|
</ListViewItem>
|
|
</ListView>
|
|
</Grid>
|
|
<Grid x:Name="state" Margin="200,50,0,0">
|
|
<TextBox x:Name="LOG" TextWrapping="Wrap" Margin="5,200,5,5" FontSize="16"/>
|
|
</Grid>
|
|
<ContentControl x:Name="Picture" Margin="200,50,0,0" Visibility="Hidden"/>
|
|
</Grid>
|
|
</Window>
|
|
|