Skip to content

Instantly share code, notes, and snippets.

View Perikles's full-sized avatar

Perikles C. Stephanidis Perikles

View GitHub Profile
@Perikles
Perikles / AwesomiumResolver.cs
Last active July 11, 2016 18:06
A utility service that allows loading Awesomium.NET assemblies and native binaries from a location other than the executable's folder or GAC.
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Globalization;
namespace Awesomium.Core
{
/// <summary>
/// Utility class that allows loading of Awesomium.NET assemblies,
@Perikles
Perikles / App.xaml
Last active December 29, 2015 01:09
Customizing HTML disabled attribute in WPF WebPopupMenu (Awesomium)
<Application
x:Class="MyWPFSample.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:awe="http://schemas.awesomium.com/winfx"
xmlns:local="clr-namespace:MyWPFSample">
<Application.Resources>
<ResourceDictionary>
<!-- MyWebMenuListItem -->
@Perikles
Perikles / WebPopupMenu.xaml
Last active December 29, 2015 00:59
WebPopupMenu WPF Styles
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:Awesomium.Core;assembly=Awesomium.Core"
xmlns:awe="clr-namespace:Awesomium.Windows.Controls"
xmlns:cm="clr-namespace:System.ComponentModel;assembly=PresentationFramework"
xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
xmlns:om ="clr-namespace:System.Collections.ObjectModel;assembly=System"
xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
@Perikles
Perikles / MainWindow.xaml
Created August 11, 2011 03:49
Example of Initializing the WebCore when using a WebControl in application's MainWindow
<Window
x:Class="AwesomiumCSharpWpfApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:awe="http://schemas.awesomium.com/winfx"
Title="MainWindow"
Height="350"
Width="525">
<Grid>
<awe:WebControl x:Name="Browser" />