6 changed files with 101 additions and 12 deletions
@ -0,0 +1,12 @@ |
|||||
|
<UserControl x:Class="DyeingComputer.View.WorkOrder" |
||||
|
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:DyeingComputer.View" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="450" d:DesignWidth="800"> |
||||
|
<Grid> |
||||
|
|
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,28 @@ |
|||||
|
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; |
||||
|
|
||||
|
namespace DyeingComputer.View |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// WorkOrder.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class WorkOrder : UserControl |
||||
|
{ |
||||
|
public WorkOrder() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,41 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using CommunityToolkit.Mvvm.ComponentModel; |
||||
|
using CommonServiceLocator; |
||||
|
|
||||
|
|
||||
|
namespace DyeingComputer.ViewModel |
||||
|
{ |
||||
|
public class ViewModelLocator |
||||
|
{ |
||||
|
public ViewModelLocator() |
||||
|
{ |
||||
|
// ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
|
||||
|
|
||||
|
////if (ViewModelBase.IsInDesignModeStatic)
|
||||
|
////{
|
||||
|
//// // Create design time view services and models
|
||||
|
//// SimpleIoc.Default.Register<IDataService, DesignDataService>();
|
||||
|
////}
|
||||
|
////else
|
||||
|
////{
|
||||
|
//// // Create run time view services and models
|
||||
|
//// SimpleIoc.Default.Register<IDataService, DataService>();
|
||||
|
////}
|
||||
|
|
||||
|
// SimpleIoc.Default.Register<MainWindowViewModel>();
|
||||
|
} |
||||
|
|
||||
|
// public MainWindowViewModel Main
|
||||
|
// {
|
||||
|
// get
|
||||
|
// {
|
||||
|
// return ServiceLocator.Current.GetInstance<MainWindowViewModel>();
|
||||
|
// }
|
||||
|
// }
|
||||
|
|
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue