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

Commit

Permalink
细化UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Sep 28, 2019
1 parent 4ff6627 commit bad8d77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions PixivFSUWP/Data/CommentsCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ in ChildrenComments
{
childschild.Comment = string.Format("RE {0}: {1}",
child.UserName, childschild.Comment);
recommendmodel.ChildrenComments.Add(childschild);
recommendmodel.ChildrenComments.Insert(0, childschild);
}
child.ChildrenComments.Clear();
child.ChildrenComments = null;
GC.Collect();
}
recommendmodel.ChildrenComments.Add(child);
recommendmodel.ChildrenComments.Insert(0, child);
ChildrenComments.Remove(child);
}
}
Expand Down
12 changes: 5 additions & 7 deletions PixivFSUWP/IllustDetailPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
ScrollViewer.VerticalScrollMode="Disabled" ScrollViewer.HorizontalScrollMode="Disabled">
<ListView.ItemTemplate>
<DataTemplate x:DataType="viewmodels:CommentViewModel">
<Border Background="#99F3F3F3" Margin="0,5" BorderThickness="1.5">
<Border Background="#99F3F3F3" Margin="5,10" BorderThickness="1.5">
<Border.BorderBrush>
<RevealBorderBrush Color="Transparent" FallbackColor="LightGray"/>
</Border.BorderBrush>
Expand All @@ -150,19 +150,17 @@
</StackPanel>
<TextBlock Grid.Row="1" Text="{Binding Comment}" TextWrapping="WrapWholeWords"/>
<TextBlock Grid.Row="2" Margin="0,3,0,0" Text="{Binding DateTime}" FontSize="12" Foreground="Gray"/>
<ListView Grid.Row="3" Visibility="{Binding ChildrenComments,Converter={StaticResource ChildrenCommentVisibilityConverter}}" ItemsSource="{Binding ChildrenComments}">
<ListView Grid.Row="3" Margin="0,5,0,0" Visibility="{Binding ChildrenComments,Converter={StaticResource ChildrenCommentVisibilityConverter}}"
ItemsSource="{Binding ChildrenComments}" SelectionMode="None"
ScrollViewer.VerticalScrollMode="Disabled" ScrollViewer.HorizontalScrollMode="Disabled">
<ListView.ItemTemplate>
<DataTemplate x:DataType="viewmodels:CommentViewModel">
<Border Background="#99F3F3F3" Margin="0,5" BorderThickness="1.5">
<Border.BorderBrush>
<RevealBorderBrush Color="Transparent" FallbackColor="LightGray"/>
</Border.BorderBrush>
<Border Margin="0,-5" BorderThickness="0">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding UserName}" FontWeight="Bold"/>
Expand Down

0 comments on commit bad8d77

Please sign in to comment.