mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
page style
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
// Copyright (c) DGP Studio. All rights reserved.
|
||||||
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
|
using CommunityToolkit.WinUI.Animations;
|
||||||
|
using Microsoft.UI.Xaml;
|
||||||
|
using Microsoft.Xaml.Interactivity;
|
||||||
|
|
||||||
|
namespace Snap.Hutao.Control.Behavior;
|
||||||
|
|
||||||
|
[DependencyProperty("Animation", typeof(AnimationSet))]
|
||||||
|
[DependencyProperty("TargetObject", typeof(UIElement))]
|
||||||
|
internal sealed partial class StartAnimationActionNoThrow : DependencyObject, IAction
|
||||||
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public object Execute(object sender, object parameter)
|
||||||
|
{
|
||||||
|
if (Animation is not null)
|
||||||
|
{
|
||||||
|
if (TargetObject is not null)
|
||||||
|
{
|
||||||
|
Animation.Start(TargetObject);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Animation.Start(sender as UIElement);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -20,4 +20,10 @@
|
|||||||
Columns="5"
|
Columns="5"
|
||||||
RowSpacing="4"/>
|
RowSpacing="4"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
|
<ItemsPanelTemplate x:Key="UniformGridColumns5Spacing8Template">
|
||||||
|
<cwcont:UniformGrid
|
||||||
|
ColumnSpacing="8"
|
||||||
|
Columns="5"
|
||||||
|
RowSpacing="8"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -164,6 +164,21 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
x:Key="AchievementGoalListViewItemStyle"
|
||||||
|
BasedOn="{StaticResource DefaultListViewItemStyle}"
|
||||||
|
TargetType="ListViewItem">
|
||||||
|
<Setter Property="Margin" Value="0,0,6,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
x:Key="AchievementListViewItemStyle"
|
||||||
|
BasedOn="{StaticResource DefaultListViewItemStyle}"
|
||||||
|
TargetType="ListViewItem">
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="Margin" Value="0,4,8,0"/>
|
||||||
|
</Style>
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
|
|
||||||
<mxi:Interaction.Behaviors>
|
<mxi:Interaction.Behaviors>
|
||||||
@@ -282,6 +297,7 @@
|
|||||||
PaneBackground="{x:Null}">
|
PaneBackground="{x:Null}">
|
||||||
<SplitView.Pane>
|
<SplitView.Pane>
|
||||||
<ListView
|
<ListView
|
||||||
|
ItemContainerStyle="{StaticResource AchievementGoalListViewItemStyle}"
|
||||||
ItemTemplate="{StaticResource AchievementGoalListTemplate}"
|
ItemTemplate="{StaticResource AchievementGoalListTemplate}"
|
||||||
ItemsSource="{Binding AchievementGoals}"
|
ItemsSource="{Binding AchievementGoals}"
|
||||||
SelectedItem="{Binding SelectedAchievementGoal, Mode=TwoWay}"
|
SelectedItem="{Binding SelectedAchievementGoal, Mode=TwoWay}"
|
||||||
@@ -289,11 +305,6 @@
|
|||||||
<mxi:Interaction.Behaviors>
|
<mxi:Interaction.Behaviors>
|
||||||
<shcb:SelectedItemInViewBehavior/>
|
<shcb:SelectedItemInViewBehavior/>
|
||||||
</mxi:Interaction.Behaviors>
|
</mxi:Interaction.Behaviors>
|
||||||
<ListView.ItemContainerStyle>
|
|
||||||
<Style BasedOn="{StaticResource DefaultListViewItemStyle}" TargetType="ListViewItem">
|
|
||||||
<Setter Property="Margin" Value="0,0,6,0"/>
|
|
||||||
</Style>
|
|
||||||
</ListView.ItemContainerStyle>
|
|
||||||
</ListView>
|
</ListView>
|
||||||
</SplitView.Pane>
|
</SplitView.Pane>
|
||||||
|
|
||||||
@@ -301,16 +312,10 @@
|
|||||||
<ListView
|
<ListView
|
||||||
Margin="8,0,0,0"
|
Margin="8,0,0,0"
|
||||||
Padding="0,0,0,8"
|
Padding="0,0,0,8"
|
||||||
|
ItemContainerStyle="{StaticResource AchievementListViewItemStyle}"
|
||||||
ItemTemplate="{StaticResource AchievementTemplate}"
|
ItemTemplate="{StaticResource AchievementTemplate}"
|
||||||
ItemsSource="{Binding Achievements}"
|
ItemsSource="{Binding Achievements}"
|
||||||
SelectionMode="None">
|
SelectionMode="None"/>
|
||||||
<ListView.ItemContainerStyle>
|
|
||||||
<Style BasedOn="{StaticResource DefaultListViewItemStyle}" TargetType="ListViewItem">
|
|
||||||
<Setter Property="Padding" Value="0"/>
|
|
||||||
<Setter Property="Margin" Value="0,4,8,0"/>
|
|
||||||
</Style>
|
|
||||||
</ListView.ItemContainerStyle>
|
|
||||||
</ListView>
|
|
||||||
</SplitView.Content>
|
</SplitView.Content>
|
||||||
</SplitView>
|
</SplitView>
|
||||||
</cwc:Case>
|
</cwc:Case>
|
||||||
|
|||||||
@@ -29,9 +29,126 @@
|
|||||||
<shc:BindingProxy x:Key="BindingProxy" DataContext="{Binding}"/>
|
<shc:BindingProxy x:Key="BindingProxy" DataContext="{Binding}"/>
|
||||||
|
|
||||||
<DataTemplate x:Key="AnnouncementTemplate">
|
<DataTemplate x:Key="AnnouncementTemplate">
|
||||||
|
<ItemContainer cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
||||||
|
<Border Style="{StaticResource BorderCardStyle}">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!-- Image Layer -->
|
||||||
|
<Border cw:UIElementExtensions.ClipToBounds="True" CornerRadius="{ThemeResource ControlCornerRadiusTop}">
|
||||||
|
<Border
|
||||||
|
x:Name="ImageZoomBorder"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
cw:VisualExtensions.NormalizedCenterPoint="0.5">
|
||||||
|
<cww:ConstrainedBox AspectRatio="1080:390" CornerRadius="{ThemeResource ControlCornerRadiusTop}">
|
||||||
|
<shci:CachedImage Source="{Binding Banner}" Stretch="UniformToFill"/>
|
||||||
|
</cww:ConstrainedBox>
|
||||||
|
<cwa:Explicit.Animations>
|
||||||
|
<cwa:AnimationSet x:Name="ImageZoomInAnimation">
|
||||||
|
<shca:ImageZoomInAnimation/>
|
||||||
|
</cwa:AnimationSet>
|
||||||
|
<cwa:AnimationSet x:Name="ImageZoomOutAnimation">
|
||||||
|
<shca:ImageZoomOutAnimation/>
|
||||||
|
</cwa:AnimationSet>
|
||||||
|
</cwa:Explicit.Animations>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<!-- Time Description -->
|
||||||
|
<Grid Grid.Row="0">
|
||||||
|
<Border
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Bottom"
|
||||||
|
Visibility="{Binding ShouldShowTimeDescription, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||||
|
<ProgressBar
|
||||||
|
MinHeight="2"
|
||||||
|
VerticalAlignment="Bottom"
|
||||||
|
Background="Transparent"
|
||||||
|
CornerRadius="0"
|
||||||
|
Maximum="1"
|
||||||
|
Value="{Binding TimePercent, Mode=OneWay}"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
<!-- General Description -->
|
||||||
|
<Border Grid.Row="1">
|
||||||
|
<StackPanel Margin="4" VerticalAlignment="Bottom">
|
||||||
|
<TextBlock
|
||||||
|
Margin="4,6,0,0"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
Style="{StaticResource SubtitleTextBlockStyle}"
|
||||||
|
Text="{Binding Subtitle}"
|
||||||
|
TextTrimming="WordEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
|
||||||
|
<TextBlock
|
||||||
|
Margin="4,6,0,0"
|
||||||
|
Opacity="0.6"
|
||||||
|
Style="{StaticResource BodyTextBlockStyle}"
|
||||||
|
Text="{Binding Title}"
|
||||||
|
TextTrimming="WordEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock
|
||||||
|
Margin="4,4,0,4"
|
||||||
|
FontSize="10"
|
||||||
|
Opacity="0.4"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding TimeFormatted}"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="4,4,4,4"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
VerticalAlignment="Bottom"
|
||||||
|
FontSize="10"
|
||||||
|
Opacity="0.8"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding TimeDescription}"
|
||||||
|
Visibility="{Binding ShouldShowTimeDescription, Converter={StaticResource BoolToVisibilityConverter}}"/>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
<!-- 公告详情网页视图 -->
|
||||||
|
<FlyoutBase.AttachedFlyout>
|
||||||
|
<Flyout LightDismissOverlayMode="On" Placement="Full">
|
||||||
|
<Flyout.FlyoutPresenterStyle>
|
||||||
|
<Style BasedOn="{StaticResource DefaultFlyoutPresenterStyle}" TargetType="FlyoutPresenter">
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="CornerRadius" Value="0"/>
|
||||||
|
<Setter Property="MaxWidth" Value="640"/>
|
||||||
|
</Style>
|
||||||
|
</Flyout.FlyoutPresenterStyle>
|
||||||
|
<shvco:AnnouncementContentViewer Announcement="{Binding}"/>
|
||||||
|
</Flyout>
|
||||||
|
</FlyoutBase.AttachedFlyout>
|
||||||
|
|
||||||
|
<mxi:Interaction.Behaviors>
|
||||||
|
<mxic:EventTriggerBehavior EventName="Tapped">
|
||||||
|
<shcb:OpenAttachedFlyoutAction/>
|
||||||
|
</mxic:EventTriggerBehavior>
|
||||||
|
<mxic:EventTriggerBehavior EventName="PointerEntered">
|
||||||
|
<shcb:StartAnimationActionNoThrow Animation="{Binding ElementName=ImageZoomInAnimation}" TargetObject="{Binding ElementName=ImageZoomBorder}"/>
|
||||||
|
</mxic:EventTriggerBehavior>
|
||||||
|
<mxic:EventTriggerBehavior EventName="PointerExited">
|
||||||
|
<shcb:StartAnimationActionNoThrow Animation="{Binding ElementName=ImageZoomOutAnimation}" TargetObject="{Binding ElementName=ImageZoomBorder}"/>
|
||||||
|
</mxic:EventTriggerBehavior>
|
||||||
|
</mxi:Interaction.Behaviors>
|
||||||
|
</Border>
|
||||||
|
</ItemContainer>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AnnouncementPivotItemContentTemplate">
|
||||||
<ItemsRepeater
|
<ItemsRepeater
|
||||||
Margin="16,16,16,16"
|
Margin="16,16,16,16"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
|
ItemTemplate="{StaticResource AnnouncementTemplate}"
|
||||||
ItemsSource="{Binding List}">
|
ItemsSource="{Binding List}">
|
||||||
<ItemsRepeater.Layout>
|
<ItemsRepeater.Layout>
|
||||||
<UniformGridLayout
|
<UniformGridLayout
|
||||||
@@ -41,118 +158,6 @@
|
|||||||
MinItemWidth="300"
|
MinItemWidth="300"
|
||||||
MinRowSpacing="12"/>
|
MinRowSpacing="12"/>
|
||||||
</ItemsRepeater.Layout>
|
</ItemsRepeater.Layout>
|
||||||
<ItemsRepeater.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ItemContainer cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
|
||||||
<Border Style="{StaticResource BorderCardStyle}">
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition/>
|
|
||||||
<RowDefinition Height="auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<!-- Image Layer -->
|
|
||||||
<Border cw:UIElementExtensions.ClipToBounds="True" CornerRadius="{ThemeResource ControlCornerRadiusTop}">
|
|
||||||
<Border VerticalAlignment="Top" cw:VisualExtensions.NormalizedCenterPoint="0.5">
|
|
||||||
<cww:ConstrainedBox AspectRatio="1080:390" CornerRadius="{ThemeResource ControlCornerRadiusTop}">
|
|
||||||
<shci:CachedImage Source="{Binding Banner}" Stretch="UniformToFill"/>
|
|
||||||
</cww:ConstrainedBox>
|
|
||||||
<cwa:Explicit.Animations>
|
|
||||||
<cwa:AnimationSet x:Name="ImageZoomInAnimation">
|
|
||||||
<shca:ImageZoomInAnimation/>
|
|
||||||
</cwa:AnimationSet>
|
|
||||||
<cwa:AnimationSet x:Name="ImageZoomOutAnimation">
|
|
||||||
<shca:ImageZoomOutAnimation/>
|
|
||||||
</cwa:AnimationSet>
|
|
||||||
</cwa:Explicit.Animations>
|
|
||||||
</Border>
|
|
||||||
</Border>
|
|
||||||
<!-- Time Description -->
|
|
||||||
<Grid Grid.Row="0">
|
|
||||||
<Border
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
Visibility="{Binding ShouldShowTimeDescription, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
||||||
<ProgressBar
|
|
||||||
MinHeight="2"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
Background="Transparent"
|
|
||||||
CornerRadius="0"
|
|
||||||
Maximum="1"
|
|
||||||
Value="{Binding TimePercent, Mode=OneWay}"/>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
<!-- General Description -->
|
|
||||||
<Border Grid.Row="1">
|
|
||||||
<StackPanel Margin="4" VerticalAlignment="Bottom">
|
|
||||||
<TextBlock
|
|
||||||
Margin="4,6,0,0"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
Style="{StaticResource SubtitleTextBlockStyle}"
|
|
||||||
Text="{Binding Subtitle}"
|
|
||||||
TextTrimming="WordEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
|
|
||||||
<TextBlock
|
|
||||||
Margin="4,6,0,0"
|
|
||||||
Opacity="0.6"
|
|
||||||
Style="{StaticResource BodyTextBlockStyle}"
|
|
||||||
Text="{Binding Title}"
|
|
||||||
TextTrimming="WordEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Margin="4,4,0,4"
|
|
||||||
FontSize="10"
|
|
||||||
Opacity="0.4"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding TimeFormatted}"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="4,4,4,4"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
FontSize="10"
|
|
||||||
Opacity="0.8"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding TimeDescription}"
|
|
||||||
Visibility="{Binding ShouldShowTimeDescription, Converter={StaticResource BoolToVisibilityConverter}}"/>
|
|
||||||
</Grid>
|
|
||||||
</StackPanel>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
<FlyoutBase.AttachedFlyout>
|
|
||||||
<Flyout LightDismissOverlayMode="On" Placement="Full">
|
|
||||||
<Flyout.FlyoutPresenterStyle>
|
|
||||||
<Style BasedOn="{StaticResource DefaultFlyoutPresenterStyle}" TargetType="FlyoutPresenter">
|
|
||||||
<Setter Property="Padding" Value="0"/>
|
|
||||||
<Setter Property="CornerRadius" Value="0"/>
|
|
||||||
<Setter Property="MaxWidth" Value="640"/>
|
|
||||||
</Style>
|
|
||||||
</Flyout.FlyoutPresenterStyle>
|
|
||||||
<shvco:AnnouncementContentViewer Announcement="{Binding}"/>
|
|
||||||
</Flyout>
|
|
||||||
</FlyoutBase.AttachedFlyout>
|
|
||||||
<mxi:Interaction.Behaviors>
|
|
||||||
<mxic:EventTriggerBehavior EventName="Tapped">
|
|
||||||
<shcb:OpenAttachedFlyoutAction/>
|
|
||||||
</mxic:EventTriggerBehavior>
|
|
||||||
<mxic:EventTriggerBehavior EventName="PointerEntered">
|
|
||||||
<cwb:StartAnimationAction Animation="{Binding ElementName=ImageZoomInAnimation}"/>
|
|
||||||
</mxic:EventTriggerBehavior>
|
|
||||||
<mxic:EventTriggerBehavior EventName="PointerExited">
|
|
||||||
<cwb:StartAnimationAction Animation="{Binding ElementName=ImageZoomOutAnimation}"/>
|
|
||||||
</mxic:EventTriggerBehavior>
|
|
||||||
</mxi:Interaction.Behaviors>
|
|
||||||
</Border>
|
|
||||||
</ItemContainer>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsRepeater.ItemTemplate>
|
|
||||||
</ItemsRepeater>
|
</ItemsRepeater>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -184,7 +189,6 @@
|
|||||||
</ItemContainer.Resources>
|
</ItemContainer.Resources>
|
||||||
</ItemContainer>
|
</ItemContainer>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
</shc:ScopedPage.Resources>
|
</shc:ScopedPage.Resources>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -223,11 +227,11 @@
|
|||||||
<Pivot Style="{StaticResource DefaultPivotStyle}">
|
<Pivot Style="{StaticResource DefaultPivotStyle}">
|
||||||
<PivotItem
|
<PivotItem
|
||||||
Content="{Binding Announcement.List[0]}"
|
Content="{Binding Announcement.List[0]}"
|
||||||
ContentTemplate="{StaticResource AnnouncementTemplate}"
|
ContentTemplate="{StaticResource AnnouncementPivotItemContentTemplate}"
|
||||||
Header="{shcm:ResourceString Name=ViewPageAnnouncementActivity}"/>
|
Header="{shcm:ResourceString Name=ViewPageAnnouncementActivity}"/>
|
||||||
<PivotItem
|
<PivotItem
|
||||||
Content="{Binding Announcement.List[1]}"
|
Content="{Binding Announcement.List[1]}"
|
||||||
ContentTemplate="{StaticResource AnnouncementTemplate}"
|
ContentTemplate="{StaticResource AnnouncementPivotItemContentTemplate}"
|
||||||
Header="{shcm:ResourceString Name=ViewPageAnnouncementGame}"/>
|
Header="{shcm:ResourceString Name=ViewPageAnnouncementGame}"/>
|
||||||
</Pivot>
|
</Pivot>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -58,6 +58,382 @@
|
|||||||
GridValue="{x:Bind GridImageExportPanel}"
|
GridValue="{x:Bind GridImageExportPanel}"
|
||||||
ListValue="{x:Bind ListImageExportPanel}"/>
|
ListValue="{x:Bind ListImageExportPanel}"/>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarGridViewSkillTemplate">
|
||||||
|
<Border
|
||||||
|
Width="40"
|
||||||
|
Margin="0,0,6,0"
|
||||||
|
Style="{StaticResource BorderCardStyle}">
|
||||||
|
<StackPanel>
|
||||||
|
<shci:MonoChrome
|
||||||
|
Width="32"
|
||||||
|
Height="32"
|
||||||
|
Margin="4,4,4,0"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
EnableLazyLoading="False"
|
||||||
|
Source="{Binding Icon}"/>
|
||||||
|
<TextBlock
|
||||||
|
Margin="0,0,0,4"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding Level}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarGridViewTemplate">
|
||||||
|
<Grid ColumnSpacing="6" Style="{ThemeResource GridCardStyle}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border
|
||||||
|
Grid.RowSpan="2"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
CornerRadius="{ThemeResource ControlCornerRadius}">
|
||||||
|
<shci:CachedImage
|
||||||
|
MaxWidth="145"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Opacity="0.5"
|
||||||
|
Source="{Binding NameCard}"
|
||||||
|
Stretch="UniformToFill"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<shvcont:BottomTextControl
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="6,6,0,6"
|
||||||
|
Text="{Binding Level}">
|
||||||
|
<Grid>
|
||||||
|
<shvcont:ItemIcon
|
||||||
|
Width="61.5"
|
||||||
|
Height="61.5"
|
||||||
|
Icon="{Binding Icon}"
|
||||||
|
Quality="{Binding Quality}"/>
|
||||||
|
<Border
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
Background="#80000000"
|
||||||
|
CornerRadius="0,6,0,6">
|
||||||
|
<TextBlock
|
||||||
|
Margin="6,0,6,2"
|
||||||
|
Foreground="#FFFFFFFF"
|
||||||
|
Text="{Binding ActivatedConstellationCount}"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</shvcont:BottomTextControl>
|
||||||
|
<shvcont:BottomTextControl
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="0,6,6,6"
|
||||||
|
Text="{Binding Weapon.Level}">
|
||||||
|
<Grid>
|
||||||
|
<shvcont:ItemIcon
|
||||||
|
Width="61.5"
|
||||||
|
Height="61.5"
|
||||||
|
Icon="{Binding Weapon.Icon}"
|
||||||
|
Quality="{Binding Weapon.Quality}"/>
|
||||||
|
<Border
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
Background="#80000000"
|
||||||
|
CornerRadius="0,6,0,6">
|
||||||
|
<TextBlock
|
||||||
|
Margin="6,0,6,2"
|
||||||
|
Foreground="#FFFFFFFF"
|
||||||
|
Text="{Binding Weapon.AffixLevelNumber}"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</shvcont:BottomTextControl>
|
||||||
|
|
||||||
|
<ItemsControl
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="6,0,0,6"
|
||||||
|
VerticalAlignment="Bottom"
|
||||||
|
ItemTemplate="{StaticResource AvatarGridViewSkillTemplate}"
|
||||||
|
ItemsPanel="{StaticResource HorizontalStackPanelTemplate}"
|
||||||
|
ItemsSource="{Binding Skills}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarListViewTemplate">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<shci:CachedImage
|
||||||
|
Grid.Column="0"
|
||||||
|
Width="48"
|
||||||
|
Height="48"
|
||||||
|
Margin="0,0,12,12"
|
||||||
|
Source="{Binding SideIcon, Mode=OneWay}"/>
|
||||||
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
||||||
|
<TextBlock
|
||||||
|
Margin="12,0,0,0"
|
||||||
|
Text="{Binding Name}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock
|
||||||
|
Margin="12,0,0,0"
|
||||||
|
Opacity="0.7"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding Level}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel
|
||||||
|
Grid.Column="2"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Opacity="0.7"
|
||||||
|
Visibility="{Binding ElementName=RefreshTimeToggle, Path=IsChecked, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
||||||
|
<TextBlock
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
FontSize="11"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding ShowcaseRefreshTimeFormat}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
FontSize="11"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding GameRecordRefreshTimeFormat}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
FontSize="11"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding CalculatorRefreshTimeFormat}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarConstellationTemplate">
|
||||||
|
<Button
|
||||||
|
Margin="0,0,2,0"
|
||||||
|
Padding="2"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderBrush="{x:Null}">
|
||||||
|
<Button.Content>
|
||||||
|
<Grid>
|
||||||
|
<shci:CachedImage
|
||||||
|
Width="36"
|
||||||
|
Height="36"
|
||||||
|
Opacity="{Binding IsActivated, Converter={StaticResource BoolToOpacityConverter}}"
|
||||||
|
Source="{Binding Icon}"/>
|
||||||
|
<Image
|
||||||
|
Width="16"
|
||||||
|
Height="16"
|
||||||
|
Source="ms-appx:///Resource/Icon/UI_Icon_Locked.png"
|
||||||
|
Visibility="{Binding IsActivated, Converter={StaticResource BoolToVisibilityRevertConverter}}"/>
|
||||||
|
</Grid>
|
||||||
|
</Button.Content>
|
||||||
|
<Button.Flyout>
|
||||||
|
<Flyout Placement="Bottom">
|
||||||
|
<shct:DescriptionTextBlock MaxWidth="320" Description="{Binding Description}">
|
||||||
|
<shct:DescriptionTextBlock.Resources>
|
||||||
|
<Style BasedOn="{StaticResource BodyTextBlockStyle}" TargetType="TextBlock">
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||||
|
</Style>
|
||||||
|
</shct:DescriptionTextBlock.Resources>
|
||||||
|
</shct:DescriptionTextBlock>
|
||||||
|
</Flyout>
|
||||||
|
</Button.Flyout>
|
||||||
|
</Button>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarPropertyTemplate">
|
||||||
|
<Grid Padding="16,8" Background="{Binding Background, Mode=OneWay}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="108"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<shci:MonoChrome
|
||||||
|
Width="16"
|
||||||
|
Height="16"
|
||||||
|
Source="{Binding Icon}"/>
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="16,0,0,0"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding Name}"/>
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Text="{Binding Value}"/>
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="3"
|
||||||
|
Margin="8,0,0,0"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Foreground="{StaticResource AvatarPropertyAddValueColorBrush}"
|
||||||
|
Text="{Binding AddValue}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarReliquarySubPropertyTemplate">
|
||||||
|
<Grid ColumnSpacing="6">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock
|
||||||
|
Style="{StaticResource BaseTextBlockStyle}"
|
||||||
|
Text="{Binding Name}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding Value}"/>
|
||||||
|
<Grid Grid.Column="2" Opacity="1">
|
||||||
|
<Ellipse
|
||||||
|
Width="16"
|
||||||
|
Height="16"
|
||||||
|
Margin="0,0,0,0"
|
||||||
|
Opacity="0.8"
|
||||||
|
StrokeThickness="1">
|
||||||
|
<Ellipse.Stroke>
|
||||||
|
<SolidColorBrush Color="{Binding EnhancedCount, Converter={ThemeResource CountToGradientColorConverter}}"/>
|
||||||
|
</Ellipse.Stroke>
|
||||||
|
</Ellipse>
|
||||||
|
<TextBlock
|
||||||
|
Grid.Column="2"
|
||||||
|
Margin="0,0,0,1"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontSize="{ThemeResource InfoBadgeValueFontSize}"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{Binding EnhancedCount}">
|
||||||
|
<TextBlock.Foreground>
|
||||||
|
<SolidColorBrush Color="{Binding EnhancedCount, Converter={ThemeResource CountToGradientColorConverter}}"/>
|
||||||
|
</TextBlock.Foreground>
|
||||||
|
</TextBlock>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarReliquarySparseSubPropertyTemplate">
|
||||||
|
<Grid Opacity="{Binding Opacity}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock
|
||||||
|
Text="{Binding Name}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding Value}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="AvatarReliquaryTemplate">
|
||||||
|
<Expander
|
||||||
|
Margin="0,0,0,16"
|
||||||
|
Padding="16"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
HorizontalContentAlignment="Stretch">
|
||||||
|
<Expander.Header>
|
||||||
|
<Grid Margin="0,8,8,8">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<shvcont:ItemIcon
|
||||||
|
Grid.Column="0"
|
||||||
|
Width="32"
|
||||||
|
Height="32"
|
||||||
|
Icon="{Binding Icon}"
|
||||||
|
Quality="{Binding Quality}"/>
|
||||||
|
<Grid
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="16,0,0,0"
|
||||||
|
ColumnSpacing="8">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<StackPanel Grid.Column="0">
|
||||||
|
<!-- 主属性 -->
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock
|
||||||
|
Style="{StaticResource BaseTextBlockStyle}"
|
||||||
|
Text="{Binding MainProperty.Name}"
|
||||||
|
TextTrimming="CharacterEllipsis"/>
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding MainProperty.Value}"/>
|
||||||
|
</Grid>
|
||||||
|
<!-- 评分 -->
|
||||||
|
<Grid Margin="0,8,0,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock
|
||||||
|
Style="{StaticResource BaseTextBlockStyle}"
|
||||||
|
Text="{shcm:ResourceString Name=ViewPageAvatarPropertyScore}"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"/>
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding ScoreFormatted}"/>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
<AppBarSeparator Grid.Column="1"/>
|
||||||
|
<ItemsControl
|
||||||
|
Grid.Column="2"
|
||||||
|
ItemTemplate="{StaticResource AvatarReliquarySubPropertyTemplate}"
|
||||||
|
ItemsSource="{Binding ComposedSubProperties}">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<cwcont:UniformGrid
|
||||||
|
ColumnSpacing="16"
|
||||||
|
Columns="2"
|
||||||
|
RowSpacing="8"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
</ItemsControl>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Expander.Header>
|
||||||
|
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Text="{shcm:ResourceString Name=ViewPageAvatarPropertyPrimaryProperties}"/>
|
||||||
|
<ItemsControl
|
||||||
|
ItemTemplate="{StaticResource AvatarReliquarySparseSubPropertyTemplate}"
|
||||||
|
ItemsPanel="{StaticResource UniformGridColumns5Spacing8Template}"
|
||||||
|
ItemsSource="{Binding PrimarySubProperties}"/>
|
||||||
|
<TextBlock
|
||||||
|
Margin="0,16,0,0"
|
||||||
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
|
Text="{shcm:ResourceString Name=ViewPageAvatarPropertySecondaryProperties}"/>
|
||||||
|
<ItemsControl
|
||||||
|
ItemTemplate="{StaticResource AvatarReliquarySparseSubPropertyTemplate}"
|
||||||
|
ItemsPanel="{StaticResource UniformGridColumns5Spacing8Template}"
|
||||||
|
ItemsSource="{Binding SecondarySubProperties}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Expander>
|
||||||
|
</DataTemplate>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
|
|
||||||
@@ -110,12 +486,10 @@
|
|||||||
</AppBarButton>
|
</AppBarButton>
|
||||||
</CommandBar>
|
</CommandBar>
|
||||||
|
|
||||||
<cwcont:SwitchPresenter Grid.Row="1" Value="{Binding ElementName=ItemsPanelSelector, Path=Current, Mode=OneWay}">
|
<cwcont:SwitchPresenter
|
||||||
<cwcont:SwitchPresenter.ContentTransitions>
|
Grid.Row="1"
|
||||||
<TransitionCollection>
|
ContentTransitions="{ThemeResource ContentThemeTransitions}"
|
||||||
<ContentThemeTransition/>
|
Value="{Binding ElementName=ItemsPanelSelector, Path=Current, Mode=OneWay}">
|
||||||
</TransitionCollection>
|
|
||||||
</cwcont:SwitchPresenter.ContentTransitions>
|
|
||||||
<cwcont:Case Value="Grid">
|
<cwcont:Case Value="Grid">
|
||||||
<ScrollViewer>
|
<ScrollViewer>
|
||||||
<StackPanel x:Name="GridImageExportPanel" Background="Transparent">
|
<StackPanel x:Name="GridImageExportPanel" Background="Transparent">
|
||||||
@@ -123,117 +497,9 @@
|
|||||||
Margin="16,16,4,-8"
|
Margin="16,16,4,-8"
|
||||||
cwa:ItemsReorderAnimation.Duration="0:0:0.1"
|
cwa:ItemsReorderAnimation.Duration="0:0:0.1"
|
||||||
ItemContainerStyle="{StaticResource LargeGridViewItemStyle}"
|
ItemContainerStyle="{StaticResource LargeGridViewItemStyle}"
|
||||||
|
ItemTemplate="{StaticResource AvatarGridViewTemplate}"
|
||||||
ItemsSource="{Binding Summary.Avatars}"
|
ItemsSource="{Binding Summary.Avatars}"
|
||||||
SelectedItem="{Binding SelectedAvatar, Mode=TwoWay}">
|
SelectedItem="{Binding SelectedAvatar, Mode=TwoWay}"/>
|
||||||
<GridView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<Border Style="{StaticResource BorderCardStyle}">
|
|
||||||
<Grid ColumnSpacing="6">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="auto"/>
|
|
||||||
<RowDefinition/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Border
|
|
||||||
Grid.RowSpan="2"
|
|
||||||
Grid.ColumnSpan="2"
|
|
||||||
CornerRadius="{ThemeResource ControlCornerRadius}">
|
|
||||||
<shci:CachedImage
|
|
||||||
MaxWidth="145"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Opacity="0.5"
|
|
||||||
Source="{Binding NameCard}"
|
|
||||||
Stretch="UniformToFill"/>
|
|
||||||
</Border>
|
|
||||||
|
|
||||||
<shvcont:BottomTextControl
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="0"
|
|
||||||
Margin="6,6,0,6"
|
|
||||||
Text="{Binding Level}">
|
|
||||||
<Grid>
|
|
||||||
<shvcont:ItemIcon
|
|
||||||
Width="61.5"
|
|
||||||
Height="61.5"
|
|
||||||
Icon="{Binding Icon}"
|
|
||||||
Quality="{Binding Quality}"/>
|
|
||||||
<Border
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Background="#80000000"
|
|
||||||
CornerRadius="0,6,0,6">
|
|
||||||
<TextBlock
|
|
||||||
Margin="6,0,6,2"
|
|
||||||
Foreground="#FFFFFFFF"
|
|
||||||
Text="{Binding ActivatedConstellationCount}"/>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
</shvcont:BottomTextControl>
|
|
||||||
<shvcont:BottomTextControl
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="0,6,6,6"
|
|
||||||
Text="{Binding Weapon.Level}">
|
|
||||||
<Grid>
|
|
||||||
<shvcont:ItemIcon
|
|
||||||
Width="61.5"
|
|
||||||
Height="61.5"
|
|
||||||
Icon="{Binding Weapon.Icon}"
|
|
||||||
Quality="{Binding Weapon.Quality}"/>
|
|
||||||
<Border
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Background="#80000000"
|
|
||||||
CornerRadius="0,6,0,6">
|
|
||||||
<TextBlock
|
|
||||||
Margin="6,0,6,2"
|
|
||||||
Foreground="#FFFFFFFF"
|
|
||||||
Text="{Binding Weapon.AffixLevelNumber}"/>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
</shvcont:BottomTextControl>
|
|
||||||
|
|
||||||
<ItemsControl
|
|
||||||
Grid.Row="1"
|
|
||||||
Grid.Column="0"
|
|
||||||
Grid.ColumnSpan="2"
|
|
||||||
Margin="6,0,0,6"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
ItemsPanel="{StaticResource HorizontalStackPanelTemplate}"
|
|
||||||
ItemsSource="{Binding Skills}">
|
|
||||||
<ItemsControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<Border
|
|
||||||
Width="40"
|
|
||||||
Margin="0,0,6,0"
|
|
||||||
Style="{StaticResource BorderCardStyle}">
|
|
||||||
<StackPanel>
|
|
||||||
<shci:MonoChrome
|
|
||||||
Width="32"
|
|
||||||
Height="32"
|
|
||||||
Margin="4,4,4,0"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
EnableLazyLoading="False"
|
|
||||||
Source="{Binding Icon}"/>
|
|
||||||
<TextBlock
|
|
||||||
Margin="0,0,0,4"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding Level}"/>
|
|
||||||
</StackPanel>
|
|
||||||
</Border>
|
|
||||||
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
</Grid>
|
|
||||||
</Border>
|
|
||||||
</DataTemplate>
|
|
||||||
</GridView.ItemTemplate>
|
|
||||||
</GridView>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</cwcont:Case>
|
</cwcont:Case>
|
||||||
@@ -245,66 +511,10 @@
|
|||||||
OpenPaneLength="{StaticResource CompatSplitViewOpenPaneLength2}"
|
OpenPaneLength="{StaticResource CompatSplitViewOpenPaneLength2}"
|
||||||
PaneBackground="Transparent">
|
PaneBackground="Transparent">
|
||||||
<SplitView.Pane>
|
<SplitView.Pane>
|
||||||
<ListView ItemsSource="{Binding Summary.Avatars}" SelectedItem="{Binding SelectedAvatar, Mode=TwoWay}">
|
<ListView
|
||||||
<ListView.ItemTemplate>
|
ItemTemplate="{StaticResource AvatarListViewTemplate}"
|
||||||
<DataTemplate>
|
ItemsSource="{Binding Summary.Avatars}"
|
||||||
<Grid>
|
SelectedItem="{Binding SelectedAvatar, Mode=TwoWay}"/>
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<shci:CachedImage
|
|
||||||
Grid.Column="0"
|
|
||||||
Width="48"
|
|
||||||
Height="48"
|
|
||||||
Margin="0,0,12,12"
|
|
||||||
Source="{Binding SideIcon, Mode=OneWay}"/>
|
|
||||||
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
||||||
<TextBlock
|
|
||||||
Margin="12,0,0,0"
|
|
||||||
Text="{Binding Name}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock
|
|
||||||
Margin="12,0,0,0"
|
|
||||||
Opacity="0.7"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding Level}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel
|
|
||||||
Grid.Column="2"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Opacity="0.7"
|
|
||||||
Visibility="{Binding ElementName=RefreshTimeToggle, Path=IsChecked, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
FontSize="11"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding ShowcaseRefreshTimeFormat}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
FontSize="11"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding GameRecordRefreshTimeFormat}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
FontSize="11"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding CalculatorRefreshTimeFormat}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
</StackPanel>
|
|
||||||
</Grid>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
</SplitView.Pane>
|
</SplitView.Pane>
|
||||||
<SplitView.Content>
|
<SplitView.Content>
|
||||||
<ScrollViewer>
|
<ScrollViewer>
|
||||||
@@ -449,12 +659,8 @@
|
|||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="16"
|
Margin="16"
|
||||||
|
ItemsPanel="{StaticResource HorizontalStackPanelTemplate}"
|
||||||
ItemsSource="{Binding SelectedAvatar.Constellations}">
|
ItemsSource="{Binding SelectedAvatar.Constellations}">
|
||||||
<ItemsControl.ItemsPanel>
|
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<StackPanel Orientation="Horizontal"/>
|
|
||||||
</ItemsPanelTemplate>
|
|
||||||
</ItemsControl.ItemsPanel>
|
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Button
|
<Button
|
||||||
@@ -523,70 +729,8 @@
|
|||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="16"
|
Margin="16"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
ItemsSource="{Binding SelectedAvatar.Skills}">
|
ItemTemplate="{StaticResource AvatarConstellationTemplate}"
|
||||||
<ItemsControl.ItemTemplate>
|
ItemsSource="{Binding SelectedAvatar.Skills}"/>
|
||||||
<DataTemplate>
|
|
||||||
<Button
|
|
||||||
Margin="0,2,0,0"
|
|
||||||
Padding="4"
|
|
||||||
Background="Transparent"
|
|
||||||
BorderBrush="{x:Null}">
|
|
||||||
<Button.Content>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="48"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<shci:CachedImage
|
|
||||||
Grid.Column="0"
|
|
||||||
Width="36"
|
|
||||||
Height="36"
|
|
||||||
Source="{Binding Icon}"/>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="6,0,0,2"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Foreground="#FFFFFFFF"
|
|
||||||
Style="{StaticResource BaseTextBlockStyle}"
|
|
||||||
Text="{Binding Info.Level}"/>
|
|
||||||
</Grid>
|
|
||||||
</Button.Content>
|
|
||||||
<Button.Flyout>
|
|
||||||
<Flyout Placement="Left">
|
|
||||||
<StackPanel MaxWidth="320">
|
|
||||||
<StackPanel.Resources>
|
|
||||||
<Thickness x:Key="SettingsCardPadding">16</Thickness>
|
|
||||||
<x:Double x:Key="SettingsCardWrapThreshold">0</x:Double>
|
|
||||||
<x:Double x:Key="SettingsCardWrapNoIconThreshold">0</x:Double>
|
|
||||||
<x:Double x:Key="SettingsCardMinHeight">0</x:Double>
|
|
||||||
</StackPanel.Resources>
|
|
||||||
<shct:DescriptionTextBlock Description="{Binding Description}">
|
|
||||||
<shct:DescriptionTextBlock.Resources>
|
|
||||||
<Style BasedOn="{StaticResource BodyTextBlockStyle}" TargetType="TextBlock">
|
|
||||||
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
||||||
</Style>
|
|
||||||
</shct:DescriptionTextBlock.Resources>
|
|
||||||
</shct:DescriptionTextBlock>
|
|
||||||
<ItemsControl Margin="0,12,0,0" ItemsSource="{Binding Info.Parameters}">
|
|
||||||
<ItemsControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<cwcont:SettingsCard
|
|
||||||
Margin="0,2,0,0"
|
|
||||||
Padding="12,0"
|
|
||||||
Header="{Binding Description}">
|
|
||||||
<TextBlock Margin="0,8" Text="{Binding Parameter}"/>
|
|
||||||
</cwcont:SettingsCard>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
</StackPanel>
|
|
||||||
</Flyout>
|
|
||||||
</Button.Flyout>
|
|
||||||
</Button>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
@@ -598,221 +742,19 @@
|
|||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
Background="{x:Null}"
|
Background="{x:Null}"
|
||||||
Header="{shcm:ResourceString Name=ViewPageAvatarPropertyHeader}">
|
Header="{shcm:ResourceString Name=ViewPageAvatarPropertyHeader}">
|
||||||
<Border Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}" CornerRadius="0,0,4,4">
|
<Border Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}" CornerRadius="{ThemeResource ControlCornerRadiusBottom}">
|
||||||
<shcca:AlternatingItemsControl
|
<shcca:AlternatingItemsControl
|
||||||
Margin="0,0,0,-2"
|
Margin="0,0,0,-2"
|
||||||
ItemAlternateBackground="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
|
ItemAlternateBackground="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
|
||||||
ItemsSource="{Binding SelectedAvatar.Properties}">
|
ItemTemplate="{StaticResource AvatarPropertyTemplate}"
|
||||||
<shcca:AlternatingItemsControl.ItemTemplate>
|
ItemsSource="{Binding SelectedAvatar.Properties}"/>
|
||||||
<DataTemplate>
|
|
||||||
<Grid Padding="16,8" Background="{Binding Background, Mode=OneWay}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="108"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition/>
|
|
||||||
<RowDefinition Height="auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<shci:MonoChrome
|
|
||||||
Width="16"
|
|
||||||
Height="16"
|
|
||||||
Source="{Binding Icon}"/>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="16,0,0,0"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Text="{Binding Name}"/>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="2"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Text="{Binding Value}"/>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="3"
|
|
||||||
Margin="8,0,0,0"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Foreground="{StaticResource AvatarPropertyAddValueColorBrush}"
|
|
||||||
Text="{Binding AddValue}"/>
|
|
||||||
</Grid>
|
|
||||||
</DataTemplate>
|
|
||||||
</shcca:AlternatingItemsControl.ItemTemplate>
|
|
||||||
</shcca:AlternatingItemsControl>
|
|
||||||
</Border>
|
</Border>
|
||||||
</Expander>
|
</Expander>
|
||||||
<!-- 圣遗物 -->
|
<!-- 圣遗物 -->
|
||||||
<ItemsControl Margin="16,16,16,0" ItemsSource="{Binding SelectedAvatar.Reliquaries}">
|
<ItemsControl
|
||||||
<ItemsControl.ItemTemplate>
|
Margin="16,16,16,0"
|
||||||
<DataTemplate>
|
ItemTemplate="{StaticResource AvatarReliquaryTemplate}"
|
||||||
<Expander
|
ItemsSource="{Binding SelectedAvatar.Reliquaries}"/>
|
||||||
Margin="0,0,0,16"
|
|
||||||
Padding="16"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
HorizontalContentAlignment="Stretch">
|
|
||||||
<Expander.Header>
|
|
||||||
<Grid Margin="0,8,8,8">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<shvcont:ItemIcon
|
|
||||||
Grid.Column="0"
|
|
||||||
Width="32"
|
|
||||||
Height="32"
|
|
||||||
Icon="{Binding Icon}"
|
|
||||||
Quality="{Binding Quality}"/>
|
|
||||||
<Grid
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="16,0,0,0"
|
|
||||||
ColumnSpacing="8">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="2*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<StackPanel Grid.Column="0">
|
|
||||||
<!-- 主属性 -->
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Style="{StaticResource BaseTextBlockStyle}"
|
|
||||||
Text="{Binding MainProperty.Name}"
|
|
||||||
TextTrimming="CharacterEllipsis"/>
|
|
||||||
<TextBlock Grid.Column="1" Text="{Binding MainProperty.Value}"/>
|
|
||||||
</Grid>
|
|
||||||
<!-- 评分 -->
|
|
||||||
<Grid Margin="0,8,0,0">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Style="{StaticResource BaseTextBlockStyle}"
|
|
||||||
Text="{shcm:ResourceString Name=ViewPageAvatarPropertyScore}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock Grid.Column="1" Text="{Binding ScoreFormatted}"/>
|
|
||||||
</Grid>
|
|
||||||
</StackPanel>
|
|
||||||
<AppBarSeparator Grid.Column="1"/>
|
|
||||||
<ItemsControl Grid.Column="2" ItemsSource="{Binding ComposedSubProperties}">
|
|
||||||
<ItemsControl.ItemsPanel>
|
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<cwcont:UniformGrid
|
|
||||||
ColumnSpacing="16"
|
|
||||||
Columns="2"
|
|
||||||
RowSpacing="8"/>
|
|
||||||
</ItemsPanelTemplate>
|
|
||||||
</ItemsControl.ItemsPanel>
|
|
||||||
<ItemsControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<Grid ColumnSpacing="6">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Style="{StaticResource BaseTextBlockStyle}"
|
|
||||||
Text="{Binding Name}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock Grid.Column="1" Text="{Binding Value}"/>
|
|
||||||
<Grid Grid.Column="2" Opacity="1">
|
|
||||||
<Ellipse
|
|
||||||
Width="16"
|
|
||||||
Height="16"
|
|
||||||
Margin="0,0,0,0"
|
|
||||||
Opacity="0.8"
|
|
||||||
StrokeThickness="1">
|
|
||||||
<Ellipse.Stroke>
|
|
||||||
<SolidColorBrush Color="{Binding EnhancedCount, Converter={ThemeResource CountToGradientColorConverter}}"/>
|
|
||||||
</Ellipse.Stroke>
|
|
||||||
</Ellipse>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Column="2"
|
|
||||||
Margin="0,0,0,1"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
FontSize="{ThemeResource InfoBadgeValueFontSize}"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{Binding EnhancedCount}">
|
|
||||||
<TextBlock.Foreground>
|
|
||||||
<SolidColorBrush Color="{Binding EnhancedCount, Converter={ThemeResource CountToGradientColorConverter}}"/>
|
|
||||||
</TextBlock.Foreground>
|
|
||||||
</TextBlock>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</Expander.Header>
|
|
||||||
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Text="{shcm:ResourceString Name=ViewPageAvatarPropertyPrimaryProperties}"/>
|
|
||||||
<ItemsControl ItemsSource="{Binding PrimarySubProperties}">
|
|
||||||
<ItemsControl.ItemsPanel>
|
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<cwcont:UniformGrid ColumnSpacing="8" Columns="5"/>
|
|
||||||
</ItemsPanelTemplate>
|
|
||||||
</ItemsControl.ItemsPanel>
|
|
||||||
<ItemsControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<Grid Opacity="{Binding Opacity}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Text="{Binding Name}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock Grid.Column="1" Text="{Binding Value}"/>
|
|
||||||
</Grid>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
<TextBlock
|
|
||||||
Margin="0,16,0,0"
|
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
|
||||||
Text="{shcm:ResourceString Name=ViewPageAvatarPropertySecondaryProperties}"/>
|
|
||||||
<ItemsControl ItemsSource="{Binding SecondarySubProperties}">
|
|
||||||
<ItemsControl.ItemsPanel>
|
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<cwcont:UniformGrid ColumnSpacing="8" Columns="5"/>
|
|
||||||
</ItemsPanelTemplate>
|
|
||||||
</ItemsControl.ItemsPanel>
|
|
||||||
<ItemsControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<Grid Opacity="{Binding Opacity}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Text="{Binding Name}"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
TextWrapping="NoWrap"/>
|
|
||||||
<TextBlock Grid.Column="1" Text="{Binding Value}"/>
|
|
||||||
</Grid>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
</StackPanel>
|
|
||||||
</Expander>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</SplitView.Content>
|
</SplitView.Content>
|
||||||
|
|||||||
@@ -20,27 +20,39 @@
|
|||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
<shc:BindingProxy x:Key="BindingProxy" DataContext="{Binding}"/>
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
|
<ResourceDictionary x:Key="Light">
|
||||||
|
<cwconv:BoolToObjectConverter x:Key="BoolToBrushSelector" FalseValue="{StaticResource ControlFillColorTransparentBrush}">
|
||||||
|
<cwconv:BoolToObjectConverter.TrueValue>
|
||||||
|
<SolidColorBrush Color="#206A890A"/>
|
||||||
|
</cwconv:BoolToObjectConverter.TrueValue>
|
||||||
|
</cwconv:BoolToObjectConverter>
|
||||||
|
</ResourceDictionary>
|
||||||
|
<ResourceDictionary x:Key="Dark">
|
||||||
|
<cwconv:BoolToObjectConverter x:Key="BoolToBrushSelector" FalseValue="{StaticResource ControlFillColorTransparentBrush}">
|
||||||
|
<cwconv:BoolToObjectConverter.TrueValue>
|
||||||
|
<SolidColorBrush Color="#20A5D610"/>
|
||||||
|
</cwconv:BoolToObjectConverter.TrueValue>
|
||||||
|
</cwconv:BoolToObjectConverter>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
|
<shc:BindingProxy x:Key="BindingProxy" DataContext="{Binding}"/>
|
||||||
|
|
||||||
<cwconv:BoolToObjectConverter x:Key="BoolToOpacityConverter">
|
<cwconv:BoolToObjectConverter x:Key="BoolToOpacityConverter">
|
||||||
<cwconv:BoolToObjectConverter.TrueValue>
|
<cwconv:BoolToObjectConverter.TrueValue>
|
||||||
<x:Double>0.4</x:Double>
|
<x:Double>0.4</x:Double>
|
||||||
</cwconv:BoolToObjectConverter.TrueValue>
|
</cwconv:BoolToObjectConverter.TrueValue>
|
||||||
<cwconv:BoolToObjectConverter.FalseValue>
|
<cwconv:BoolToObjectConverter.FalseValue>
|
||||||
<x:Double>1</x:Double>
|
<x:Double>1</x:Double>
|
||||||
</cwconv:BoolToObjectConverter.FalseValue>
|
</cwconv:BoolToObjectConverter.FalseValue>
|
||||||
</cwconv:BoolToObjectConverter>
|
</cwconv:BoolToObjectConverter>
|
||||||
|
|
||||||
<cwconv:BoolToObjectConverter
|
<cwconv:BoolToObjectConverter
|
||||||
x:Key="BoolToStyleSelector"
|
x:Key="BoolToStyleSelector"
|
||||||
FalseValue="{StaticResource BodyTextBlockStyle}"
|
FalseValue="{StaticResource BodyTextBlockStyle}"
|
||||||
TrueValue="{StaticResource BaseTextBlockStyle}"/>
|
TrueValue="{StaticResource BaseTextBlockStyle}"/>
|
||||||
|
</ResourceDictionary>
|
||||||
<cwconv:BoolToObjectConverter x:Key="BoolToBrushSelector" FalseValue="{StaticResource ControlFillColorTransparentBrush}">
|
|
||||||
<cwconv:BoolToObjectConverter.TrueValue>
|
|
||||||
<SolidColorBrush Color="#20A5D610"/>
|
|
||||||
</cwconv:BoolToObjectConverter.TrueValue>
|
|
||||||
</cwconv:BoolToObjectConverter>
|
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
|
|
||||||
<mxi:Interaction.Behaviors>
|
<mxi:Interaction.Behaviors>
|
||||||
@@ -176,7 +188,7 @@
|
|||||||
Margin="6,0,0,0"
|
Margin="6,0,0,0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
Background="{Binding IsToday, Converter={StaticResource BoolToBrushSelector}}"
|
Background="{Binding IsToday, Converter={ThemeResource BoolToBrushSelector}}"
|
||||||
Command="{Binding Path=DataContext.FinishStateCommand, Source={StaticResource BindingProxy}}"
|
Command="{Binding Path=DataContext.FinishStateCommand, Source={StaticResource BindingProxy}}"
|
||||||
CommandParameter="{Binding}"
|
CommandParameter="{Binding}"
|
||||||
Style="{StaticResource ButtonRevealStyle}">
|
Style="{StaticResource ButtonRevealStyle}">
|
||||||
|
|||||||
Reference in New Issue
Block a user