This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<link rel="import" href="../topeka-elements/theme.html"> | |
<link rel="import" href="../topeka-elements/topeka-resources.html"> | |
<link rel="import" href="../topeka-elements/topeka-app.html"> | |
<polymer-element name="my-element"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using ReactiveUI; | |
public class ReactiveCollectionView<T> : ReactiveCollection<T>, IList<T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-webkit-keyframes ani-insert { | |
0% { | |
opacity: 0; | |
-webkit-transform: translate(0px,-30px); | |
width: 0; | |
} | |
10% { | |
opacity: 0; | |
width: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary>Provides a way to define bindings and their values in an intuitive way.</summary> | |
public static class DependencyObservation | |
{ | |
/// <summary>Creates a dependency observer of the specified instance.</summary> | |
/// <typeparam name="T">the type of the isntance</typeparam> | |
/// <typeparam name="TContextProp">The type of the context prop.</typeparam> | |
/// <param name="instance">The instance.</param> | |
/// <param name="contextProperty">The context property.</param> | |
/// <returns>the dependency observer</returns> | |
public static DependencyObservation<T, TContextProp> Of<T, TContextProp>(T instance, Expression<Func<T, TContextProp>> contextProperty) where T : ReactiveObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string FullName | |
{ | |
get | |
{ | |
using (var obs = DependencyObservation.Of(this, @this => @this.FullName)) | |
{ | |
return obs.Follow(@this => @this.FirstName) + obs.Follow(@this => @this.LastName); | |
} | |
} | |
} |