Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Sample Applications/WPFGallery/Controls/HeaderTile.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
VerticalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
AutomationProperties.Name="{Binding Title, RelativeSource={RelativeSource AncestorType=local:HeaderTile}}"
Click="RootButton_Click"
Padding="24">
<AutomationProperties.Name>
<MultiBinding StringFormat="{}{0}. {1}">
<Binding Path="Title" RelativeSource="{RelativeSource AncestorType=local:HeaderTile}" />
<Binding Path="Description" RelativeSource="{RelativeSource AncestorType=local:HeaderTile}" />
</MultiBinding>
</AutomationProperties.Name>
<Button.Resources>
<SolidColorBrush x:Key="ButtonBackground" Color="{DynamicResource AcrylicBackgroundFillColorDefault}" Opacity="0.8" />
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{DynamicResource AcrylicBackgroundFillColorDefault}" Opacity="0.9" />
Expand Down
7 changes: 6 additions & 1 deletion Sample Applications/WPFGallery/Resources/Templates.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
Margin="7"
Padding="20,10"
HorizontalContentAlignment="Left"
AutomationProperties.Name="{Binding Title, StringFormat='{}{0}Page'}"
Command="{Binding ViewModel.NavigateCommand, RelativeSource={RelativeSource AncestorType={x:Type Page}}}"
CommandParameter="{Binding PageType}">
<AutomationProperties.Name>
<MultiBinding StringFormat="{}{0}Page. {1}">
<Binding Path="Title" />
<Binding Path="Description" />
</MultiBinding>
</AutomationProperties.Name>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding ImageSource}"
Width="50"
Expand Down
Loading