私はHubsectionにTextblockとHeaderTemplateのボタンがあります。それはWindowsの8でOKを動作しますが、私はUWPに、アプリケーションを移行した今、私はボタンをクリックすることはできません。HubSection内でボタンを操作できませんHeaderTemplate
<HubSection
Width="480"
HorizontalAlignment="Stretch"
Header="_XX"
IsHeaderInteractive="True">
<HubSection.HeaderTemplate>
<DataTemplate>
<Grid Width="392" Margin="0,-10,0,-10">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock
HorizontalAlignment="Left"
VerticalAlignment="Top"
FontSize="28"
Text="{Binding}" />
<AppBarButton
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Command="{Binding ElementName=HubSection, Path=DataContext.MyCommand}">
<AppBarButton.Icon>
<FontIcon
FontFamily="{StaticResource IconsFontFamily}"
FontSize="26"
Glyph="" />
</AppBarButton.Icon>
</AppBarButton>
</Grid>
</DataTemplate>
</HubSection.HeaderTemplate>
<DataTemplate>
...
</DataTemplate>
ヘルプには、事前に感謝を理解されるであろう。
あなたAppBarButtonのクリックイベントがありますか? –
さて、クリックイベントはありませんが、コマンドプロパティが設定されています。 –