2025-04-07 23:25:45 +08:00
|
|
|
<ui:WindowX x:Class="Seyounth.Hyosung.Views.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:Seyounth.Hyosung"
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
xmlns:views="clr-namespace:Seyounth.Hyosung.Views"
|
|
|
|
xmlns:ui="https://opensource.panuon.com/wpf-ui"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DataContext="{d:DesignInstance views:MainWindow,
|
2025-03-16 03:17:36 +08:00
|
|
|
IsDesignTimeCreatable=True}"
|
2025-04-07 23:25:45 +08:00
|
|
|
ui:WindowXCaption.Height="50"
|
|
|
|
ui:WindowXCaption.Foreground="#F1F1F1"
|
|
|
|
ui:WindowXCaption.Background="#C62F2F"
|
|
|
|
Title="{Binding ViewModel.ApplicationTitle, Mode=OneWay}"
|
|
|
|
Height="1080" Width="1920">
|
|
|
|
<ui:WindowX.Resources>
|
|
|
|
<Style x:Key="HeaderSolidIconButtonStyle"
|
|
|
|
TargetType="Button"
|
|
|
|
BasedOn="{StaticResource {x:Type Button}}">
|
|
|
|
<Setter Property="ui:ButtonHelper.CornerRadius"
|
|
|
|
Value="3,0,0,3" />
|
|
|
|
<Setter Property="Height"
|
|
|
|
Value="25" />
|
|
|
|
<Setter Property="Width"
|
|
|
|
Value="30" />
|
|
|
|
<Setter Property="FontFamily"
|
|
|
|
Value="{StaticResource PanuonIconFont}" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="BorderBrush"
|
|
|
|
Value="#B12323" />
|
|
|
|
<Setter Property="BorderThickness"
|
|
|
|
Value="1" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#F1F1F1" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverBackground"
|
|
|
|
Value="#1A3E3E3E" />
|
|
|
|
</Style>
|
2025-03-16 03:17:36 +08:00
|
|
|
|
2025-04-07 23:25:45 +08:00
|
|
|
<Style x:Key="HeaderLinkIconButtonStyle"
|
|
|
|
TargetType="Button"
|
|
|
|
BasedOn="{StaticResource {x:Type Button}}">
|
|
|
|
<Setter Property="ui:ButtonHelper.CornerRadius"
|
|
|
|
Value="3,0,0,3" />
|
|
|
|
<Setter Property="FontFamily"
|
|
|
|
Value="{StaticResource PanuonIconFont}" />
|
|
|
|
<Setter Property="FontSize"
|
|
|
|
Value="16" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#E8E8E8" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverForeground"
|
|
|
|
Value="#E1E1E1" />
|
|
|
|
</Style>
|
2025-03-16 03:17:36 +08:00
|
|
|
|
2025-04-07 23:25:45 +08:00
|
|
|
<Style x:Key="SearchBoxStyle"
|
|
|
|
TargetType="ui:SearchBox">
|
|
|
|
<Setter Property="ui:ShadowHelper.Opacity"
|
|
|
|
Value="0.5" />
|
|
|
|
<Setter Property="ui:ShadowHelper.BlurRadius"
|
|
|
|
Value="25" />
|
|
|
|
<Setter Property="ui:DropDownHelper.ShadowColor"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ui:DropDownHelper.BorderBrush"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ui:DropDownHelper.Background"
|
|
|
|
Value="White" />
|
|
|
|
<Setter Property="ui:DropDownHelper.CornerRadius"
|
|
|
|
Value="4" />
|
|
|
|
<Setter Property="ui:WindowX.IsDragMoveArea"
|
|
|
|
Value="False" />
|
|
|
|
<Setter Property="FocusedShadowColor"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="CornerRadius"
|
|
|
|
Value="13" />
|
|
|
|
<Setter Property="Height"
|
|
|
|
Value="26" />
|
|
|
|
<Setter Property="Width"
|
|
|
|
Value="220" />
|
|
|
|
<Setter Property="FontSize"
|
|
|
|
Value="12" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="#B12323" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#F1F1F1" />
|
|
|
|
<Setter Property="Padding"
|
|
|
|
Value="10,0,30,0" />
|
|
|
|
<Setter Property="Watermark"
|
|
|
|
Value="Search musics, vedios, radios" />
|
|
|
|
<Setter Property="ItemsBorderBrush"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ItemsCornerRadius"
|
|
|
|
Value="4" />
|
|
|
|
<Setter Property="ItemsHeight"
|
|
|
|
Value="35" />
|
|
|
|
<Setter Property="ItemsForeground"
|
|
|
|
Value="#1E1E1E" />
|
|
|
|
<Setter Property="ItemsHoverBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
<Setter Property="ItemsHoverForeground"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ItemContainerStyle">
|
|
|
|
<Setter.Value>
|
|
|
|
<Style TargetType="ui:SearchBoxItem">
|
|
|
|
<Setter Property="Height"
|
|
|
|
Value="50" />
|
|
|
|
</Style>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter Property="ItemTemplate">
|
|
|
|
<Setter.Value>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock FontSize="14"
|
|
|
|
Text=""
|
|
|
|
FontFamily="{StaticResource PanuonIconFont}"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
<TextBlock Grid.Column="1"
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
Text="{Binding}"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2025-03-16 03:17:36 +08:00
|
|
|
|
2025-04-07 23:25:45 +08:00
|
|
|
<Style x:Key="MainMenuTreeViewStyle"
|
|
|
|
TargetType="TreeView"
|
|
|
|
BasedOn="{StaticResource {x:Type TreeView}}">
|
|
|
|
<Setter Property="ui:IconHelper.FontFamily"
|
|
|
|
Value="{StaticResource PanuonIconFont}" />
|
|
|
|
<Setter Property="ui:IconHelper.FontSize"
|
|
|
|
Value="20" />
|
|
|
|
<Setter Property="ui:TreeViewHelper.ItemsBorderBrush"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="ui:TreeViewHelper.ItemsSelectedBorderBrush"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ui:TreeViewHelper.ItemsSelectedBackground"
|
|
|
|
Value="#E8E8E8" />
|
|
|
|
<Setter Property="ui:TreeViewHelper.ItemsBorderThickness"
|
|
|
|
Value="3,0,0,0" />
|
|
|
|
<Setter Property="ui:TreeViewHelper.ItemsHeight"
|
|
|
|
Value="35" />
|
|
|
|
<Setter Property="BorderThickness"
|
|
|
|
Value="0" />
|
|
|
|
<Setter Property="ui:TreeViewHelper.ToggleArrowToggleButtonStyle"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="SubMenuTabControlStyle"
|
|
|
|
TargetType="TabControl"
|
|
|
|
BasedOn="{StaticResource {x:Type TabControl}}">
|
|
|
|
<Setter Property="ui:TabControlHelper.HeaderPanelAlignment"
|
|
|
|
Value="Center" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsHeight"
|
|
|
|
Value="45" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsPadding"
|
|
|
|
Value="15,0" />
|
|
|
|
<Setter Property="BorderThickness"
|
|
|
|
Value="0" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsHoverBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsRibbonLineVisibility"
|
|
|
|
Value="Visible" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsRibbonLinePlacement"
|
|
|
|
Value="Bottom" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsRibbonLineBrush"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsHoverRibbonLineBrush"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsHoverRibbonLineThickness"
|
|
|
|
Value="1" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsSelectedRibbonLineBrush"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsSelectedRibbonLineThickness"
|
|
|
|
Value="3" />
|
|
|
|
<Setter Property="ui:TabControlHelper.ItemsSelectedBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
<Setter Property="ui:TabControlHelper.HeaderPanelBorderBrush"
|
|
|
|
Value="LightGray" />
|
|
|
|
<Setter Property="ui:TabControlHelper.HeaderPanelBorderThickness"
|
|
|
|
Value="0,0,0,1" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="CarouselStyle"
|
|
|
|
TargetType="ui:Carousel">
|
|
|
|
<Setter Property="Animation"
|
|
|
|
Value="Flow,Fade" />
|
|
|
|
<Setter Property="AnimationEasing"
|
|
|
|
Value="CubicOut" />
|
|
|
|
<Setter Property="IndicatorVisibility"
|
|
|
|
Value="Visible" />
|
|
|
|
<Setter Property="IndicatorPaginationStyle">
|
|
|
|
<Setter.Value>
|
|
|
|
<Style TargetType="ui:Pagination"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:Carousel.IndicatorPaginationStyleKey}}">
|
|
|
|
<Setter Property="ItemsWidth"
|
|
|
|
Value="NaN" />
|
|
|
|
<Setter Property="ItemsHeight"
|
|
|
|
Value="NaN" />
|
|
|
|
<Setter Property="ItemsBackground"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="ItemsForeground"
|
|
|
|
Value="#55000000" />
|
|
|
|
<Setter Property="ItemsSelectedBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
<Setter Property="ItemsSelectedForeground"
|
|
|
|
Value="#C62F2F" />
|
|
|
|
<Setter Property="ItemContainerStyle">
|
|
|
|
<Setter.Value>
|
|
|
|
<Style TargetType="ui:PaginationItem">
|
|
|
|
<Setter Property="Cursor"
|
|
|
|
Value="Hand" />
|
|
|
|
<Setter Property="ContentTemplate">
|
|
|
|
<Setter.Value>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text=""
|
|
|
|
FontFamily="{StaticResource PanuonIconFont}"
|
|
|
|
FontSize="16" />
|
|
|
|
</DataTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</ui:WindowX.Resources>
|
|
|
|
<ui:WindowXCaption.MinimizeButtonStyle>
|
|
|
|
<Style TargetType="Button"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:WindowXCaption.MinimizeButtonStyleKey}}">
|
|
|
|
<Setter Property="VerticalAlignment"
|
|
|
|
Value="Center" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#E8E8E8" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverForeground"
|
|
|
|
Value="#E1E1E1" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
</Style>
|
|
|
|
</ui:WindowXCaption.MinimizeButtonStyle>
|
|
|
|
<ui:WindowXCaption.MaximizeButtonStyle>
|
|
|
|
<Style TargetType="Button"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:WindowXCaption.MaximizeButtonStyleKey}}">
|
|
|
|
<Setter Property="VerticalAlignment"
|
|
|
|
Value="Center" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#E8E8E8" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverForeground"
|
|
|
|
Value="#E1E1E1" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
</Style>
|
|
|
|
</ui:WindowXCaption.MaximizeButtonStyle>
|
|
|
|
<ui:WindowXCaption.CloseButtonStyle>
|
|
|
|
<Style TargetType="Button"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:WindowXCaption.CloseButtonStyleKey}}">
|
|
|
|
<Setter Property="VerticalAlignment"
|
|
|
|
Value="Center" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="Transparent" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#E8E8E8" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverForeground"
|
|
|
|
Value="#E1E1E1" />
|
|
|
|
<Setter Property="ui:ButtonHelper.HoverBackground"
|
|
|
|
Value="{x:Null}" />
|
|
|
|
</Style>
|
|
|
|
</ui:WindowXCaption.CloseButtonStyle>
|
|
|
|
<ui:WindowXCaption.HeaderTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock FontSize="18"
|
|
|
|
FontWeight="Light"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Margin="15,0,30,0"
|
|
|
|
Foreground="White"
|
|
|
|
Text="NETEASE MUSIC (SIM)" />
|
|
|
|
<StackPanel Grid.Column="1"
|
|
|
|
Orientation="Horizontal">
|
|
|
|
<Button ui:WindowX.IsDragMoveArea="False"
|
|
|
|
Style="{StaticResource HeaderSolidIconButtonStyle}"
|
|
|
|
Content="" />
|
|
|
|
<Button ui:WindowX.IsDragMoveArea="False"
|
|
|
|
Style="{StaticResource HeaderSolidIconButtonStyle}"
|
|
|
|
Content="" />
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Grid.Column="2"
|
|
|
|
Margin="10,0,0,0">
|
|
|
|
<ui:SearchBox x:Name="SchBox"
|
|
|
|
Style="{StaticResource SearchBoxStyle}"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
</ui:SearchBox>
|
|
|
|
<Button ui:WindowX.IsDragMoveArea="False"
|
|
|
|
Style="{StaticResource HeaderLinkIconButtonStyle}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,7,0"
|
|
|
|
Content="" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ui:WindowXCaption.HeaderTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="250"/>
|
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid Background="#F5F5F5">
|
|
|
|
<TreeView Grid.Row="1"
|
|
|
|
Style="{StaticResource MainMenuTreeViewStyle}">
|
|
|
|
<TreeViewItem Margin="0,10,0,10"
|
|
|
|
Padding="10,0,0,0"
|
|
|
|
ui:TreeViewItemHelper.IsStyleless="True"
|
|
|
|
Header="码垛管理" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="生产看板"
|
|
|
|
IsSelected="True" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="Perseonnel FM" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="Vedios" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="Friends" />
|
|
|
|
<TreeViewItem Margin="0,10,0,10"
|
|
|
|
Padding="10,0,0,0"
|
|
|
|
ui:TreeViewItemHelper.IsStyleless="True"
|
|
|
|
Header="Storage" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="Local" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="Downloads" />
|
|
|
|
<TreeViewItem Margin="0,10,0,10"
|
|
|
|
Padding="10,0,0,0"
|
|
|
|
ui:TreeViewItemHelper.IsStyleless="True"
|
|
|
|
Header="My" />
|
|
|
|
<TreeViewItem ui:TreeViewItemHelper.Icon=""
|
|
|
|
Header="Favorites" />
|
|
|
|
</TreeView>
|
2025-03-16 03:17:36 +08:00
|
|
|
</Grid>
|
2025-04-07 23:25:45 +08:00
|
|
|
<ScrollViewer Grid.Column="1">
|
|
|
|
<StackPanel>
|
|
|
|
<ui:Carousel Style="{StaticResource CarouselStyle}"
|
|
|
|
AutoPlayDuration="0:0:2"
|
|
|
|
Height="300"
|
|
|
|
TextBlock.FontSize="40"
|
|
|
|
TextBlock.TextAlignment="Center">
|
|
|
|
<Border Background="#FAFAFA">
|
|
|
|
<TextBlock Text="Page 1"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
<Border Background="#FAFAFA">
|
|
|
|
<TextBlock Text="Page 2"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
<Border Background="#FAFAFA">
|
|
|
|
<TextBlock Text="Page 3"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
<Border Background="#FAFAFA">
|
|
|
|
<TextBlock Text="Page 4"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
<Border Background="#FAFAFA">
|
|
|
|
<TextBlock Text="Page 5"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
</ui:Carousel>
|
|
|
|
|
|
|
|
<TabControl Style="{StaticResource SubMenuTabControlStyle}">
|
|
|
|
<TabItem Header="Recommend" />
|
|
|
|
<TabItem Header="List" />
|
|
|
|
<TabItem Header="Radio" />
|
|
|
|
<TabItem Header="Charts" />
|
|
|
|
<TabItem Header="Singer" />
|
|
|
|
<TabItem Header="Newest" />
|
|
|
|
</TabControl>
|
|
|
|
</StackPanel>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Grid>
|
|
|
|
</ui:WindowX>
|