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
-- -------------------------------------------------- | |
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure | |
-- -------------------------------------------------- | |
-- Date Created: 03/17/2014 21:20:43 | |
SET QUOTED_IDENTIFIER OFF; | |
GO | |
USE [AdvancedTweeps]; |
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
System.InvalidCastException was unhandled | |
Message: An unhandled exception of type 'System.InvalidCastException' occurred in WaWorkerHost.exe | |
Additional information: Unable to cast transparent proxy to type 'Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge'. | |
Solution: Upgrade your Worker Role to SDK 2.3 if you use VS2013 Update 2 RC |
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
[Microsoft.Xaml.Interactivity.TypeConstraint(typeof(Windows.UI.Xaml.Controls.TextBox))] | |
class SettingsBehavior : DependencyObject, IBehavior | |
{ | |
#region IBehavior Members | |
public Windows.UI.Xaml.DependencyObject AssociatedObject { get; set; } | |
public string SettingsIndex | |
{ |
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
public class Location | |
{ | |
public string __type { get; set; } | |
public double latitude { get; set; } | |
public double longitude { get; set; } | |
} | |
public class LocationRequest | |
{ | |
public Location location { get; set; } |
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
protected override void OnActivated(IActivatedEventArgs args) | |
{ | |
base.OnActivated(args); | |
#if WINDOWS_PHONE_APP | |
if (args.Kind == ActivationKind.WebAuthenticationBrokerContinuation) | |
{ | |
App.<mobileservice>.LoginComplete(args as WebAuthenticationBrokerContinuationEventArgs); | |
} | |
#endif |
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
private void Button_Click(object sender, RoutedEventArgs e) | |
{ | |
Type objType = Type.GetType("TestReflection.CallMyMethods, TestReflection.WindowsPhone, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); | |
TypeInfo mm = objType.GetTypeInfo(); | |
var methods = mm.DeclaredMethods; |
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
public static class XDocExtensions | |
{ | |
public static bool CheckIfElementExists(this XDocument doc, string elementName) | |
{ | |
return doc.Descendants().FirstOrDefault(e => e.Name.LocalName.Equals(elementName)) != null; | |
} | |
} |
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
/// <summary> | |
/// Formats the log entry. | |
/// /// Taken from: | |
/// http://stackoverflow.com/questions/561125/can-i-pass-parameters-to-string-format-without-specifying-numbers | |
/// and adapted to WINRT | |
/// </summary> | |
/// <param name="format">The format.</param> | |
/// <param name="args">The arguments.</param> | |
/// <returns></returns> | |
/// <exception cref="System.FormatException">The string format is not valid</exception> |
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 System.Text; | |
using System.Threading.Tasks; | |
/// <summary> | |
/// Interface that specifies | |
/// the CRUD operations to |
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
public class FlipViewAnimationBehaviour: DependencyObject, IBehavior { | |
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] | |
public DependencyObject AssociatedObject { | |
get; | |
set; | |
} | |