Changed the way we propagate the TooltipText to the browser control(s) to use a method instead of a property (which works better with WPF) + dropped it from BrowserCore. I suspect BrowserCore might be dropped in its entirety in the future; it adds a little bit of value but works poorly with "the WPF way".

This commit is contained in:
Per Lundberg
2013-08-01 10:02:15 +03:00
parent 39a363d432
commit 5a5eae380a
3 changed files with 2 additions and 19 deletions
-16
View File
@@ -90,8 +90,6 @@ namespace CefSharp
_address = address;
PropertyChanged(this, gcnew PropertyChangedEventArgs(L"Address"));
TooltipText = nullptr;
}
}
@@ -109,20 +107,6 @@ namespace CefSharp
}
}
property String^ TooltipText
{
String^ get() { return _tooltip; }
void set(String^ text)
{
if (_tooltip != text)
{
_tooltip = text;
PropertyChanged(this, gcnew PropertyChangedEventArgs(L"TooltipText"));
}
}
}
virtual property ILifeSpanHandler^ LifeSpanHandler
{
ILifeSpanHandler^ get() { return _lifeSpanHandler; }
+1 -1
View File
@@ -86,7 +86,7 @@ namespace CefSharp
if (tooltip != _tooltip)
{
_tooltip = tooltip;
_browserControl->TooltipText = _tooltip;
_browserControl->SetTooltipText(_tooltip);
}
return true;
+1 -2
View File
@@ -23,8 +23,6 @@ namespace CefSharp
property bool IsBrowserInitialized { bool get(); }
property bool IsLoading { bool get(); }
property String^ TooltipText;
property ILifeSpanHandler^ LifeSpanHandler;
property ILoadHandler^ LoadHandler;
property IRequestHandler^ RequestHandler;
@@ -36,6 +34,7 @@ namespace CefSharp
void SetAddress(String^ address);
void SetTitle(String^ title);
void SetTooltipText(String^ tooltipText);
void LoadHtml(String^ html);
void Stop();
void Reload();