Skip to content

Instantly share code, notes, and snippets.

@grokys
grokys / designer.html
Created August 29, 2014 01:54
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@grokys
grokys / Version1
Last active August 29, 2015 14:11 — forked from SuperJMN/Version1
protected override void OnKeyDown(KeyEventArgs e)
{
var modifiers = e.Device.Modifiers;
var key = e.Key;
if (IsNavigational(key))
{
var shouldSelectAlong = modifiers.HasFlag(ModifierKeys.Shift);
var isWordJumpEnabled = modifiers.HasFlag(ModifierKeys.Control);
this.MoveCaret(TranslateToDirection(key, modifiers), shouldSelectAlong, isWordJumpEnabled);
Test Name: Perspex.Markup.Pml.UnitTests.Compiler.PmlCompilerTests.Foo
Test FullName: Perspex.Markup.Pml.UnitTests.Compiler.PmlCompilerTests.Foo
Test Source: D:\projects\Perspex\Tests\Perspex.Markup.Pml.UnitTests\Compiler\PmlCompilerTests.cs : line 17
Test Outcome: Failed
Test Duration: 0:00:03.17
Result1 Name: Perspex.Markup.Pml.UnitTests.Compiler.PmlCompilerTests.Foo
Result1 Outcome: Failed
Result1 Duration: 0:00:00.867
Result1 StackTrace:
namespace Perspex.Xaml.Desktop
{
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using OmniXaml.AppServices;
public class DockPanel : Panel
{
protected override Size ArrangeOverride(Size finalSize)
{
foreach (var control in Children)
{
if (control.GetValue(DockProperty) == Dock.Left)
{
ArrangeToLeft(finalSize, control);
}
This file has been truncated, but you can view the full file.
XBuild Engine Version 12.0
Mono, Version 4.2.0.0
Copyright (C) 2005-2013 Various Mono authors
Loading default tasks for ToolsVersion: 4.0 from /usr/lib/mono/4.5/Microsoft.Common.tasks
Build started 9/19/2015 2:15:45 PM.
__________________________________________________
/home/steven/projects/Perspex/src/Perspex.Base/Perspex.Base.csproj: Importing project /usr/lib/mono/xbuild/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets from extension path /usr/lib/mono/xbuild
/usr/lib/mono/xbuild/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets: Importing project /usr/lib/mono/xbuild/Microsoft/Portable/Microsoft.Portable.Core.props
/usr/lib/mono/xbuild/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets: Importing project /usr/lib/mono/4.5/Microsoft.CSharp.targets
@grokys
grokys / foo.txt
Created September 22, 2015 22:01
Caveat all this with two important things. 1) I’m not a lawyer and 2) I get paid by Microsoft and therefore by definition suck at naming things ;-)
Folks that are supported by the .NET Foundation do indeed get to have conversations with real lawyers if need be (including access to trademark specialists etc). We have access to some amazing folks that I actually even like to hang out with for beers (high praise indeed when talking about a lawyer!!) Those folks could definitely advise you on the intricacies of the UK trademark and how applicable it may or may not be based on the area if ICI where ever to notice and come ask you to change.
However, this one reminds me a lot of a project I used to be involved in that was called Mylar but became Mylyn because of similar trademark issues (http://www.eclipse.org/mylyn/rename.php). My personal advice as an engineer trying to get work done is to avoid such arguments as much as is easily possible. If Plexiglas takes off (which would be awesome) then it would be a
@grokys
grokys / perspex-alpha3.md
Created December 1, 2015 22:17
Perspex alpha 3 release announcement
layout title excerpt category tags comments
post
Perspex Alpha 3
Alpha 3 of Perspex is now out.
Perspex
perspex
c#
.net
true

We're pleased to announce that alpha 3 of

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
<entry>
<record>1</record>
<time>2015/12/02 17:42:05.548</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Microsoft Visual Studio 2015 version: 14.0.24720.0</description>
</entry>
[Fact]
public void InputHitTest_Should_Find_Control_Translated_Outside_Parent_Bounds()
{
using (UnitTestApplication.Start(new TestServices(renderInterface: new MockRenderInterface())))
{
Border target;
var container = new Panel
{
Width = 200,
Height = 200,