• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Input.KeyboardFocusChangedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Input.KeyboardFocusChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# KeyboardFocusChangedEventArgs类的具体用法?C# KeyboardFocusChangedEventArgs怎么用?C# KeyboardFocusChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



KeyboardFocusChangedEventArgs类属于System.Windows.Input命名空间,在下文中一共展示了KeyboardFocusChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnGotKeyboardFocus

        protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
        {
            if (Model != null)
                Model.IsActive = true;

            base.OnGotKeyboardFocus(e);
        }
开发者ID:x-skywalker,项目名称:CodeMask,代码行数:7,代码来源:LayoutAnchorableControl.cs


示例2: OnLostKeyboardFocus

 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     txtReadOnly.Visibility = Visibility.Visible;
     txtEdit.Visibility = Visibility.Collapsed;
     Text = EditedText;
     base.OnLostKeyboardFocus(e);
 }
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:7,代码来源:TextBlockTextBoxControl.xaml.cs


示例3: projectTextBox_OnLostKeyboardFocus

 private void projectTextBox_OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (!string.IsNullOrEmpty(this.selectedProject.ProjectLabel))
     {
         this.selectProject(this.selectedProject);
     }
 }
开发者ID:Nukil,项目名称:toggldesktop,代码行数:7,代码来源:AutotrackerSettings.xaml.cs


示例4: Window_LostKeyboardFocus

 private void Window_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (!closing)
     {
         this.Close();
     }
 }
开发者ID:njpanzarino,项目名称:Kinect,代码行数:7,代码来源:AutoCalWindow.xaml.cs


示例5: ValidDateTextBox_PreviewLostKeyboardFocus

 private void ValidDateTextBox_PreviewLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (HasError)
     {
         e.Handled = true;
     }
 }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:7,代码来源:ValidDateTextBox.cs


示例6: OnGotKeyboardFocus

 protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     if (this.IsKeyboardFocusWithin)
     {
         this.lastElementWithFocus = e.NewFocus as FrameworkElement;
     }
 }
开发者ID:UnaNancyOwen,项目名称:Kinect-Studio-Sample,代码行数:7,代码来源:BladePage.cs


示例7: OnGotKeyboardFocus

 protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
   if ((e.OldFocus is DataGridCell)) return;
   Keyboard.Focus(_lastDataGridFocus);
   if (SelectedIndex == -1 && Items.Count > 0) SelectedIndex = 0;
   e.Handled = true;
 }
开发者ID:dggowda047,项目名称:itraacv2-1,代码行数:7,代码来源:WPFHelpers.cs


示例8: tbName_GotKeyboardFocus

 private void tbName_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (tbName.Text == "Имя")
     {
         tbName.Text = "";
     }
 }
开发者ID:koorool,项目名称:SSMA,代码行数:7,代码来源:wAddMarkerDialog.xaml.cs


示例9: OnGotKeyboardFocus

        protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
        {
            if (SelectAllOnGotFocus)
                SelectAll();

            base.OnGotKeyboardFocus(e);
        }
开发者ID:krikelin,项目名称:torshify-client,代码行数:7,代码来源:WatermarkTextBox.cs


示例10: txtMyProfile_GotKeyboardFocus

 private void txtMyProfile_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (txtMyProfile.Text == DefaultTextMySteamProfile)
     {
         txtMyProfile.Clear();
     }
 }
开发者ID:BlueRaja,项目名称:SteamWishlistSharedLibrary,代码行数:7,代码来源:MainWindow.xaml.cs


示例11: OnKeyboardFocus

 void OnKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (e.NewFocus == this)
     {
         terminalControl.Focus();
         Keyboard.Focus(terminalControl);
     }
 }
开发者ID:npcook,项目名称:terminal,代码行数:8,代码来源:MainWindow.xaml.cs


示例12: OnGotKeyboardFocus

		/// Forward focus to TextArea.
		/// <inheritdoc/>
		protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
		{
			base.OnGotKeyboardFocus(e);
			if (e.NewFocus == this) {
				Keyboard.Focus(this.TextArea);
				e.Handled = true;
			}
		}
开发者ID:AkshayVats,项目名称:SuperShell,代码行数:10,代码来源:TextEditor.cs


示例13: OnGotKeyboardFocus

 private void OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (e.OldFocus is MenuItem)
     {
         return;
     }
     SelectTextInTextBox(sender);
 }
开发者ID:heinersuter,项目名称:simple-ui-tests,代码行数:8,代码来源:App.xaml.cs


示例14: OnGotKeyboardFocus

 protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     base.OnGotKeyboardFocus(e);
     if (this.SelectedIndex == -1)
     {
         this.SelectedIndex = 0;
     }
 }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:8,代码来源:AutomationDelegatingListView.cs


示例15: OnLostKeyboardFocus

		protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
		{
			base.OnLostKeyboardFocus(e);
			if (IsKeyboardFocusWithin)
				return;
			if (IsOpen)
				Child.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next));
		}
开发者ID:xbadcode,项目名称:Rubezh,代码行数:8,代码来源:RibbonPopup.cs


示例16: Editor_LostKeyboardFocus

 private void Editor_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (_drawFocus)
     {
         _drawFocus = false;
         InvalidateVisual();
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:8,代码来源:SelectionAdorner.cs


示例17: Editor_GotKeyboardFocus

 private void Editor_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     if (!_drawFocus)
     {
         _drawFocus = true;
         InvalidateVisual();
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:8,代码来源:SelectionAdorner.cs


示例18: OnPreviewGotKeyboardFocus

 protected override void OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     if (!this.IsRootDesigner)
     {
         this.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new Action(this.BringToFront));
     }
     base.OnPreviewGotKeyboardFocus(e);
 }
开发者ID:blacklensama,项目名称:1709,代码行数:8,代码来源:StateDesigner.xaml.cs


示例19: TextboxOnGotKeyboardFocus

        private static void TextboxOnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs keyboardFocusChangedEventArgs)
        {
            var textbox = sender as TextBox;
            if (textbox == null) return;

            textbox.CaretIndex = textbox.Text.Length;
            textbox.ScrollToEnd();
        }
开发者ID:lycilph,项目名称:Projects,代码行数:8,代码来源:TextBoxFocusBehavior.cs


示例20: OnGotKeyboardFocus

		/// Forward focus to TextArea.
		/// <inheritdoc/>
		protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
		{
			base.OnGotKeyboardFocus(e);
			if (!this.TextArea.IsKeyboardFocusWithin) {
				Keyboard.Focus(this.TextArea);
				e.Handled = true;
			}
		}
开发者ID:pusp,项目名称:o2platform,代码行数:10,代码来源:TextEditor.cs



注:本文中的System.Windows.Input.KeyboardFocusChangedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Input.ManipulationCompletedEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Input.KeyGesture类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap