mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
Add DragDemo to WPF tests menu
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
<MenuItem Header="_Popup Test" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="PopupTest"/>
|
||||
<MenuItem Header="_Fish Gl" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="FishGl"/>
|
||||
<MenuItem Header="_Microsoft Test Drive" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="MsTestDrive"/>
|
||||
<MenuItem Header="_Drag Demo" Command="controls:CefSharpCommands.OpenTabCommand" CommandParameter="DragDemo"/>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<controls:NonReloadingTabControl x:Name="TabControl"
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CefSharp.Wpf.Example
|
||||
//Obtain the original source element for this event
|
||||
var originalSource = (FrameworkElement)e.OriginalSource;
|
||||
|
||||
BrowserTabViewModel browserViewModel = null;
|
||||
BrowserTabViewModel browserViewModel;
|
||||
|
||||
if (originalSource is MainWindow)
|
||||
{
|
||||
@@ -84,7 +84,7 @@ namespace CefSharp.Wpf.Example
|
||||
var param = e.Parameter.ToString();
|
||||
string url = "";
|
||||
|
||||
switch(param)
|
||||
switch (param)
|
||||
{
|
||||
case "BindingTest":
|
||||
{
|
||||
@@ -105,12 +105,17 @@ namespace CefSharp.Wpf.Example
|
||||
{
|
||||
url = "http://www.fishgl.com/";
|
||||
break;
|
||||
}
|
||||
}
|
||||
case "MsTestDrive":
|
||||
{
|
||||
url = "http://dev.modern.ie/testdrive/";
|
||||
break;
|
||||
}
|
||||
case "DragDemo":
|
||||
{
|
||||
url = "http://html5demos.com/drag";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(url))
|
||||
|
||||
Reference in New Issue
Block a user