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.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Input; | |
using GalaSoft.MvvmLight.Command; | |
public class ClickCommandTrigger : System.Windows.Interactivity.EventTriggerBase<Button> | |
{ | |
/// <summary> |
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.Collections.ObjectModel; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System; | |
/// <summary> | |
/// A collection of checked items. | |
/// </summary> | |
/// <typeparam name="TItem">The type of the item.</typeparam> | |
public class CheckedItemCollection<TItem> : ObservableCollection<CheckedItemWrapper<TItem>> |
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.IO; | |
using System.Windows; | |
using System.Windows.Input; | |
using System.Windows.Interactivity; | |
/// <summary> | |
/// A simple file drag and drop behavior. | |
/// </summary> | |
public class FileDragDropBehavior : DragDropBehavior<FileInfo[]> | |
{ |
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.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Interactivity; | |
public class UpdateSourceOnTextChanged : Behavior<TextBox> | |
{ | |
BindingExpression textBinding; | |
protected override void OnAttached() | |
{ |
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.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Interactivity; | |
public class BindableColumnHeader : Behavior<DataGridColumn> | |
{ | |
/// <summary> | |
/// The <see cref="Header" /> dependency property's name. | |
/// </summary> | |
public const string HeaderPropertyName = "Header"; |
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.IO; | |
using System.Net; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
/// <summary> | |
/// Strongly typed GET and POST utility enum. | |
/// </summary> | |
public enum HTTPMethod |
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; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Extensions to help postify parameters. | |
/// </summary> | |
public static class PostifyExtensions | |
{ | |
private static Postifier postifier = new Postifier(); |
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.Linq; | |
/// <summary> | |
/// Team information | |
/// </summary> | |
public class Team | |
{ | |
public int Id { get; set; } |
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.ComponentModel; | |
using System.Reflection; | |
using System.Windows; | |
using System.Windows.Input; | |
/// <summary> | |
/// Base class for Viewmodels providing common INotifyPropertyChanged functionality. | |
/// </summary> | |
public abstract class ViewModelBase : INotifyPropertyChanged |
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.Windows; | |
using System.Windows.Input; | |
using JSONPhoneApp1.Common; | |
using JSONPhoneApp1.Service; | |
public class HelloWorldVM : ViewModelBase | |
{ | |
private HelloWorldService _helloServ = new HelloWorldService(); |
OlderNewer