Files
cefsharp/CefSharp.Wpf.Example/Views/Main/MainView.xaml.cs
T
amaitland 389e2de969 Add license disclaimer
Remove an unused reference in MainWindow.xaml.cs
Fix comment for OnPropertyChanged event
2014-04-17 11:53:06 +10:00

30 lines
794 B
C#

// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Windows.Controls;
using System.Windows.Input;
namespace CefSharp.Wpf.Example.Views.Main
{
public partial class MainView : UserControl
{
public MainView()
{
InitializeComponent();
}
private void OnTextBoxGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
{
var textBox = (TextBox) sender;
textBox.SelectAll();
}
private void OnTextBoxGotMouseCapture(object sender, MouseEventArgs e)
{
var textBox = (TextBox) sender;
textBox.SelectAll();
}
}
}