Browse Source

客户端框架搭建

master
С·æ 4 years ago
parent
commit
7d7573367b
  1. 25
      客户端/齐越慧眼/齐越慧眼.sln
  2. 14
      客户端/齐越慧眼/齐越慧眼/App.xaml
  3. 17
      客户端/齐越慧眼/齐越慧眼/App.xaml.cs
  4. 10
      客户端/齐越慧眼/齐越慧眼/AssemblyInfo.cs
  5. 28
      客户端/齐越慧眼/齐越慧眼/MainWindow.xaml
  6. 29
      客户端/齐越慧眼/齐越慧眼/MainWindow.xaml.cs
  7. 12
      客户端/齐越慧眼/齐越慧眼/UserControls/CatControl.xaml
  8. 26
      客户端/齐越慧眼/齐越慧眼/UserControls/CatControl.xaml.cs
  9. 13
      客户端/齐越慧眼/齐越慧眼/齐越慧眼.csproj

25
客户端/齐越慧眼/齐越慧眼.sln

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "齐越慧眼", "齐越慧眼\齐越慧眼.csproj", "{BAF5933E-1C5F-4316-ABFF-D02263E4AC5A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BAF5933E-1C5F-4316-ABFF-D02263E4AC5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BAF5933E-1C5F-4316-ABFF-D02263E4AC5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BAF5933E-1C5F-4316-ABFF-D02263E4AC5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BAF5933E-1C5F-4316-ABFF-D02263E4AC5A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D120485D-D472-4F82-9C60-F6A6B11F9B35}
EndGlobalSection
EndGlobal

14
客户端/齐越慧眼/齐越慧眼/App.xaml

@ -0,0 +1,14 @@
<Application x:Class="齐越慧眼.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:齐越慧眼"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>

17
客户端/齐越慧眼/齐越慧眼/App.xaml.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

10
客户端/齐越慧眼/齐越慧眼/AssemblyInfo.cs

@ -0,0 +1,10 @@
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

28
客户端/齐越慧眼/齐越慧眼/MainWindow.xaml

@ -0,0 +1,28 @@
<hc:GlowWindow x:Class="齐越慧眼.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:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:齐越慧眼"
xmlns:uc="clr-namespace:齐越慧眼.UserControls"
mc:Ignorable="d"
Background="White"
WindowStartupLocation="CenterScreen"
ActiveGlowColor="{DynamicResource PrimaryColor}"
Height="450"
Width="800" >
<Border Padding="0 10" Background="#EEEEEE">
<hc:TabControl IsAnimationEnabled="True" IsTabFillEnabled="False" TabItemWidth="150">
<hc:TabItem IsSelected="True" Header="品类词库">
<uc:CatControl></uc:CatControl>
</hc:TabItem>
<hc:TabItem Header="产品库">
</hc:TabItem>
<hc:TabItem Header="浏览器">
</hc:TabItem>
</hc:TabControl>
</Border>
</hc:GlowWindow>

29
客户端/齐越慧眼/齐越慧眼/MainWindow.xaml.cs

@ -0,0 +1,29 @@
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;
using HandyControl.Controls;
namespace
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : GlowWindow
{
public MainWindow()
{
InitializeComponent();
}
}
}

12
客户端/齐越慧眼/齐越慧眼/UserControls/CatControl.xaml

@ -0,0 +1,12 @@
<UserControl x:Class="齐越慧眼.UserControls.CatControl"
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:齐越慧眼.UserControls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<TextBlock>品类词库</TextBlock>
</Grid>
</UserControl>

26
客户端/齐越慧眼/齐越慧眼/UserControls/CatControl.xaml.cs

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
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 .UserControls
{
/// <summary>
/// CatControl.xaml 的交互逻辑
/// </summary>
public partial class CatControl : UserControl
{
public CatControl()
{
InitializeComponent();
}
}
}

13
客户端/齐越慧眼/齐越慧眼/齐越慧眼.csproj

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HandyControl" Version="3.2.0" />
</ItemGroup>
</Project>
Loading…
Cancel
Save