Skip to content

Instantly share code, notes, and snippets.

@germboy
germboy / Popup.js
Created March 30, 2012 18:47
Popup.js Control (Fade In/Out Mod)
/**
A popup is used to display content which should be displayed on top of other content.
It's initially hidden and can be shown by calling the show method and hidden with the hide method.
A popup can be centered with the centered property; otherwise, it should be given a specific position.
A popup may be optionally floated above all application content by setting the floating property to true. This
has the advantage of guaranteeing the popup is displayed overtop of other content. This is appropriate when the
popup does not need to scroll with other content.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media;
namespace LinqToVisualTree
{
/// <summary>
/// Adapts a DependencyObject to provide methods required for generate
@germboy
germboy / MainPage.xaml.cs
Created May 4, 2012 18:36
MainPage file for disabling WP7 pinch/zoom & scroll-snapback
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
@germboy
germboy / WebBrowserHelper.cs
Created May 4, 2012 18:19
WebBrowserHelper file for disabling WP7 pinch/zoom & scroll-snapback
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using LinqToVisualTree;
using Microsoft.Phone.Controls;
namespace App.Util
{
/// <summary>