重命名控件库
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<Application
|
||||
StartupUri="MainWindow.xaml"
|
||||
x:Class="VariaStudioTest.App"
|
||||
x:Class="MelskinTest.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Application.Resources>
|
||||
@@ -8,11 +8,11 @@
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<!--<enu:ThemesDictionary Mode="Dark" Palette="Blue"/>
|
||||
<enu:ControlsDictionary/>-->
|
||||
<ResourceDictionary Source="pack://application:,,,/VariaStudio;component/Themes/Light.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/VariaStudio;component/Themes/Accents/LightBlue.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/Melskin;component/Themes/Light.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/Melskin;component/Themes/Accents/LightBlue.xaml" />
|
||||
<!--<ResourceDictionary Source="pack://application:,,,/NeoUI;component/Themes/ColorPalette/DarkBlue.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/NeoUI;component/Themes/Dark.xaml" />-->
|
||||
<ResourceDictionary Source="pack://application:,,,/VariaStudio;component/Themes/Generic.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/Melskin;component/Themes/Generic.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
|
||||
@@ -6,9 +6,9 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
using VariaStudio;
|
||||
using Melskin;
|
||||
|
||||
namespace VariaStudioTest
|
||||
namespace MelskinTest
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
@@ -18,7 +18,7 @@ namespace VariaStudioTest
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
base.OnStartup(e);
|
||||
//Splash.ShowAsync("pack://application:,,,/VariaStudioTest;component/Resources/Images/ImageTest.png");
|
||||
//Splash.ShowAsync("pack://application:,,,/MelskinTest;component/Resources/Images/ImageTest.png");
|
||||
//MainWindow = new MainWindow();
|
||||
//Splash.CloseOnLoaded(MainWindow);
|
||||
//MainWindow.Show();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<UserControl
|
||||
x:Class="VariaStudioTest.ColorPaletteControl"
|
||||
x:Class="MelskinTest.ColorPaletteControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:VariaStudioTest">
|
||||
xmlns:local="clr-namespace:MelskinTest">
|
||||
<UserControl.Resources>
|
||||
<DataTemplate x:Key="ColorItemTemplate">
|
||||
<Border
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace VariaStudioTest
|
||||
namespace MelskinTest
|
||||
{
|
||||
public partial class ColorPaletteControl : UserControl
|
||||
{
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<n:NeoWindow
|
||||
<n:MelWindow
|
||||
Height="450"
|
||||
Icon="/Resources/Images/ImageTest.png"
|
||||
Title="配色"
|
||||
Width="800"
|
||||
mc:Ignorable="d"
|
||||
x:Class="VariaStudioTest.ColorPaletteWindow"
|
||||
x:Class="MelskinTest.ColorPaletteWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:VariaStudioTest"
|
||||
xmlns:local="clr-namespace:MelskinTest"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:n="https://github.com/ShrlAlgo/Melskin"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Grid>
|
||||
<local:ColorPaletteControl SourceUri="pack://application:,,,/VariaStudio;component/Themes/Light.xaml" />
|
||||
<local:ColorPaletteControl SourceUri="pack://application:,,,/Melskin;component/Themes/Light.xaml" />
|
||||
</Grid>
|
||||
</n:NeoWindow>
|
||||
</n:MelWindow>
|
||||
@@ -12,7 +12,7 @@ using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace VariaStudioTest
|
||||
namespace MelskinTest
|
||||
{
|
||||
/// <summary>
|
||||
/// ColorPaletteWindow.xaml 的交互逻辑
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<n:NeoWindow
|
||||
x:Class="VariaStudioTest.ControlTestWindow"
|
||||
<n:MelWindow
|
||||
x:Class="MelskinTest.ControlTestWindow"
|
||||
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:dataModel="clr-namespace:VariaStudioTest.DataModel"
|
||||
xmlns:dataModel="clr-namespace:MelskinTest.DataModel"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:n="https://github.com/ShrlAlgo/Melskin"
|
||||
Title="测试"
|
||||
Width="800"
|
||||
Height="600"
|
||||
@@ -13,14 +13,14 @@
|
||||
Icon="/Resources/Images/ImageTest.png"
|
||||
mc:Ignorable="d">
|
||||
<!-- 主窗口背景色,这是拟态风格的基础 -->
|
||||
<n:NeoWindow.Resources>
|
||||
<n:MelWindow.Resources>
|
||||
<dataModel:DataGridDemo x:Key="Dgd" />
|
||||
<!--<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/NeuWPFTest;component/ButtonStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>-->
|
||||
</n:NeoWindow.Resources>
|
||||
</n:MelWindow.Resources>
|
||||
<!--<lu:WindowAssist.TitleBar>
|
||||
<Menu>
|
||||
<MenuItem Header="Help">
|
||||
@@ -104,4 +104,4 @@
|
||||
</n:StackPanel>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</n:NeoWindow>
|
||||
</n:MelWindow>
|
||||
@@ -11,9 +11,9 @@ using System.Text;
|
||||
using System.Windows;
|
||||
|
||||
using Microsoft.Win32;
|
||||
using VariaStudio.Controls;
|
||||
using Melskin.Controls;
|
||||
|
||||
namespace VariaStudioTest;
|
||||
namespace MelskinTest;
|
||||
|
||||
/// <summary>
|
||||
/// ControlTestWindow.xaml 的交互逻辑
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Windows.Input;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
|
||||
namespace VariaStudioTest.DataModel
|
||||
namespace MelskinTest.DataModel
|
||||
{
|
||||
public enum Gender
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace VariaStudioTest.DataModel
|
||||
namespace MelskinTest.DataModel
|
||||
{
|
||||
public class TreeItemData
|
||||
{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<n:NeoWindow
|
||||
x:Class="VariaStudioTest.IconsWindow"
|
||||
<ms:MelWindow
|
||||
x:Class="MelskinTest.IconsWindow"
|
||||
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:local="clr-namespace:VariaStudioTest"
|
||||
xmlns:local="clr-namespace:MelskinTest"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:ms="https://github.com/ShrlAlgo/Melskin"
|
||||
Title="图标预览"
|
||||
Width="820"
|
||||
Height="450"
|
||||
@@ -36,14 +36,14 @@
|
||||
VerticalContentAlignment="Center"
|
||||
FontSize="14"
|
||||
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}">
|
||||
<n:InputAssist.Suffix>
|
||||
<n:IconElement
|
||||
<ms:InputAssist.Suffix>
|
||||
<ms:IconElement
|
||||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18"
|
||||
Foreground="Gray"
|
||||
Symbol="Search" />
|
||||
</n:InputAssist.Suffix>
|
||||
</ms:InputAssist.Suffix>
|
||||
</TextBox>
|
||||
</Grid>
|
||||
</Border>
|
||||
@@ -54,7 +54,7 @@
|
||||
Padding="10"
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="0,0,0,1">
|
||||
<n:FlexibleRowPanel LayoutMode="Auto">
|
||||
<ms:FlexibleRowPanel LayoutMode="Auto">
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
@@ -65,7 +65,7 @@
|
||||
Margin="10,0"
|
||||
Padding="5"
|
||||
VerticalAlignment="Center"
|
||||
n:FlexibleRowPanel.IsFill="True"
|
||||
ms:FlexibleRowPanel.IsFill="True"
|
||||
FontWeight="Bold"
|
||||
Foreground="{DynamicResource PrimaryNormalBrush}"
|
||||
IsReadOnly="True"
|
||||
@@ -75,11 +75,11 @@
|
||||
VerticalAlignment="Center"
|
||||
Click="CopyCode_Click"
|
||||
Content="复制代码" />
|
||||
<n:ColorPicker
|
||||
<ms:ColorPicker
|
||||
x:Name="ColorPicker"
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</Border>
|
||||
|
||||
<!-- 第三行: 图标浏览器 -->
|
||||
@@ -102,7 +102,7 @@
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel HorizontalAlignment="Center">
|
||||
<n:IconElement
|
||||
<ms:IconElement
|
||||
FontSize="32"
|
||||
Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=Foreground}"
|
||||
Symbol="{Binding}"
|
||||
@@ -131,4 +131,4 @@
|
||||
</ListBox.ItemContainerStyle>-->
|
||||
</ListBox>
|
||||
</Grid>
|
||||
</n:NeoWindow>
|
||||
</ms:MelWindow>
|
||||
|
||||
@@ -17,9 +17,9 @@ using System.Windows.Shapes;
|
||||
|
||||
using Microsoft.Win32;
|
||||
|
||||
using VariaStudio.Assets;
|
||||
using Melskin.Assets;
|
||||
|
||||
namespace VariaStudioTest;
|
||||
namespace MelskinTest;
|
||||
/// <summary>
|
||||
/// IconsWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -15,10 +15,10 @@ using System.Windows.Input;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
using VariaStudio.Appearance;
|
||||
using VariaStudio.Controls;
|
||||
using Melskin.Appearance;
|
||||
using Melskin.Controls;
|
||||
|
||||
namespace VariaStudioTest;
|
||||
namespace MelskinTest;
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow.xaml 的交互逻辑
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\VariaStudio\VariaStudio.csproj" />
|
||||
<ProjectReference Include="..\Melskin\Melskin.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Management" />
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<n:NeoWindow
|
||||
x:Class="VariaStudioTest.NeumorphismWindow"
|
||||
<ms:MelWindow
|
||||
x:Class="MelskinTest.NeumorphismWindow"
|
||||
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:dataModel="clr-namespace:VariaStudioTest.DataModel"
|
||||
xmlns:dataModel="clr-namespace:MelskinTest.DataModel"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:neoUiTest="clr-namespace:VariaStudioTest"
|
||||
xmlns:ms="https://github.com/ShrlAlgo/Melskin"
|
||||
xmlns:neoUiTest="clr-namespace:MelskinTest"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
Title="NeumorphismWindow"
|
||||
Width="800"
|
||||
@@ -14,7 +14,7 @@
|
||||
d:DataContext="{d:DesignInstance Type=neoUiTest:MainWindow}"
|
||||
d:Height="Auto"
|
||||
mc:Ignorable="d">
|
||||
<n:NeoWindow.Resources>
|
||||
<ms:MelWindow.Resources>
|
||||
<ResourceDictionary>
|
||||
<ContextMenu x:Key="ContextMenuDemo">
|
||||
<MenuItem Header="菜单01" />
|
||||
@@ -37,19 +37,19 @@
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
</n:NeoWindow.Resources>
|
||||
</ms:MelWindow.Resources>
|
||||
<Grid>
|
||||
<!--<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>-->
|
||||
<n:Anchor>
|
||||
<n:StackPanel Spacing="5">
|
||||
<ms:Anchor>
|
||||
<ms:StackPanel Spacing="5">
|
||||
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="装饰器 Decoration" Header="Decoration">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="装饰器 Decoration" Header="Decoration">
|
||||
<StackPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<n:SlotBorder
|
||||
<ms:FlexibleRowPanel>
|
||||
<ms:SlotBorder
|
||||
Height="100"
|
||||
Margin="5"
|
||||
HorizontalContentAlignment="Center"
|
||||
@@ -58,7 +58,7 @@
|
||||
CornerRadius="16"
|
||||
FontSize="24"
|
||||
Foreground="{DynamicResource PrimaryGradientBrush}" />
|
||||
<n:EmbossBorder
|
||||
<ms:EmbossBorder
|
||||
Margin="5"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
@@ -68,15 +68,15 @@
|
||||
FontSize="24"
|
||||
Foreground="{DynamicResource PrimaryGradientBrush}"
|
||||
ToolTip="右键" />
|
||||
<n:Card
|
||||
<ms:Card
|
||||
Margin="5"
|
||||
Content="卡片"
|
||||
CornerRadius="16"
|
||||
FontSize="24"
|
||||
Foreground="{DynamicResource PrimaryGradientBrush}" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
|
||||
<n:LightedSurface
|
||||
<ms:LightedSurface
|
||||
Height="100"
|
||||
Margin="5"
|
||||
Content="在此处移动鼠标"
|
||||
@@ -85,7 +85,7 @@
|
||||
Foreground="{DynamicResource PrimaryGradientBrush}" />
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="按钮 Buttons" Header="Buttons">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="按钮 Buttons" Header="Buttons">
|
||||
<WrapPanel>
|
||||
<Button
|
||||
Margin="5"
|
||||
@@ -112,43 +112,43 @@
|
||||
Style="{StaticResource LightedButtonStyle}" />
|
||||
</WrapPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="文本框 TextBox" Header="TextBox">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="文本框 TextBox" Header="TextBox">
|
||||
<StackPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<TextBox Style="{StaticResource SlotTextBoxStyle}" />
|
||||
<PasswordBox n:InputAssist.Password="453" Style="{StaticResource SlotPasswordBoxStyle}" />
|
||||
<PasswordBox ms:InputAssist.Password="453" Style="{StaticResource SlotPasswordBoxStyle}" />
|
||||
<PasswordBox
|
||||
n:InputAssist.Clearable="True"
|
||||
n:InputAssist.IsPasswordVisible="True"
|
||||
n:InputAssist.Password="453"
|
||||
ms:InputAssist.Clearable="True"
|
||||
ms:InputAssist.IsPasswordVisible="True"
|
||||
ms:InputAssist.Password="453"
|
||||
Style="{StaticResource SlotPasswordBoxStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<DatePicker Style="{StaticResource SlotDatePicker}" />
|
||||
<n:NumberBox Style="{StaticResource SlotNumberBoxStyle}" />
|
||||
<n:NumericBox Style="{StaticResource SlotTextBoxStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
<n:ChooseBox Style="{StaticResource SlotChooseBoxStyle}" />
|
||||
<ms:NumberBox Style="{StaticResource SlotNumberBoxStyle}" />
|
||||
<ms:NumericBox Style="{StaticResource SlotTextBoxStyle}" />
|
||||
</ms:FlexibleRowPanel>
|
||||
<ms:ChooseBox Style="{StaticResource SlotChooseBoxStyle}" />
|
||||
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="Component" Header="Avatar Tag">
|
||||
<n:FlexibleRowPanel>
|
||||
<n:Avatar Style="{StaticResource SlotAvatarStyle}" />
|
||||
<n:Tag Content="Tag" Style="{StaticResource EmbossTag}" />
|
||||
<n:Chip Content="Chip" Style="{StaticResource EmbossChipStyle}" />
|
||||
<n:Chip
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="Component" Header="Avatar Tag">
|
||||
<ms:FlexibleRowPanel>
|
||||
<ms:Avatar Style="{StaticResource SlotAvatarStyle}" />
|
||||
<ms:Tag Content="Tag" Style="{StaticResource EmbossTag}" />
|
||||
<ms:Chip Content="Chip" Style="{StaticResource EmbossChipStyle}" />
|
||||
<ms:Chip
|
||||
Content="必应"
|
||||
Style="{StaticResource EmbossChipStyle}"
|
||||
Url="www.bing.com">
|
||||
<n:Chip.Header>
|
||||
<n:IconElement Symbol="Search" />
|
||||
</n:Chip.Header>
|
||||
</n:Chip>
|
||||
</n:FlexibleRowPanel>
|
||||
<ms:Chip.Header>
|
||||
<ms:IconElement Symbol="Search" />
|
||||
</ms:Chip.Header>
|
||||
</ms:Chip>
|
||||
</ms:FlexibleRowPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="单选框 RadioButton" Header="RadioButton">
|
||||
<n:FlexibleRowPanel>
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="单选框 RadioButton" Header="RadioButton">
|
||||
<ms:FlexibleRowPanel>
|
||||
<RadioButton
|
||||
Margin="5"
|
||||
Padding="10,5"
|
||||
@@ -162,11 +162,11 @@
|
||||
Content="浮雕单选框"
|
||||
FontSize="16"
|
||||
Style="{StaticResource EmbossRadioButtonStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="切换 Toggle" Header="Toggle">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="切换 Toggle" Header="Toggle">
|
||||
<StackPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<ToggleButton
|
||||
Margin="5"
|
||||
Padding="10,5"
|
||||
@@ -174,53 +174,53 @@
|
||||
FontSize="16"
|
||||
IsChecked="True"
|
||||
Style="{StaticResource EmbossToggleButtonStyle}" />
|
||||
<n:ToggleSwitch
|
||||
<ms:ToggleSwitch
|
||||
Margin="5"
|
||||
Padding="10,5"
|
||||
Content="浮雕单选框"
|
||||
FontSize="16"
|
||||
Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<n:ToggleSwitch
|
||||
n:ControlAssist.OffContent="{n:Icon SymbolValue=ToggleOff}"
|
||||
n:ControlAssist.OnContent="{n:Icon ToggleOn}"
|
||||
n:ControlAssist.ShowText="True"
|
||||
</ms:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<ms:ToggleSwitch
|
||||
ms:ControlAssist.OffContent="{ms:Icon SymbolValue=ToggleOff}"
|
||||
ms:ControlAssist.OnContent="{ms:Icon ToggleOn}"
|
||||
ms:ControlAssist.ShowText="True"
|
||||
IsChecked="True"
|
||||
Style="{StaticResource SlotToggleSwitch}" />
|
||||
<n:ToggleSwitch
|
||||
n:ControlAssist.OffContent="{n:Icon SymbolValue=ToggleOff}"
|
||||
n:ControlAssist.OnContent="{n:Icon ToggleOn}"
|
||||
<ms:ToggleSwitch
|
||||
ms:ControlAssist.OffContent="{ms:Icon SymbolValue=ToggleOff}"
|
||||
ms:ControlAssist.OnContent="{ms:Icon ToggleOn}"
|
||||
IsChecked="True"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource SlotToggleSwitch}" />
|
||||
<n:ToggleSwitch
|
||||
n:ControlAssist.ShowText="False"
|
||||
<ms:ToggleSwitch
|
||||
ms:ControlAssist.ShowText="False"
|
||||
IsChecked="False"
|
||||
Style="{StaticResource SlotToggleSwitch}" />
|
||||
<n:ToggleSwitch
|
||||
<ms:ToggleSwitch
|
||||
IsChecked="False"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource SlotToggleSwitch}" />
|
||||
</n:FlexibleRowPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<n:ToggleSwitch IsChecked="False" Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
<n:ToggleSwitch
|
||||
</ms:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<ms:ToggleSwitch IsChecked="False" Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
<ms:ToggleSwitch
|
||||
IsChecked="False"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
<n:ToggleSwitch IsChecked="True" Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
<ms:ToggleSwitch IsChecked="True" Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
|
||||
<n:ToggleSwitch
|
||||
<ms:ToggleSwitch
|
||||
IsChecked="True"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource FloatToggleSwitchStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="复选框 CheckBox" Header="CheckBox">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="复选框 CheckBox" Header="CheckBox">
|
||||
<StackPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<CheckBox
|
||||
Margin="5"
|
||||
Padding="10,5"
|
||||
@@ -234,8 +234,8 @@
|
||||
Content="浮雕单选框"
|
||||
FontSize="16"
|
||||
Style="{StaticResource EmbossCheckBoxStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
<ms:FlexibleRowPanel>
|
||||
<CheckBox
|
||||
Margin="5"
|
||||
Padding="10,5"
|
||||
@@ -249,26 +249,26 @@
|
||||
Content="浮雕单选框"
|
||||
FontSize="16"
|
||||
Style="{StaticResource SlotCheckBoxStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="组合框 ComboBox" Header="ComboBox">
|
||||
<n:FlexibleRowPanel>
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="组合框 ComboBox" Header="ComboBox">
|
||||
<ms:FlexibleRowPanel>
|
||||
<ComboBox
|
||||
Margin="5"
|
||||
Padding="10,5"
|
||||
FontSize="16"
|
||||
Style="{StaticResource FloatComboBoxStyle}" />
|
||||
<n:Cascader
|
||||
<ms:Cascader
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding StaffList, Mode=TwoWay}"
|
||||
SelectedValue="{Binding SelectedItem, Mode=TwoWay}"
|
||||
SubmenuMemberPath="Children" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="分页导航 Pagination" Header="Pagination">
|
||||
<n:FlexibleRowPanel>
|
||||
<n:Pagination
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="分页导航 Pagination" Header="Pagination">
|
||||
<ms:FlexibleRowPanel>
|
||||
<ms:Pagination
|
||||
Margin="0,15,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
CurrentPage="3"
|
||||
@@ -276,10 +276,10 @@
|
||||
ShowPageInput="True"
|
||||
Style="{StaticResource EmbossPaginationStyle}"
|
||||
TotalItems="102" />
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="标签导航 TabControl" Header="TabControl">
|
||||
<n:FlexibleRowPanel>
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="标签导航 TabControl" Header="TabControl">
|
||||
<ms:FlexibleRowPanel>
|
||||
<TabControl Style="{StaticResource NavigationTabControlStyle}">
|
||||
<TabItem Header="选项卡 1">
|
||||
<Grid Margin="4">
|
||||
@@ -295,9 +295,9 @@
|
||||
<TabItem Header="选项卡 2" />
|
||||
<TabItem Header="禁用选项卡" IsEnabled="False" />
|
||||
</TabControl>
|
||||
</n:FlexibleRowPanel>
|
||||
</ms:FlexibleRowPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="滑动/滚动条 Slider" Header="Slider Progress">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="滑动/滚动条 Slider" Header="Slider Progress">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@@ -349,7 +349,7 @@
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Column="1" Panel.ZIndex="10">
|
||||
<n:Spin Spinning="{Binding ElementName=IsSpining, Path=IsChecked}" Tip="加载中...">
|
||||
<ms:Spin Spinning="{Binding ElementName=IsSpining, Path=IsChecked}" Tip="加载中...">
|
||||
<StackPanel x:Name="SpinPanel">
|
||||
<CheckBox x:Name="ProgressCheckbox" Content="进度待定" />
|
||||
<Slider
|
||||
@@ -383,25 +383,25 @@
|
||||
Style="{StaticResource SlotProgressBarStyle}"
|
||||
Value="{Binding ElementName=ProgressSlider, Path=Value}" />
|
||||
</StackPanel>
|
||||
</n:Spin>
|
||||
<n:Spin
|
||||
</ms:Spin>
|
||||
<ms:Spin
|
||||
HorizontalAlignment="Left"
|
||||
Spinning="{Binding ElementName=IsSpining, Path=IsChecked}"
|
||||
Tip="加载中...">
|
||||
<n:Spin.Indicator>
|
||||
<n:IconElement Symbol="Downloading" />
|
||||
</n:Spin.Indicator>
|
||||
</n:Spin>
|
||||
<ms:Spin.Indicator>
|
||||
<ms:IconElement Symbol="Downloading" />
|
||||
</ms:Spin.Indicator>
|
||||
</ms:Spin>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="列表框 ListBox" Header="ListBox">
|
||||
<n:StackPanel Orientation="Horizontal" Spacing="3">
|
||||
<n:StackPanel Spacing="10">
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="列表框 ListBox" Header="ListBox">
|
||||
<ms:StackPanel Orientation="Horizontal" Spacing="3">
|
||||
<ms:StackPanel Spacing="10">
|
||||
<ListBox
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
n:BehaviorAssist.EnableSlideAnimation="True"
|
||||
ms:BehaviorAssist.EnableSlideAnimation="True"
|
||||
SelectedIndex="1"
|
||||
Style="{StaticResource SlideTabGroupListBoxStyle}">
|
||||
<!-- 这里是你的数据项 -->
|
||||
@@ -413,7 +413,7 @@
|
||||
<ListBox
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
n:BehaviorAssist.EnableSlideAnimation="True"
|
||||
ms:BehaviorAssist.EnableSlideAnimation="True"
|
||||
IsEnabled="False"
|
||||
SelectedIndex="1"
|
||||
Style="{StaticResource SlideTabGroupListBoxStyle}">
|
||||
@@ -426,7 +426,7 @@
|
||||
<ListBox
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
n:BehaviorAssist.EnableSlideAnimation="True"
|
||||
ms:BehaviorAssist.EnableSlideAnimation="True"
|
||||
SelectedIndex="1"
|
||||
Style="{StaticResource EmbossChipListBoxStyle}">
|
||||
<!-- 这里是你的数据项 -->
|
||||
@@ -435,12 +435,12 @@
|
||||
<sys:String>Tab 3</sys:String>
|
||||
<sys:String>Another Tab</sys:String>
|
||||
</ListBox>
|
||||
</n:StackPanel>
|
||||
<n:StackPanel Orientation="Horizontal" Spacing="3">
|
||||
</ms:StackPanel>
|
||||
<ms:StackPanel Orientation="Horizontal" Spacing="3">
|
||||
<ListBox
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
n:ControlAssist.Orientation="Vertical"
|
||||
ms:ControlAssist.Orientation="Vertical"
|
||||
SelectedIndex="1"
|
||||
SelectionMode="Multiple"
|
||||
Style="{StaticResource SlotTabGroupListBoxStyle}">
|
||||
@@ -451,7 +451,7 @@
|
||||
<ListBox
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
n:ControlAssist.Orientation="Vertical"
|
||||
ms:ControlAssist.Orientation="Vertical"
|
||||
IsEnabled="False"
|
||||
SelectedIndex="1"
|
||||
Style="{StaticResource SlotTabGroupListBoxStyle}">
|
||||
@@ -462,8 +462,8 @@
|
||||
<ListBox
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
n:BehaviorAssist.EnableSlideAnimation="True"
|
||||
n:ControlAssist.Orientation="Vertical"
|
||||
ms:BehaviorAssist.EnableSlideAnimation="True"
|
||||
ms:ControlAssist.Orientation="Vertical"
|
||||
SelectedIndex="0"
|
||||
SelectionMode="Multiple"
|
||||
Style="{StaticResource SlideTabGroupListBoxStyle}">
|
||||
@@ -472,48 +472,48 @@
|
||||
<sys:String>Tab 2</sys:String>
|
||||
<sys:String>Tab 3</sys:String>
|
||||
</ListBox>
|
||||
</n:StackPanel>
|
||||
</n:StackPanel>
|
||||
</ms:StackPanel>
|
||||
</ms:StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox n:ControlAssist.AnchorHeaderText="折叠 Accordion" Header="Accordion">
|
||||
<n:Accordion
|
||||
<GroupBox ms:ControlAssist.AnchorHeaderText="折叠 Accordion" Header="Accordion">
|
||||
<ms:Accordion
|
||||
Width="200"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource EmbossAccordionStyle}">
|
||||
<n:AccordionItem Header="User Profile" IsExpanded="True">
|
||||
<ms:AccordionItem Header="User Profile" IsExpanded="True">
|
||||
<StackPanel Margin="10">
|
||||
<TextBlock Text="Name: John Doe" />
|
||||
<TextBlock Text="Email: john.doe@example.com" />
|
||||
</StackPanel>
|
||||
</n:AccordionItem>
|
||||
<n:AccordionItem Header="User Profile">
|
||||
</ms:AccordionItem>
|
||||
<ms:AccordionItem Header="User Profile">
|
||||
<StackPanel Margin="10">
|
||||
<TextBlock Text="Name: John Doe" />
|
||||
<TextBlock Text="Email: john.doe@example.com" />
|
||||
</StackPanel>
|
||||
</n:AccordionItem>
|
||||
<n:AccordionItem Header="User Profile">
|
||||
</ms:AccordionItem>
|
||||
<ms:AccordionItem Header="User Profile">
|
||||
<StackPanel Margin="10">
|
||||
<TextBlock Text="Name: John Doe" />
|
||||
<TextBlock Text="Email: john.doe@example.com" />
|
||||
</StackPanel>
|
||||
</n:AccordionItem>
|
||||
<n:AccordionItem Header="Application Settings">
|
||||
</ms:AccordionItem>
|
||||
<ms:AccordionItem Header="Application Settings">
|
||||
<StackPanel>
|
||||
<CheckBox Content="Enable Dark Mode" />
|
||||
<CheckBox Content="Auto-save every 5 minutes" />
|
||||
</StackPanel>
|
||||
</n:AccordionItem>
|
||||
<n:AccordionItem Header="Help & Support">
|
||||
</ms:AccordionItem>
|
||||
<ms:AccordionItem Header="Help & Support">
|
||||
<TextBlock
|
||||
Margin="10"
|
||||
Text="For support, please visit our website."
|
||||
TextWrapping="Wrap" />
|
||||
</n:AccordionItem>
|
||||
</n:Accordion>
|
||||
</ms:AccordionItem>
|
||||
</ms:Accordion>
|
||||
</GroupBox>
|
||||
</n:StackPanel>
|
||||
</ms:StackPanel>
|
||||
|
||||
</n:Anchor>
|
||||
</ms:Anchor>
|
||||
</Grid>
|
||||
</n:NeoWindow>
|
||||
</ms:MelWindow>
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace VariaStudioTest
|
||||
namespace MelskinTest
|
||||
{
|
||||
/// <summary>
|
||||
/// NeumorphismWindow.xaml 的交互逻辑
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VariaStudioTest
|
||||
namespace MelskinTest
|
||||
{
|
||||
public class MainViewModel : INotifyPropertyChanged
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user