30. 要素の移動
Private Sub PositionForOrientation()
If (Me.Orientation = PageOrientation.LandscapeLeft OrElse
Me.Orientation = PageOrientation.LandscapeRight) Then
DirectionsScrollViewer.SetValue(Grid.RowProperty, 1)
DirectionsScrollViewer.SetValue(Grid.ColumnProperty, 1)
DirectionsScrollViewer.Margin = New Thickness(12, 0, 0, 0)
RecipeGrid.Margin = New Thickness(12, -24, 0, 0)
Else
DirectionsScrollViewer.SetValue(Grid.RowProperty, 2)
DirectionsScrollViewer.SetValue(Grid.ColumnProperty, 0)
DirectionsScrollViewer.Margin = New Thickness(0, 0, 0, 0)
RecipeGrid.Margin = New Thickness(12, 0, 0, 0)
End If
End Sub
42. Windows Phone 8 Language Support
50の言語をサポート
• [設定]+[言語+地域]-[電話
の言語]
WP7.1では24言語のサポー
ト
43. Visual Studio 2012のテンプレート
LocalizedStringsクラス
• リソースへのアクセスを提供
• An instance of this is create in
App.xaml in the Application
Resources with the key
LocalizedStrings
Resources¥AppResources.resx
• いくつかの文字列が定義済
• ローカリゼーション対応したい文字
列リテラルはresxファイルに定義
MainPage.xaml.cs
• アプリバーのローカライズ用のコー
ドがコメントアウトされて定義され
ている