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:
Per Lundberg
2013-07-24 10:03:02 +03:00
parent 002389ff0f
commit 3e778a0803
3 changed files with 16 additions and 5 deletions
+5 -2
View File
@@ -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">
+1 -1
View File
@@ -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
View File
@@ -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);