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; | |
namespace Xamarin.Forms.Platform.WinRT | |
{ | |
public static class ColorExtensions | |
{ | |
public static Windows.UI.Color ToWindows(this Xamarin.Forms.Color color) | |
{ | |
return Windows.UI.Color.FromArgb(Convert.ToByte(color.A * 255), Convert.ToByte(color.R * 255), Convert.ToByte(color.G * 255), Convert.ToByte(color.B * 255)); | |
} |
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
namespace InTheHand.Forms | |
{ | |
/// <summary> | |
/// Replacement for Xamarin.Forms.OnPlatform which supports the Windows (WinRT) platforms. | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
public sealed class OnPlatform2<T> | |
{ | |
public OnPlatform2() | |
{ |
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
namespace InTheHand.Net | |
{ | |
/// <summary> | |
/// Helper network-order conversion functions for the Universal Windows Platform. | |
/// </summary> | |
public static class IPAddress | |
{ | |
/// <summary> | |
/// Converts a short value from network byte order to host byte order. | |
/// </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; | |
namespace InTheHand | |
{ | |
/// <summary> | |
/// Helper class for DateTimeOffset. | |
/// </summary> | |
public static class DateTimeOffsetHelper | |
{ | |
private static DateTimeOffset dt = new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero); |
NewerOlder