Skip to content

Instantly share code, notes, and snippets.

@arashadbm
arashadbm / PanAndZoomBehavior.cs
Last active January 28, 2016 16:18 — forked from sgraf812/PanAndZoomBehavior.cs
Pan and zoom behavior for Windows Phone 8 with DoupleTap to zoom in/out and Fixed Translation Issue when zoomed in .No pan inertia/squish.
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interactivity;
using System.Windows.Media;
using Microsoft.Phone.Controls;
using System.Windows.Media.Animation;
using System;
//Original behavior in this Link : https://gist.github.com/sgraf812/7033464#file-panandzoombehavior
//In this version:
@arashadbm
arashadbm / WinrtSearchBoxWithglyph
Last active August 29, 2015 14:13
Windows 8.1 Search Box showing only search glyph and showing the whole box on focus.
<Page
x:Class="universalApp_Test.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:universalApp_Test"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<Style x:Key="SearchBoxStyle" TargetType="SearchBox">