Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Commit

Permalink
Improve samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Mar 23, 2014
1 parent c382543 commit d27c8f9
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 26 deletions.
2 changes: 1 addition & 1 deletion PhoneToolkitSample/Samples/ButtonsSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
shell:SystemTray.IsVisible="True"
Style="{StaticResource PageStyle}">

<toolkit:PivotEx Title="BUTTONS SAMPLE">
<toolkit:PivotEx Title="BUTTONS">
<controls:PivotItem Header="image">
<ListBox Margin="0,0,-12,0">
<ListBox.ItemContainerStyle>
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample/Samples/HubTileSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<Grid x:Name="LayoutRoot" Background="Transparent">

<toolkit:PivotEx Title="HUBTILE SAMPLE" SelectionChanged="Pivot_SelectionChanged">
<toolkit:PivotEx Title="HUBTILE" SelectionChanged="Pivot_SelectionChanged">

<!-- All images by Jeff Wilcox, used with permission -->
<controls:PivotItem Header="food">
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample/Samples/PhoneTextBoxSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Style="{StaticResource PageStyle}">

<toolkit:PageUI Header="phonetextbox" Style="{StaticResource ScrollablePageUIStyle}">
<Grid x:Name="ContentPanel" Margin="0,0,0,313">
<Grid x:Name="ContentPanel">
<Grid.Children>
<StackPanel Orientation="Vertical">
<toolkit:PhoneTextBox PlaceholderText="First Name" />
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample/Samples/SlideInEffectSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<!--LayoutRoot-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<!--Pivot Control-->
<toolkit:PivotEx Title="{StaticResource ApplicationTitle}">
<toolkit:PivotEx Title="SLIDEINEFFECT">
<!--Pivot item one-->
<controls:PivotItem Header="first">
<ListBox Margin="0,0,-12,0" ItemsSource="{Binding Items}">
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample/Samples/TiltEffectSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<HyperlinkButton Content="Click for online documentation"
TargetName="_self"
HorizontalAlignment="Left"
NavigateUri="http://msdn.microsoft.com/en-us/library/ff941094(VS.92).aspx"
NavigateUri="http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff941094(v=vs.105).aspx"
toolkit:TiltEffect.SuppressTilt="True"
CacheMode="BitmapCache"/>

Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample/Samples/WrapPanelSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</toolkit:TransitionService.NavigationOutTransition>

<Grid x:Name="LayoutRoot">
<controls:Panorama Title="WrapPanel sample">
<controls:Panorama Title="wrappanel">

<controls:PanoramaItem Header="home">
<StackPanel>
Expand Down
1 change: 1 addition & 0 deletions PhoneToolkitSample8/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<Setter.Value>
<DataTemplate>
<TextBlock Style="{StaticResource PhoneTextSubtleStyle}"
Foreground="{StaticResource PhoneTextMidContrastBrush}"
Margin="23,-8,0,-5"
Padding="0,13,0,0"
Text="{Binding}"/>
Expand Down
Binary file removed PhoneToolkitSample8/Assets/AlignmentGrid.png
Binary file not shown.
20 changes: 9 additions & 11 deletions PhoneToolkitSample8/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,23 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
shell:SystemTray.IsVisible="True"
Style="{StaticResource PageStyle}"
Margin="0,0,0,72">
SupportedOrientations="PortraitOrLandscape"
Style="{StaticResource PageStyle}">

<toolkit:PageUI Header="samples">
<Grid>
<phone:LongListSelector x:Name="lls" Margin="-12,0">
<phone:LongListSelector x:Name="lls" Margin="-12,0" SelectionChanged="lls_SelectionChanged">
<phone:LongListSelector.ListHeaderTemplate>
<DataTemplate>
<Rectangle Height="10"/>
</DataTemplate>
</phone:LongListSelector.ListHeaderTemplate>
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<HyperlinkButton NavigateUri="{Binding Url}" Style="{StaticResource HyperlinkEmptyStyle}">
<system:HeaderedContentControl
Style="{StaticResource MultilineHyperlinkStyle}"
Header="{Binding Header}"
Content="{Binding Description}"/>
</HyperlinkButton>
<system:HeaderedContentControl
Style="{StaticResource MultilineHyperlinkStyle}"
Header="{Binding Header}"
Content="{Binding Description}"/>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
<phone:LongListSelector.ListFooterTemplate>
Expand All @@ -41,10 +39,10 @@
</toolkit:PageUI>

<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar Opacity="0.999">
<shell:ApplicationBar>
<shell:ApplicationBarIconButton
IconUri="/Assets/ApplicationBar.settings.png" Text="Settings"
IsEnabled="True" Click="ApplicationBarIconSettingsButton_Click"/>
IsEnabled="True" Click="ApplicationBarIconSettingsButton_Click"/>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
</toolkit:BasePage>
12 changes: 11 additions & 1 deletion PhoneToolkitSample8/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,20 @@ private void InitializeData()
};
}

private void lls_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var item = lls.SelectedItem as SampleItem;
if (item != null)
{
lls.SelectedItem = null;
NavigationService.Navigate(new Uri(item.Url, UriKind.Relative));
}
}

private void ApplicationBarIconSettingsButton_Click(object sender, EventArgs e)
{
NavigationService.Navigate(new Uri("/Settings.xaml", UriKind.RelativeOrAbsolute));
}
}
}

public class SampleItem
Expand Down
1 change: 0 additions & 1 deletion PhoneToolkitSample8/PhoneToolkitSample.WP8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@ ar-SA;az-Latn-AZ;be-BY;bg-BG;ca-ES;cs-CZ;da-DK;de-DE;el-GR;en-GB;en-US;es-ES;es-
<Content Include="..\PhoneToolkitSample\Toolkit.Content\ApplicationBar.Select.png">
<Link>Toolkit.Content\ApplicationBar.Select.png</Link>
</Content>
<Content Include="Assets\AlignmentGrid.png" />
<Content Include="Assets\ApplicationIcon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
6 changes: 3 additions & 3 deletions PhoneToolkitSample8/Properties/WMAppManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
<DefaultLanguage xmlns="" code="en-US" />
<App xmlns="" ProductID="{4c1d7cd5-dfb5-444a-a501-fda7e470fbe7}" Title="Toolkit Sample 8" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="PhoneToolkitSample8 author" Description="Sample description" Publisher="PhoneToolkitSample8" PublisherID="{da591e47-a61c-4a03-b06d-eafdb63e4a90}">
<App xmlns="" ProductID="{4c1d7cd5-dfb5-444a-a501-fda7e470fbe7}" Title="WPToolkit Sample 8" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="PhoneToolkitSample8 author" Description="Sample description" Publisher="PhoneToolkitSample8" PublisherID="{da591e47-a61c-4a03-b06d-eafdb63e4a90}">
<IconPath IsRelative="true" IsResource="false">Assets\ApplicationIcon.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_NETWORKING" />
Expand All @@ -23,11 +23,11 @@
<SmallImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileSmall.png</SmallImageURI>
<Count>0</Count>
<IconImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileMediumLarge.png</IconImageURI>
<Title>Toolkit Sample 8</Title>
<Title>WPToolkit Sample 8</Title>
<Message>
</Message>
<BackgroundColor>#68217A</BackgroundColor>
<HasLarge>True</HasLarge>
<HasLarge>False</HasLarge>
<LargeContent1>
</LargeContent1>
<LargeContent2>
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample8/Samples/LabelSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</ResourceDictionary>
</toolkit:BasePage.Resources>

<phone:Pivot Title="LABEL SAMPLE">
<phone:Pivot Title="LABEL">
<phone:PivotItem Header="features">
<ScrollViewer Margin="-12,0">
<StackPanel Margin="12,10,12,95">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@

<Grid x:Name="LayoutRoot" Background="Transparent">
<!--Pivot Control-->
<toolkit:PivotEx Title="LONGLISTMULTISELECTOR SAMPLE"
<toolkit:PivotEx Title="LONGLISTMULTISELECTOR"
x:Name="SamplePivot"
SelectionChanged="OnPivotSelectionChanged"
LoadingPivotItem="OnPivotLoadingPivotItem"
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample8/Samples/LongListSelectorSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</phone:PhoneApplicationPage.Resources>

<Grid x:Name="LayoutRoot" Background="Transparent">
<toolkit:PivotEx Title="LONGLISTSELECTOR SAMPLES"
<toolkit:PivotEx Title="LONGLISTSELECTOR"
TitlePanelStyle="{StaticResource TurnstileFeatherTitlePanelStyle}">
<controls:PivotItem Header="buddies">
<phone:LongListSelector x:Name="buddies"
Expand Down
2 changes: 1 addition & 1 deletion PhoneToolkitSample8/Samples/SpeechTextBoxSample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Style="{StaticResource PageStyle}">

<toolkit:PageUI Header="speechtextbox" Style="{StaticResource ScrollablePageUIStyle}">
<Grid x:Name="ContentPanel" Margin="0,0,0,313">
<Grid x:Name="ContentPanel">
<StackPanel Orientation="Vertical">
<TextBlock Text="Simple SpeechTextBox"
Foreground="{StaticResource PhoneSubtleBrush}"
Expand Down

0 comments on commit d27c8f9

Please sign in to comment.