Skip to content

Instantly share code, notes, and snippets.

@ArildF
ArildF / BlenderSceneCameraControls.cs
Last active Jun 2, 2021
Blender scene camera controls for Unity
View BlenderSceneCameraControls.cs
using UnityEditor;
using UnityEngine;
namespace Editor
{
[InitializeOnLoad]
public class BlenderSceneCameraControls
{
static BlenderSceneCameraControls()
{
View gist:60e2998cb6c081cc1de9
using System;
namespace ConsoleApplication15
{
public class Args
{}
public class Class
{
View gist:5694295
[CompilerGenerated]
private sealed class <>c__DisplayClass6
{
// Fields
public GrabPanBehavior <>4__this;
public IInputElement parent;
public Point startPoint;
public TranslateTransform translateTransform;
// Methods
View gist:5694257
using System;
using System.Reactive.Linq;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interactivity;
using System.Windows.Media;
namespace Rogue.MetroFire.UI.Behaviors
{
public class GrabPanBehavior : Behavior<UIElement>
View gist:3491808
using System;
using System.ComponentModel;
using System.Deployment.Application;
using System.Reactive.Linq;
using System.Threading;
using Castle.Core;
using ReactiveUI;
using Rogue.MetroFire.CampfireClient;
namespace Rogue.MetroFire.UI.Infrastructure
View gist:3491806
using System;
using System.ComponentModel;
using System.Deployment.Application;
using System.Reactive.Linq;
using System.Threading;
using Castle.Core;
using ReactiveUI;
using Rogue.MetroFire.CampfireClient;
namespace Rogue.MetroFire.UI.Infrastructure
View gist:3423446
SELECT vdk.* FROM Vare v
JOIN VareDiagnoseKode vdk ON v.VareId = vdk.VareId
JOIN DiagnoseKode dk ON vdk.DiagnoseKodeNr = dk.DIagnoseKodeNr
JOIN VareDiagnoseKodeRefusjonsVilkar vdkrv ON vdk.VareDiagnoseKodeId = vdkrv.VareDiagnoseKodeId
WHERE v.VareNr = 582080
View gist:2764174
<i:Interaction.Behaviors>
<b:VisualStateBehavior>
<b:Transition Source="{Binding Errored}" Value="False" VisualState="Default"/>
<b:Transition Source="{Binding Errored}" Value="True" VisualState="Errored"/>
</b:VisualStateBehavior>
</i:Interaction.Behaviors>
@ArildF
ArildF / gist:2730531
Created May 19, 2012
Visual State Manager declarative transitions
View gist:2730531
<i:Interaction.Behaviors>
<Behaviors:VisualStateBehavior>
<Behaviors:Transition Source="{Binding IsLoggingIn}" Value="True" VisualState="LoggingInState"/>
</Behaviors:VisualStateBehavior>
</i:Interaction.Behaviors>
@ArildF
ArildF / gist:1725881
Created Feb 2, 2012
Test for automatic creation of a datatemplate matching a view to a viewmodel
View gist:1725881
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using Core.Tests.Infrastructure.ViewModels;
using Core.Tests.Infrastructure.Views;
using NUnit.Framework;
using Rogue.Core.UI.Infrastructure;