Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
初步实现Detail
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Apr 15, 2019
1 parent 8704614 commit c45d995
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion PixivFSUWP/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,20 @@
</Grid>
<Grid Grid.RowSpan="2">
<Grid.Background>
<RevealBackgroundBrush Color="Transparent" FallbackColor="Transparent" />
<RevealBackgroundBrush Color="Transparent" FallbackColor="Transparent"/>
</Grid.Background>
</Grid>
</Grid>
</DataTemplate>
<DataTemplate x:Key="DetailContentTemplate" x:DataType="viewmodels:WaterfallItemViewModel">
<StackPanel>
<TextBlock
Margin="0,8"
Style="{ThemeResource TitleTextBlockStyle}"
HorizontalAlignment="Left"
Text="{x:Bind Title}"/>
</StackPanel>
</DataTemplate>
</Page.Resources>

<Grid x:Name="LayoutRoot">
Expand Down Expand Up @@ -89,5 +98,18 @@
</Grid.Background>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20">为您推荐</TextBlock>
</Grid>
<ContentPresenter
x:Name="DetailContentPresenter"
Grid.Column="1"
Grid.RowSpan="2"
BorderThickness="1,0,0,0"
Padding="24,0"
BorderBrush="{ThemeResource SystemControlForegroundBaseLowBrush}"
Content="{x:Bind WaterfallListView.SelectedItem, Mode=OneWay}"
ContentTemplate="{StaticResource DetailContentTemplate}">
<ContentPresenter.ContentTransitions>
<TransitionCollection />
</ContentPresenter.ContentTransitions>
</ContentPresenter>
</Grid>
</Page>

0 comments on commit c45d995

Please sign in to comment.