mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
9ab903f43c
Create ViewModels namespace - move ViewModel and rename to BrowserTabViewModel Move and rename MainView to BrowserTabView
30 lines
801 B
C#
30 lines
801 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
|
|
{
|
|
public partial class BrowserTabView : UserControl
|
|
{
|
|
public BrowserTabView()
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|