public MainPage(IThemeControl themeControl, IPageControl pageControl, IInjectionControl injectionControl) { InitializeComponent(); _themeControl = themeControl; _pageControl = pageControl; _injectionControl = injectionControl; }
public RegisterViewModel(IThemeControl themeControl, IApiConsumer apiConsumer) : base(themeControl) { Model = new SignUpModel(); _apiConsumer = apiConsumer; SubmitCmd = BuildCommand(SubmitAsync); }
public SignUpFlowViewModel(IApiConsumer apiConsumer, IThemeControl themeControl) { Inputs = new ObservableCollection <SignUpInputContext> { BuildEmailContext() }; _apiConsumer = apiConsumer; _themeControl = themeControl; }
public ViewModelBase(IThemeControl themeControl) { ThemeControl = themeControl; }
/// <summary> /// 加载控件的主题 /// </summary> /// <param name="control"></param> internal static void LoadTheme(IThemeControl control) { control.ResetTheme(); }