-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
253 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<UserControl x:Class="Starward.Controls.InstallGameController" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:Starward.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
<Button Padding="0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"> | ||
<Grid> | ||
<FontIcon FontSize="16" | ||
Glyph="" | ||
IsTextScaleFactorEnabled="False" /> | ||
</Grid> | ||
|
||
<Button.Flyout> | ||
<Flyout Placement="RightEdgeAlignedBottom"> | ||
<Grid Width="240" Height="200"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition /> | ||
<RowDefinition /> | ||
</Grid.RowDefinitions> | ||
|
||
<Grid Height="44"> | ||
<Grid Width="44" | ||
Height="44" | ||
HorizontalAlignment="Left" | ||
VerticalAlignment="Top" | ||
CornerRadius="8"> | ||
<Image Width="44" | ||
Height="44" | ||
Source="ms-appx:///Assets/Image/icon_ys.jpg" /> | ||
<Image Width="22" | ||
Height="22" | ||
HorizontalAlignment="Right" | ||
VerticalAlignment="Bottom" | ||
Source="ms-appx:///Assets/Image/gameicon_hyperion.png" /> | ||
|
||
</Grid> | ||
|
||
|
||
<ProgressBar MinHeight="4" | ||
Margin="56,0,0,0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Bottom" | ||
Value="40"> | ||
<ProgressBar.Resources> | ||
<x:Double x:Key="ProgressBarTrackHeight">4</x:Double> | ||
<CornerRadius x:Key="ProgressBarTrackCornerRadius">4</CornerRadius> | ||
</ProgressBar.Resources> | ||
</ProgressBar> | ||
|
||
<TextBlock Margin="56,0,0,0" | ||
FontSize="12" | ||
Text="Downloading" /> | ||
|
||
<TextBlock Margin="56,0,0,10" | ||
VerticalAlignment="Bottom" | ||
FontSize="12" | ||
Text="21.35/43.56 GB" /> | ||
|
||
<StackPanel HorizontalAlignment="Right" | ||
VerticalAlignment="Center" | ||
Orientation="Horizontal"> | ||
<Button Width="28" | ||
Height="28" | ||
Padding="0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"> | ||
<FontIcon FontSize="16" | ||
Glyph="" | ||
IsTextScaleFactorEnabled="False" /> | ||
</Button> | ||
<Button Width="28" | ||
Height="28" | ||
Padding="0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}" | ||
Visibility="Collapsed"> | ||
<FontIcon FontSize="16" | ||
Glyph="" | ||
IsTextScaleFactorEnabled="False" /> | ||
</Button> | ||
</StackPanel> | ||
|
||
</Grid> | ||
|
||
</Grid> | ||
</Flyout> | ||
</Button.Flyout> | ||
|
||
</Button> | ||
|
||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
using CommunityToolkit.Mvvm.ComponentModel; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using Microsoft.UI.Xaml.Data; | ||
using Microsoft.UI.Xaml.Input; | ||
using Microsoft.UI.Xaml.Media; | ||
using Microsoft.UI.Xaml.Navigation; | ||
using Starward.Services.Download; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
|
||
// To learn more about WinUI, the WinUI project structure, | ||
// and more about our project templates, see: http://aka.ms/winui-project-info. | ||
|
||
namespace Starward.Controls; | ||
|
||
[INotifyPropertyChanged] | ||
public sealed partial class InstallGameController : UserControl | ||
{ | ||
|
||
|
||
private readonly ILogger<InstallGameController> _logger = AppConfig.GetLogger<InstallGameController>(); | ||
|
||
|
||
private readonly InstallGameManager _installGameManager = AppConfig.GetService<InstallGameManager>(); | ||
|
||
|
||
public InstallGameController() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
private ObservableCollection<InstallGameStateModel> _installServices = new(); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters