|
67 | 67 | Theme="{StaticResource TransparentButton}"> |
68 | 68 | <DropDownButton.Flyout> |
69 | 69 | <ui:FAMenuFlyout Placement="BottomEdgeAlignedRight"> |
| 70 | + <ui:MenuFlyoutItem |
| 71 | + Command="{Binding ExportSteamEditedAppsBackup}" |
| 72 | + IsEnabled="{Binding !IsExportingBackup}" |
| 73 | + Text="{Binding Path=Res.Export, |
| 74 | + Mode=OneWay, |
| 75 | + Source={x:Static s:ResourceService.Current}}" /> |
| 76 | + <ui:MenuFlyoutItem |
| 77 | + Command="{Binding ImportSteamEditedAppsBackup}" |
| 78 | + Text="{Binding Path=Res.Import, |
| 79 | + Mode=OneWay, |
| 80 | + Source={x:Static s:ResourceService.Current}}" /> |
| 81 | + <ui:MenuFlyoutSeparator /> |
70 | 82 | <!--<ui:MenuFlyoutItem |
71 | 83 | Command="{Binding DeleteAllButton_Click}" |
72 | 84 | IconSource="Delete" |
|
100 | 112 | IsLoading="false" |
101 | 113 | IsShowNoResultText="{Binding !!!SteamEditedApps.Count, Mode=OneWay}" |
102 | 114 | NoResultMessage="{Binding Path=Res.SaveEditedAppInfo_AppsEmpty, Mode=OneWay, Source={x:Static s:ResourceService.Current}}"> |
103 | | - <ItemsControl ItemsSource="{Binding SteamEditedApps}"> |
104 | | - <ItemsControl.ItemsPanel> |
105 | | - <ItemsPanelTemplate> |
106 | | - <WrapPanel /> |
107 | | - </ItemsPanelTemplate> |
108 | | - </ItemsControl.ItemsPanel> |
109 | | - <ItemsControl.ItemTemplate> |
| 115 | + <ui:ItemsRepeater ItemsSource="{Binding SteamEditedApps}"> |
| 116 | + <ui:ItemsRepeater.Layout> |
| 117 | + <ui:UniformGridLayout |
| 118 | + ItemsJustification="Start" |
| 119 | + ItemsStretch="Uniform" |
| 120 | + MinColumnSpacing="10" |
| 121 | + MinItemHeight="310" |
| 122 | + MinItemWidth="150" |
| 123 | + MinRowSpacing="10" /> |
| 124 | + </ui:ItemsRepeater.Layout> |
| 125 | + <ui:ItemsRepeater.ItemTemplate> |
110 | 126 | <DataTemplate DataType="spp:SteamApp"> |
111 | | - <Border Margin="5" spp:Animations.EnableAnimations="False"> |
112 | | - <spp:AppItem |
113 | | - Title="{Binding DisplayName}" |
114 | | - Height="270" |
115 | | - MaxWidth="120" |
116 | | - Classes="Vertical" |
117 | | - ClickCommand="{Binding $parent[spp:PageBase].((spp:EditAppsPageViewModel)DataContext).EditAppInfoClickCommand}" |
118 | | - ClickCommandParameter="{Binding}" |
119 | | - Cursor="Hand"> |
120 | | - <spp:AppItem.Status> |
121 | | - <Border Classes="Status"> |
122 | | - <TextBlock Text="{Binding Path=Res.Edit, Mode=OneWay, Source={x:Static s:ResourceService.Current}}" /> |
| 127 | + <spp:AppItem |
| 128 | + Title="{Binding DisplayName}" |
| 129 | + Classes="Vertical" |
| 130 | + ClickCommand="{Binding $parent[spp:PageBase].((spp:EditAppsPageViewModel)DataContext).EditAppInfoClickCommand}" |
| 131 | + ClickCommandParameter="{Binding}" |
| 132 | + Cursor="Hand"> |
| 133 | + <spp:AppItem.Status> |
| 134 | + <Border Classes="Status"> |
| 135 | + <TextBlock Text="{Binding Path=Res.Edit, Mode=OneWay, Source={x:Static s:ResourceService.Current}}" /> |
| 136 | + </Border> |
| 137 | + </spp:AppItem.Status> |
| 138 | + <spp:AppItem.Image> |
| 139 | + <Panel Width="{Binding $parent[spp:AppItem].Bounds.Width}"> |
| 140 | + <spp:Image2 |
| 141 | + Name="AppImage" |
| 142 | + DecodeWidth="120" |
| 143 | + FallbackSource="avares://BD.WTTS.Client.Plugins.GameList/UI/Assets/defaultappimage.png" |
| 144 | + RenderOptions.BitmapInterpolationMode="HighQuality" |
| 145 | + Source="{Binding LibraryGridStream^}" |
| 146 | + Stretch="UniformToFill" /> |
| 147 | + <TextBlock |
| 148 | + Margin="8,0" |
| 149 | + HorizontalAlignment="Center" |
| 150 | + VerticalAlignment="Center" |
| 151 | + Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 152 | + IsVisible="{Binding #AppImage.IsFailed}" |
| 153 | + Text="{Binding DisplayName}" |
| 154 | + TextAlignment="Center" |
| 155 | + TextWrapping="WrapWithOverflow" |
| 156 | + Theme="{StaticResource BodyStrongTextBlockStyle}" /> |
| 157 | + <Border |
| 158 | + Margin="10,0,10,-3" |
| 159 | + HorizontalAlignment="Center" |
| 160 | + VerticalAlignment="Bottom" |
| 161 | + Background="#3D4450" |
| 162 | + CornerRadius="3" |
| 163 | + IsVisible="{Binding IsInstalled}"> |
| 164 | + <DockPanel Margin="10,3" HorizontalAlignment="Center"> |
| 165 | + <TextBlock |
| 166 | + Margin="0,0,5,0" |
| 167 | + VerticalAlignment="Center" |
| 168 | + FontSize="11" |
| 169 | + Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 170 | + IsVisible="{Binding InstalledDrive, Converter={StaticResource IsNullConverter}, ConverterParameter=invert}" |
| 171 | + Text="{Binding InstalledDrive}" /> |
| 172 | + <TextBlock |
| 173 | + VerticalAlignment="Center" |
| 174 | + FontSize="11" |
| 175 | + Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
| 176 | + Text="{Binding SizeOnDisk, Converter={StaticResource StringFormatConverter}, ConverterParameter=size}" |
| 177 | + TextWrapping="Wrap" /> |
| 178 | + </DockPanel> |
123 | 179 | </Border> |
124 | | - </spp:AppItem.Status> |
125 | | - <!--<spp:AppItem.ActionButton> |
126 | | - <Button |
127 | | - Command="{Binding $parent[spp:PageBase].((spp:EditAppsPageViewModel)DataContext).DeleteButtonCommand}" |
128 | | - CommandParameter="{Binding}" |
129 | | - Cursor="Hand" |
130 | | - ToolTip.Tip="{Binding Path=Res.GameList_RemoveItemBtn, Mode=OneWay, Source={x:Static s:ResourceService.Current}}"> |
131 | | - <Viewbox> |
132 | | - <ui:SymbolIcon Symbol="Delete" /> |
133 | | - </Viewbox> |
134 | | - </Button> |
135 | | - </spp:AppItem.ActionButton>--> |
136 | | - <spp:AppItem.Image> |
137 | | - <Panel MinWidth="{Binding $parent[spp:AppItem].MinWidth}" MaxWidth="{Binding $parent[spp:AppItem].MaxWidth}"> |
138 | | - <spp:Image2 |
139 | | - Name="AppImage" |
140 | | - DecodeWidth="120" |
141 | | - FallbackSource="avares://BD.WTTS.Client.Plugins.GameList/UI/Assets/defaultappimage.png" |
142 | | - RenderOptions.BitmapInterpolationMode="HighQuality" |
143 | | - Source="{Binding LibraryGridStream^}" |
144 | | - Stretch="UniformToFill" /> |
145 | | - <TextBlock |
146 | | - Margin="8,0" |
147 | | - HorizontalAlignment="Center" |
148 | | - VerticalAlignment="Center" |
149 | | - Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
150 | | - IsVisible="{Binding #AppImage.IsFailed}" |
151 | | - Text="{Binding DisplayName}" |
152 | | - TextAlignment="Center" |
153 | | - TextWrapping="WrapWithOverflow" |
154 | | - Theme="{StaticResource BodyStrongTextBlockStyle}" /> |
155 | | - |
156 | | - <Border |
157 | | - Margin="10,0,10,-3" |
158 | | - HorizontalAlignment="Center" |
159 | | - VerticalAlignment="Bottom" |
160 | | - Background="#3D4450" |
161 | | - CornerRadius="3" |
162 | | - IsVisible="{Binding IsInstalled}"> |
163 | | - <DockPanel Margin="10,3" HorizontalAlignment="Center"> |
164 | | - <TextBlock |
165 | | - Margin="0,0,5,0" |
166 | | - VerticalAlignment="Center" |
167 | | - FontSize="11" |
168 | | - Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
169 | | - IsVisible="{Binding InstalledDrive, Converter={StaticResource IsNullConverter}, ConverterParameter=invert}" |
170 | | - Text="{Binding InstalledDrive}" /> |
171 | | - <TextBlock |
172 | | - VerticalAlignment="Center" |
173 | | - FontSize="11" |
174 | | - Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
175 | | - Text="{Binding SizeOnDisk, Converter={StaticResource StringFormatConverter}, ConverterParameter=size}" |
176 | | - TextWrapping="Wrap" /> |
177 | | - </DockPanel> |
178 | | - </Border> |
179 | | - </Panel> |
180 | | - </spp:AppItem.Image> |
181 | | - </spp:AppItem> |
182 | | - </Border> |
| 180 | + </Panel> |
| 181 | + </spp:AppItem.Image> |
| 182 | + </spp:AppItem> |
183 | 183 | </DataTemplate> |
184 | | - </ItemsControl.ItemTemplate> |
185 | | - </ItemsControl> |
| 184 | + </ui:ItemsRepeater.ItemTemplate> |
| 185 | + </ui:ItemsRepeater> |
186 | 186 | </spp:ContentLoader> |
187 | 187 | </spp:PageBase> |
0 commit comments