using System;
using CommonServiceLocator;
using GalaSoft.MvvmLight.Ioc;
namespace HandyControlDemo.UserControl
{
///
/// 控件定位器
///
public class ControlLocator
{
private ControlLocator()
{
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
SimpleIoc.Default.Register();
}
public static ControlLocator Instance => new Lazy(() => new ControlLocator()).Value;
#region Main
public MainContent MainContent => ServiceLocator.Current.GetInstance();
public LeftMainContent LeftMainContent => ServiceLocator.Current.GetInstance();
public NoUserContent NoUserContent => ServiceLocator.Current.GetInstance();
#endregion
#region Controls
public GrowlDemoCtl GrowlDemoCtl => new GrowlDemoCtl();
public LoadingDemoCtl LoadingDemoCtl => new LoadingDemoCtl();
public ImageBrowserDemoCtl ImageBrowserDemoCtl => new ImageBrowserDemoCtl();
public ColorPickerDemoCtl ColorPickerDemoCtl => new ColorPickerDemoCtl();
public CarouselDemoCtl CarouselDemoCtl => new CarouselDemoCtl();
public CompareSliderDemoCtl CompareSliderDemoCtl => new CompareSliderDemoCtl();
public TimeBarDemoCtl TimeBarDemoCtl => new TimeBarDemoCtl();
public PaginationDemoCtl PaginationDemoCtl => new PaginationDemoCtl();
public AnimationPathDemoCtl AnimationPathDemoCtl => new AnimationPathDemoCtl();
#endregion
#region Styles
public ButtonDemoCtl ButtonDemoCtl => new ButtonDemoCtl();
public ToggleButtonDemoCtl ToggleButtonDemoCtl => new ToggleButtonDemoCtl();
public ExpanderDemoCtl ExpanderDemoCtl => new ExpanderDemoCtl();
public ProgressBarDemoCtl ProgressBarDemoCtl => new ProgressBarDemoCtl();
public TabControlDemoCtl TabControlDemoCtl => new TabControlDemoCtl();
#endregion
}
}