/// <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; }
public OnScreenKeyboardSection(OnScreenKeyboard onScreenKeyboard) { _onScreenKeyboard = onScreenKeyboard; DataContextChanged += OnDataContextChanged; }