mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
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:
@@ -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; }
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace CefSharp
|
||||
if (tooltip != _tooltip)
|
||||
{
|
||||
_tooltip = tooltip;
|
||||
_browserControl->TooltipText = _tooltip;
|
||||
_browserControl->SetTooltipText(_tooltip);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user