Example #1
0
 public MainPage(IThemeControl themeControl, IPageControl pageControl, IInjectionControl injectionControl)
 {
     InitializeComponent();
     _themeControl     = themeControl;
     _pageControl      = pageControl;
     _injectionControl = injectionControl;
 }
Example #2
0
        public RegisterViewModel(IThemeControl themeControl, IApiConsumer apiConsumer) : base(themeControl)
        {
            Model        = new SignUpModel();
            _apiConsumer = apiConsumer;

            SubmitCmd = BuildCommand(SubmitAsync);
        }
Example #3
0
 public SignUpFlowViewModel(IApiConsumer apiConsumer, IThemeControl themeControl)
 {
     Inputs = new ObservableCollection <SignUpInputContext> {
         BuildEmailContext()
     };
     _apiConsumer  = apiConsumer;
     _themeControl = themeControl;
 }
 public ViewModelBase(IThemeControl themeControl)
 {
     ThemeControl = themeControl;
 }
Example #5
0
 /// <summary>
 /// 加载控件的主题
 /// </summary>
 /// <param name="control"></param>
 internal static void LoadTheme(IThemeControl control)
 {
     control.ResetTheme();
 }