mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
Disabled stuff which isn't working properly at the moment, and made the URL textbox at least *display* the current URL being browsed to...
This commit is contained in:
@@ -100,10 +100,13 @@
|
||||
<Button Height="23"
|
||||
Name="goStopButton"
|
||||
Width="75"
|
||||
DockPanel.Dock="Right">Go</Button>
|
||||
DockPanel.Dock="Right"
|
||||
IsEnabled="False">Go</Button>
|
||||
<TextBox Height="23"
|
||||
Name="urlTextBox"
|
||||
KeyDown="urlTextBox_KeyDown" />
|
||||
KeyDown="OnUrlTextBoxKeyDown"
|
||||
Text="{Binding Uri, Mode=OneWay, ElementName=webView}"
|
||||
IsEnabled="False" />
|
||||
</DockPanel>
|
||||
<GroupBox VerticalAlignment="Top"
|
||||
DockPanel.Dock="Top">
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace CefSharp.Wpf.Example
|
||||
}
|
||||
}
|
||||
|
||||
private void urlTextBox_KeyDown(object sender, KeyEventArgs e)
|
||||
private void OnUrlTextBoxKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key != Key.Enter)
|
||||
{
|
||||
|
||||
+10
-2
@@ -196,11 +196,18 @@ namespace CefSharp.Wpf
|
||||
|
||||
private void OnBrowserCorePropertyChanged(Object sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.PropertyName != "TooltipText")
|
||||
if (e.PropertyName == "TooltipText")
|
||||
{
|
||||
return;
|
||||
HandleTooltipUpdate();
|
||||
}
|
||||
else if (e.PropertyName == "Address")
|
||||
{
|
||||
Uri = browserCore.Address;
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleTooltipUpdate()
|
||||
{
|
||||
timer.Stop();
|
||||
|
||||
if (String.IsNullOrEmpty(browserCore.TooltipText))
|
||||
@@ -248,6 +255,7 @@ namespace CefSharp.Wpf
|
||||
var point = e.GetPosition(this);
|
||||
renderClientAdapter.OnMouseMove((int) point.X, (int) point.Y, mouseLeave: false);
|
||||
}
|
||||
|
||||
protected override void OnMouseWheel(System.Windows.Input.MouseWheelEventArgs e)
|
||||
{
|
||||
base.OnMouseWheel(e);
|
||||
|
||||
Reference in New Issue
Block a user