public PaymentFormStep4Page()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <PaymentFormStep4ViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();
        }
Exemple #2
0
        public SettingsPasswordCreatePage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <SettingsPasswordCreateViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();
        }
        public WalletTestPage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <WalletTestViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();
        }
Exemple #4
0
        public SignInRecoveryPage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <SignInRecoveryViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();
        }
Exemple #5
0
        public ChatInviteLinkPage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <ChatInviteLinkViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();
        }
        public WalletExportPage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <WalletExportViewModel, IWalletExportDelegate>(this);

            Transitions = ApiInfo.CreateSlideTransition();
        }
Exemple #7
0
        public ChannelCreateStep3Page()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <ChannelCreateStep3ViewModel>();
            View.Attach();

            Transitions = ApiInfo.CreateSlideTransition();
        }
        public BasicGroupCreateStep2Page()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <BasicGroupCreateStep2ViewModel>();
            View.Attach();

            Transitions = ApiInfo.CreateSlideTransition();
        }
Exemple #9
0
        public PaymentFormStep3Page()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <PaymentFormStep3ViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();

            ViewModel.PropertyChanged += OnPropertyChanged;
        }
        public SignInSentCodePage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <SignInSentCodeViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();

            ViewModel.PropertyChanged += OnPropertyChanged;
        }
Exemple #11
0
        public ChatEventLogPage()
        {
            InitializeComponent();

            Transitions = ApiInfo.CreateSlideTransition();

            Content             = new ChatView(deleg => (DataContext = TLContainer.Current.Resolve <DialogEventLogViewModel, IDialogDelegate>(deleg)) as DialogEventLogViewModel);
            Header              = View.Header;
            NavigationCacheMode = NavigationCacheMode.Required;
        }
Exemple #12
0
        public SignInPage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <SignInViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();

            Diagnostics.Text = $"Unigram " + GetVersion();

            ViewModel.PropertyChanged += OnPropertyChanged;
        }
Exemple #13
0
        public SignInPage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <SignInViewModel, ISignInDelegate>(this);

            Transitions = ApiInfo.CreateSlideTransition();

            Diagnostics.Text = $"Unigram " + GetVersion();

            var token = ElementCompositionPreview.GetElementVisual(Token);

            token.Opacity = 0;
        }
Exemple #14
0
        public ChannelCreateStep2Page()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <ChannelCreateStep2ViewModel>();

            Transitions = ApiInfo.CreateSlideTransition();

            var observable = Observable.FromEventPattern <TextChangedEventArgs>(Username, "TextChanged");
            var throttled  = observable.Throttle(TimeSpan.FromMilliseconds(Constants.TypingTimeout)).ObserveOnDispatcher().Subscribe(x =>
            {
                if (ViewModel.UpdateIsValid(Username.Value))
                {
                    ViewModel.CheckAvailability(Username.Value);
                }
            });
        }