Skip to content

Instantly share code, notes, and snippets.

View amaitland's full-sized avatar

Alex Maitland amaitland

  • Australia
View GitHub Profile
<?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>
// 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
{
@amaitland
amaitland / Program.cs
Last active February 19, 2016 01:22 — forked from campersau/AccessViolationException
CefSharp.OffScreen.ChromiumWebBrowser Parallel Screenshot Crash
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
{
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
// 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;
// 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
@amaitland
amaitland / Program.cs
Last active February 21, 2020 09:17
CefSharp OffScreen Async Resize
// 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;
@amaitland
amaitland / WebView.cs
Last active August 29, 2015 14:01
WPF WebView PresentationSourceChanged
public WebView()
{
PresentationSource.AddSourceChangedHandler(this, PresentationSourceChanged);
}
private void PresentationSourceChanged(object sender, SourceChangedEventArgs args)
{
if (args.NewSource == null)
{
if (source != null && sourceHook != null)