Skip to content

Instantly share code, notes, and snippets.

@khmylov
Created April 27, 2012 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khmylov/2511910 to your computer and use it in GitHub Desktop.
Save khmylov/2511910 to your computer and use it in GitHub Desktop.
Cleaned up WP7 page template
<phone:PhoneApplicationPage
x:Class="$namespace$.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Style="{StaticResource DefaultPageStyle}"
mc:Ignorable="d"
d:DesignHeight="800"
d:DesignWidth="480">
<Grid Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Margin="{StaticResource PageHeaderPanelMargin}">
<TextBlock
Text="{StaticResource ApplicationTitle}"
Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock
Text="page name"
Margin="{StaticResource PageNameLabelMargin}"
Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<Grid
Grid.Row="1"
Margin="{StaticResource PageContentPanelMargin}">
</Grid>
</Grid>
</phone:PhoneApplicationPage>
namespace $namespace$
{
public partial class MainView
{
public MainView()
{
InitializeComponent();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment