Inheritance: System.Windows.Controls.Grid
示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OnScreenKey"/> class.
 /// </summary>
 public OnScreenKey(OnScreenKeyboard onScreenKeyboard)
 {
     _onScreenKeyboard = onScreenKeyboard;
     DataContextChanged += OnDataContextChanged;
     Focusable = false;
     SetBinding(IsActiveProperty, new Binding("IsActive"));
     SetBinding(StyleProperty, new Binding("OnScreenKeyStyle") { Source = _onScreenKeyboard });
     PreviewMouseDown += OnMouseDown;
     Click += OnClick;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OnScreenKey"/> class.
 /// </summary>
 public OnScreenKey(OnScreenKeyboard onScreenKeyboard)
 {
     _onScreenKeyboard   = onScreenKeyboard;
     DataContextChanged += OnDataContextChanged;
     Focusable           = false;
     SetBinding(IsActiveProperty, new Binding("IsActive"));
     SetBinding(StyleProperty, new Binding("OnScreenKeyStyle")
     {
         Source = _onScreenKeyboard
     });
     PreviewMouseDown += OnMouseDown;
     Click            += OnClick;
 }
 public OnScreenKeyboardRow(OnScreenKeyboard onScreenKeyboard)
 {
     _onScreenKeyboard = onScreenKeyboard;
     DataContextChanged += OnDataContextChanged;
 }
示例#4
0
 public OnScreenKeyboardSection(OnScreenKeyboard onScreenKeyboard)
 {
     _onScreenKeyboard   = onScreenKeyboard;
     DataContextChanged += OnDataContextChanged;
 }