Пример #1
0
        public void BeginEdit()
        {
            LabelTextBlock.Visibility = System.Windows.Visibility.Collapsed;
            LabelEditBox.Visibility   = System.Windows.Visibility.Visible;

            Dispatcher.Invoke(new Action(() =>
            {
                LabelEditBox.SelectAll();
                LabelEditBox.Focus();
            }), System.Windows.Threading.DispatcherPriority.Normal);
        }
        public void BeginEdit()
        {
            LabelTextBlock.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
            LabelEditBox.Visibility   = Windows.UI.Xaml.Visibility.Visible;

            var nowait = Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, new Windows.UI.Core.DispatchedHandler(() =>
            {
                LabelEditBox.SelectAll();
                LabelEditBox.Focus(Windows.UI.Xaml.FocusState.Programmatic);
            }));
        }