This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public WebView() | |
{ | |
PresentationSource.AddSourceChangedHandler(this, PresentationSourceChanged); | |
} | |
private void PresentationSourceChanged(object sender, SourceChangedEventArgs args) | |
{ | |
if (args.NewSource == null) | |
{ | |
if (source != null && sourceHook != null) |
NewerOlder