コメント |
https://skydrive.live.com/redir?resid=573059A93AFC9E45!870&authkey=!ALnI49tM1L238sg《SkyDrive》
@SHOW
以下のソースコードは、テンプレートをもとに、『S130510_LBOX_StoreBlank』でプロジェクトを作成しています
@END
[[MainPage.xaml]]
@DIV
<Page
x:Class="S130510_LBOX_StoreBlank.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:S130510_LBOX_StoreBlank"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Loaded="Page_Loaded">
<Page.Resources>
<local:TextResource
x:Key="GlobalText"
PageTitle="ストアブランク テンプレート"
AppName="lightbox サンプルアプリケーション" />
</Page.Resources>
<!--AppBar の定義-->
<Page.BottomAppBar>
<AppBar>
<Grid x:Name="AppBarGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel
x:Name="LeftBar"
Orientation="Horizontal"
HorizontalAlignment="Left"
>
<!--StandardStyles に定義されたスタイルをそのまま適用する-->
<!--設定ボタン-->
<Button
x:Name="SettingButton"
AutomationProperties.Name="設定"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Style="{StaticResource SettingsAppBarButtonStyle}"
Click="SettingButton_Click"
/>
<!--お気に入りボタン-->
<Button
x:Name="FavoriteButton"
AutomationProperties.Name="お気に入り"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Style="{StaticResource FavoriteAppBarButtonStyle}"
Click="FavoriteButton_Click"
/>
</StackPanel>
<StackPanel x:Name="RightBar"
Grid.Column="1"
HorizontalAlignment="Right"
Orientation="Horizontal"
>
<!-- 保存ボタンを定義時に、表示文字列を変更する-->
<Button
x:Name="SaveButton"
AutomationProperties.Name="保存"
Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Style="{StaticResource SaveAppBarButtonStyle}"
Click="SaveButton_Click"
IsEnabled="False"
/>
<!--メールボタン-->
<Button
x:Name="MailButton"
AutomationProperties.Name="メール"
Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Style="{StaticResource MailAppBarButtonStyle}"
Click="MailButton_Click"
/>
</StackPanel>
</Grid>
</AppBar>
</Page.BottomAppBar>
<!--画面定義-->
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Border BorderBrush="#FF999999" BorderThickness="3" HorizontalAlignment="Left" Height="546" Margin="76,126,0,0" VerticalAlignment="Top" Width="1122" Background="#FF323232" CornerRadius="20">
<TextBox
x:Name="TextData"
HorizontalAlignment="Left"
Height="209"
Margin="36,37,0,0"
TextWrapping="Wrap"
VerticalAlignment="Top"
Width="580"
AcceptsReturn="True"/>
</Border>
<TextBlock
DataContext="{StaticResource GlobalText}"
HorizontalAlignment="Left"
Height="61"
Margin="76,60,0,0"
TextWrapping="Wrap"
Text="{Binding PageTitle}"
VerticalAlignment="Top"
Width="1090"
FontSize="40"
FontWeight="Bold"
FontFamily="Meiryo"
>
</TextBlock>
</Grid>
</Page>
@END |