Exemplo n.º 1
0
        private void ClickWithUnselect(object?sender, RoutedEventArgs e)
        {
            EventsListBox.UnselectAll();
            ResetEditing();

            var button = sender as Button;

            button?.FindRelatedControl <Button, Grid, TextBox>((tb) =>
            {
                tb.Focus();
                tb.CaretIndex = tb.Text.Length;
            });
        }
Exemplo n.º 2
0
 private void ListItemTextBoxGotFocus(object?sender, GotFocusEventArgs e)
 {
     EventsListBox.UnselectAll();
 }