Files
cefsharp/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs
T
2014-06-12 12:37:02 +10:00

33 lines
885 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;
using CefSharp.Example;
namespace CefSharp.Wpf.Example.Views
{
public partial class BrowserTabView : UserControl
{
public BrowserTabView()
{
InitializeComponent();
browser.RequestHandler = new RequestHandler();
}
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();
}
}
}