当前位置: 首页>>代码示例>>C#>>正文


C# Input.KeyboardFocusChangedEventArgs类代码示例

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


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


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