Skip to content

Instantly share code, notes, and snippets.

View grokys's full-sized avatar

Steven Kirk grokys

View GitHub Profile

The UIProvider

The UIProvider is used to initiate new UI flows, for example showing the login dialog. To get an instance of UIProvider to work with, import the IUIProvider service in your constructor:

[ImportingConstructor]
public ExampleViewModel(IUIProvider uiProvider)
{
[Fact]
public void Inserting_Items_Should_Update_Containers()
{
var target = CreateTarget(itemCount: 20);
target.ApplyTemplate();
target.Measure(new Size(100, 95));
target.Arrange(new Rect(0, 0, 100, 95));
((ILogicalScrollable)target).Offset = new Vector(0, 5);
[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,
<?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>
@grokys
grokys / perspex-alpha3.md
Created December 1, 2015 22:17
Perspex alpha 3 release announcement
layout post
title Perspex Alpha 3
excerpt Alpha 3 of Perspex is now out.
category Perspex
tags
perspex
c#
.net
comments true

We're pleased to announce that alpha 3 of

@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
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
public class DockPanel : Panel
{
protected override Size ArrangeOverride(Size finalSize)
{
foreach (var control in Children)
{
if (control.GetValue(DockProperty) == Dock.Left)
{
ArrangeToLeft(finalSize, control);
}
namespace Perspex.Xaml.Desktop
{
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using OmniXaml.AppServices;
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: