Update
I've created a Patreon
page at https://www.patreon.com/amaitland
All details are outlined there, work is underway!
--
public WebView() | |
{ | |
PresentationSource.AddSourceChangedHandler(this, PresentationSourceChanged); | |
} | |
private void PresentationSourceChanged(object sender, SourceChangedEventArgs args) | |
{ | |
if (args.NewSource == null) | |
{ | |
if (source != null && sourceHook != null) |
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved. | |
// | |
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | |
using System; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.IO; | |
using System.Threading.Tasks; | |
using CefSharp.Example; |
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. | |
// | |
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | |
using System; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
using CefSharp.Example; | |
namespace CefSharp.OffScreen.Example |
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. | |
// | |
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.IO; | |
using System.Net; |
using CefSharp.Example; | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
using CefSharp.WinForms.Example.Handlers; | |
using CefSharp.WinForms.Internals; | |
namespace CefSharp.WinForms.Example | |
{ | |
public partial class BrowserTabUserControl : UserControl |
browser.LoadingStateChanged += OnLoadingStateChanged; | |
//A slightly more complicated example | |
private void OnLoadingStateChanged(object sender, LoadingStateChangedEventArgs args) | |
{ | |
//Wait for the Page to finish loading | |
if (args.IsLoading == false) | |
{ | |
const string script = @"(function() | |
{ |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using CefSharp.OffScreen; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
namespace CefSharp.Offscreen.ScreenshotTest | |
{ |
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. | |
// | |
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | |
using System; | |
using System.Threading.Tasks; | |
using CefSharp.OffScreen; | |
namespace CefSharp.MinimalExample.OffScreen | |
{ |
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<VlcLib64TargetDir Condition=" '$(VlcLib64TargetDir)' == '' ">libvlc\x64</VlcLib64TargetDir> | |
</PropertyGroup> | |
<ItemGroup Condition="(('$(Platform)' == 'x64') OR ('$(Platform)' == 'AnyCPU'))"> | |
<VlcLibs64 Include="$(MSBuildThisFileDirectory)..\build\x64\**" /> | |
<Content Include="@(VlcLibs64)"> | |
<Link>$(VlcLib64TargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> | |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
Update
I've created a Patreon
page at https://www.patreon.com/amaitland
All details are outlined there, work is underway!
--