This file contains hidden or 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.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Interactivity; | |
using System.Windows.Media; | |
using Microsoft.Phone.Controls; | |
using Microsoft.Phone.Shell; | |
namespace ScottIsAFool.WindowsPhone.Behaviours |
This file contains hidden or 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 Microsoft.Phone.Controls; | |
using System.Windows.Controls; | |
namespace SlideView.Library | |
{ | |
[TemplatePart(Name = SlideViewName, Type = typeof(SlideView))] | |
public class SlideApplicationFrame : TransitionFrame | |
{ |
This file contains hidden or 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 Newtonsoft.Json; | |
namespace ScottIsAFool.WindowsPhone.Helpers | |
{ | |
public static class TimeZoneHelper | |
{ | |
private const string TimeZonesJson = "[{\"Name\":\"(UTC-12:00) International Date Line West\",\"Offset\":\"-12:00:00\"},{\"Name\":\"(UTC-11:00) Co-ordinated Universal Time-11\",\"Offset\":\"-11:00:00\"},{\"Name\":\"(UTC-10:00) Hawaii\",\"Offset\":\"-10:00:00\"},{\"Name\":\"(UTC-09:00) Alaska\",\"Offset\":\"-09:00:00\"},{\"Name\":\"(UTC-08:00) Baja California\",\"Offset\":\"-08:00:00\"},{\"Name\":\"(UTC-08:00) Pacific Time (US & Canada)\",\"Offset\":\"-08:00:00\"},{\"Name\":\"(UTC-07:00) Arizona\",\"Offset\":\"-07:00:00\"},{\"Name\":\"(UTC-07:00) Chihuahua, La Paz, Mazatlan\",\"Offset\":\"-07:00:00\"},{\"Name\":\"(UTC-07:00) Mountain Time (US & Canada)\",\"Offset\":\"-07:00:00\"},{\"Name\":\"(UTC-06:00) Central America\",\"Offset\":\"-06:00:00\"},{\"Name\":\"(UTC-06:00) Central Time (US & Canada)\",\"Offset\":\"-06:00:00\"},{\"Name\":\"(UTC-0 |
This file contains hidden or 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 Newtonsoft.Json; | |
namespace TimeZones | |
{ | |
public class TimeZone | |
{ | |
[JsonProperty("Name")] | |
public string Name { get; set; } | |
[JsonProperty("Offset")] |
This file contains hidden or 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.Media.Imaging; | |
namespace ScottIsAFool.WindowsPhone.Bindings | |
{ | |
public class ScaledImageSource | |
{ | |
public static object GetSource(DependencyObject obj) |
This file contains hidden or 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.Data; | |
namespace ScottIsAFool.WindowsPhone.Converters | |
{ | |
public class BoolToValueConverter<T> : IValueConverter | |
{ | |
public T FalseValue { get; set; } | |
public T TrueValue { get; set; } |
NewerOlder