Skip to content

Instantly share code, notes, and snippets.

View moswald's full-sized avatar

Matt Oswald moswald

View GitHub Profile
// UpdateCommand waits for the web to return some data
// VisualState is a property that tells the view to switch the VisualStateManager visual state (a "raiseif" property)
UpdateCommand.IsExecuting.Where(x => x).Subscribe(_ => VisualState = "Loading");
UpdateCommand.Subscribe(
data =>
{
// ...
// do stuff with data
// ...
@moswald
moswald / gist:91002b54827f7099679b
Created May 30, 2014 21:06
ReactiveUI build error
"C:\projects\reactiveui\ReactiveUI\ReactiveUI_WinRT80.csproj" (Rebuild target) (25) ->
7624 C:\projects\reactiveui\ReactiveUI\ReactiveUI_WinRT80.csproj(134,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
public static class ListMixins
{
public static IEnumerable<T> Forever<T>(this IList<T> This)
{
using (var e = This.GetEnumerator())
{
for (; ; )
{
while (e.MoveNext())
{