Esempio n. 1
0
 public RejectionView()
 {
     this.InitializeComponent();
     inputPaneHelper = new InputPaneHelper();
     inputPaneHelper.SubscribeToKeyboard(true);
     inputPaneHelper.AddShowingHandler(narrativeText, new InputPaneShowingHandler(CustomKeyboardHandler));
     inputPaneHelper.SetHidingHandler(new InputPaneHidingHandler(InputPaneHiding));
 }
Esempio n. 2
0
        public AdjustmentView()
        {
            this.InitializeComponent();
            inputPaneHelper = new InputPaneHelper();
            InputPaneShowingHandler amountInputPaneShowingHandler    = new InputPaneShowingHandler(CustomKeyboardHandler);
            InputPaneShowingHandler narrativeInputPaneShowingHandler = new InputPaneShowingHandler(CustomKeyboardHandler);

            inputPaneHelper.SubscribeToKeyboard(true);
            inputPaneHelper.AddShowingHandler(narrativeText, narrativeInputPaneShowingHandler);
            inputPaneHelper.AddShowingHandler(amountText, amountInputPaneShowingHandler);
            inputPaneHelper.AddShowingHandler(amountTextFilled, amountInputPaneShowingHandler);
            inputPaneHelper.SetHidingHandler(new InputPaneHidingHandler(InputPaneHiding));
            SetAmountPercentage(true);
            SetPositiveNegativeButtons(false);
            Messenger.Default.Register <string>(this, Constants.AdjustDefaultSettings, SetDefaults);
        }
Esempio n. 3
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     inputPaneHelper.SubscribeToKeyboard(false);
     inputPaneHelper.RemoveShowingHandler(narrativeText);
     inputPaneHelper.SetHidingHandler(null);
 }