Пример #1
0
        private void NumberPadBorder_Initialized(object sender, EventArgs e)
        {
            Border border = (sender as Border);

            border.BorderThickness = new Thickness(1);
            border.CornerRadius    = new CornerRadius(4);
            border.Background      = ConfigurationManager.ApplicationBackgroundBrush;
            border.BorderBrush     = ConfigurationManager.BorderBrush;
            NumberEntryControl numberPad = border.Child as NumberEntryControl;

            numberPad.CompactModeOwner = this;
            numberPad.SetCaretIndex(CaretIndex);
            if (ContextMenuInitialized != null)
            {
                ContextMenuInitialized.Invoke(this, new EventArgs());
            }
        }
Пример #2
0
        private void KeyboardBorder_Initialized(object sender, EventArgs e)
        {
            Border border = (sender as Border);

            border.BorderThickness = new Thickness(1);
            border.CornerRadius    = new CornerRadius(4);
            border.Background      = ConfigurationManager.ApplicationBackgroundBrush;
            border.BorderBrush     = ConfigurationManager.BorderBrush;
            KeyboardEntryControl keyboard = border.Child as KeyboardEntryControl;

            keyboard.CompactModeOwner = this;
            keyboard.ShiftMode        = KeyboardShiftMode;
            if (ContextMenuInitialized != null)
            {
                ContextMenuInitialized.Invoke(this, new EventArgs());
            }
        }