添加 WorkStationClient 客户端
This commit is contained in:
@ -3,7 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36221.1 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkStationClient", "WorkStationClient\WorkStationClient.csproj", "{B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
|
9
WorkStationClient/App.xaml
Normal file
9
WorkStationClient/App.xaml
Normal file
@ -0,0 +1,9 @@
|
||||
<prism:PrismApplication x:Class="WorkStationClient.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:WorkStationClient"
|
||||
xmlns:prism="http://prismlibrary.com/" >
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</prism:PrismApplication>
|
22
WorkStationClient/App.xaml.cs
Normal file
22
WorkStationClient/App.xaml.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Windows;
|
||||
using Prism.Ioc;
|
||||
using WorkStationClient.Views;
|
||||
|
||||
namespace WorkStationClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App
|
||||
{
|
||||
protected override Window CreateShell()
|
||||
{
|
||||
return Container.Resolve<MainWindow>();
|
||||
}
|
||||
|
||||
protected override void RegisterTypes(IContainerRegistry containerRegistry)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
19
WorkStationClient/ViewModels/MainWindowViewModel.cs
Normal file
19
WorkStationClient/ViewModels/MainWindowViewModel.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using Prism.Mvvm;
|
||||
|
||||
namespace WorkStationClient.ViewModels
|
||||
{
|
||||
public class MainWindowViewModel : BindableBase
|
||||
{
|
||||
private string _title = "Prism Application";
|
||||
public string Title
|
||||
{
|
||||
get { return _title; }
|
||||
set { SetProperty(ref _title, value); }
|
||||
}
|
||||
|
||||
public MainWindowViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
10
WorkStationClient/Views/MainWindow.xaml
Normal file
10
WorkStationClient/Views/MainWindow.xaml
Normal file
@ -0,0 +1,10 @@
|
||||
<Window x:Class="WorkStationClient.Views.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||||
Title="{Binding Title}" Height="350" Width="525" >
|
||||
<Grid>
|
||||
<ContentControl prism:RegionManager.RegionName="ContentRegion" />
|
||||
</Grid>
|
||||
</Window>
|
15
WorkStationClient/Views/MainWindow.xaml.cs
Normal file
15
WorkStationClient/Views/MainWindow.xaml.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace WorkStationClient.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
10
WorkStationClient/WorkStationClient.csproj
Normal file
10
WorkStationClient/WorkStationClient.csproj
Normal file
@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Prism.DryIoc" Version="8.1.97" />
|
||||
</ItemGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user