|
|
@ -9,6 +9,7 @@ |
|
|
|
xmlns:packageManager="clr-namespace:StabilityMatrix.Avalonia.ViewModels.PackageManager" |
|
|
|
xmlns:packageManager="clr-namespace:StabilityMatrix.Avalonia.ViewModels.PackageManager" |
|
|
|
xmlns:faicon="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia" |
|
|
|
xmlns:faicon="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia" |
|
|
|
xmlns:lang="clr-namespace:StabilityMatrix.Avalonia.Languages" |
|
|
|
xmlns:lang="clr-namespace:StabilityMatrix.Avalonia.Languages" |
|
|
|
|
|
|
|
xmlns:system="clr-namespace:System;assembly=System.Runtime" |
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
|
|
|
x:DataType="viewModels:PackageManagerViewModel" |
|
|
|
x:DataType="viewModels:PackageManagerViewModel" |
|
|
|
x:CompileBindings="True" |
|
|
|
x:CompileBindings="True" |
|
|
@ -19,122 +20,184 @@ |
|
|
|
<!-- Title --> |
|
|
|
<!-- Title --> |
|
|
|
<TextBlock Grid.Row="0" Text="{Binding Title}" |
|
|
|
<TextBlock Grid.Row="0" Text="{Binding Title}" |
|
|
|
Margin="0,0,0,16" |
|
|
|
Margin="0,0,0,16" |
|
|
|
FontSize="24"/> |
|
|
|
FontSize="24" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Cards --> |
|
|
|
<!-- Cards --> |
|
|
|
<ScrollViewer Grid.Row="1"> |
|
|
|
<ScrollViewer Grid.Row="1"> |
|
|
|
<ItemsRepeater |
|
|
|
<ItemsRepeater |
|
|
|
ItemsSource="{Binding PackageCards}"> |
|
|
|
ItemsSource="{Binding PackageCards}"> |
|
|
|
<ItemsRepeater.Layout> |
|
|
|
<ItemsRepeater.Layout> |
|
|
|
<UniformGridLayout MinColumnSpacing="12" MinRowSpacing="12" /> |
|
|
|
<UniformGridLayout MinColumnSpacing="12" MinRowSpacing="12" /> |
|
|
|
</ItemsRepeater.Layout> |
|
|
|
</ItemsRepeater.Layout> |
|
|
|
<ItemsRepeater.ItemTemplate> |
|
|
|
<ItemsRepeater.ItemTemplate> |
|
|
|
<DataTemplate DataType="{x:Type packageManager:PackageCardViewModel}"> |
|
|
|
<DataTemplate DataType="{x:Type packageManager:PackageCardViewModel}"> |
|
|
|
<controls:Card Padding="8"> |
|
|
|
<controls:Card Padding="8"> |
|
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto" |
|
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto" |
|
|
|
ColumnDefinitions="*,Auto"> |
|
|
|
ColumnDefinitions="*,Auto"> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="0" |
|
|
|
<TextBlock Grid.Row="0" |
|
|
|
Grid.Column="0" |
|
|
|
Grid.Column="0" |
|
|
|
ToolTip.Tip="{Binding Package.DisplayName, FallbackValue=''}" |
|
|
|
ToolTip.Tip="{Binding Package.DisplayName, FallbackValue=''}" |
|
|
|
Text="{Binding Package.DisplayName, FallbackValue=''}" |
|
|
|
Text="{Binding Package.DisplayName, FallbackValue=''}" |
|
|
|
TextTrimming="WordEllipsis" |
|
|
|
TextTrimming="WordEllipsis" |
|
|
|
TextAlignment="Left" /> |
|
|
|
TextAlignment="Left" /> |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
Grid.Row="0" |
|
|
|
Grid.Row="0" |
|
|
|
Grid.Column="1" |
|
|
|
Grid.Column="1" |
|
|
|
HorizontalContentAlignment="Right" |
|
|
|
HorizontalContentAlignment="Right" |
|
|
|
HorizontalAlignment="Right" |
|
|
|
HorizontalAlignment="Right" |
|
|
|
VerticalContentAlignment="Top" |
|
|
|
VerticalContentAlignment="Top" |
|
|
|
VerticalAlignment="Top" |
|
|
|
VerticalAlignment="Top" |
|
|
|
Padding="4,1" |
|
|
|
Padding="4,1" |
|
|
|
Margin="4,0,0,0" |
|
|
|
Margin="4,0,0,0" |
|
|
|
Classes="transparent" |
|
|
|
Classes="transparent" |
|
|
|
Width="24" |
|
|
|
Width="24" |
|
|
|
BorderThickness="0"> |
|
|
|
BorderThickness="0"> |
|
|
|
<ui:SymbolIcon FontSize="18" Symbol="MoreVertical" /> |
|
|
|
<ui:SymbolIcon FontSize="18" Symbol="MoreVertical" /> |
|
|
|
<Button.Flyout> |
|
|
|
<Button.Flyout> |
|
|
|
<MenuFlyout Placement="BottomEdgeAlignedLeft"> |
|
|
|
<MenuFlyout Placement="BottomEdgeAlignedLeft"> |
|
|
|
<MenuItem Header="{x:Static lang:Resources.Action_CheckForUpdates}" |
|
|
|
<MenuItem Header="{x:Static lang:Resources.Action_CheckForUpdates}" |
|
|
|
IsVisible="{Binding !IsUnknownPackage}" |
|
|
|
IsVisible="{Binding !IsUnknownPackage}" |
|
|
|
Command="{Binding OnLoadedAsync}"> |
|
|
|
Command="{Binding OnLoadedAsync}"> |
|
|
|
<MenuItem.Icon> |
|
|
|
<MenuItem.Icon> |
|
|
|
<ui:SymbolIcon Symbol="Refresh" /> |
|
|
|
<ui:SymbolIcon Symbol="Refresh" /> |
|
|
|
</MenuItem.Icon> |
|
|
|
</MenuItem.Icon> |
|
|
|
</MenuItem> |
|
|
|
</MenuItem> |
|
|
|
<MenuItem |
|
|
|
<MenuItem |
|
|
|
Header="{OnPlatform Default={x:Static lang:Resources.Action_OpenInExplorer}, macOS={x:Static lang:Resources.Action_OpenInFinder}}" |
|
|
|
Header="{OnPlatform Default={x:Static lang:Resources.Action_OpenInExplorer}, macOS={x:Static lang:Resources.Action_OpenInFinder}}" |
|
|
|
Command="{Binding OpenFolder}"> |
|
|
|
Command="{Binding OpenFolder}"> |
|
|
|
<MenuItem.Icon> |
|
|
|
<MenuItem.Icon> |
|
|
|
<ui:SymbolIcon Symbol="OpenFolder" /> |
|
|
|
<ui:SymbolIcon Symbol="OpenFolder" /> |
|
|
|
</MenuItem.Icon> |
|
|
|
</MenuItem.Icon> |
|
|
|
</MenuItem> |
|
|
|
</MenuItem> |
|
|
|
<Separator /> |
|
|
|
<MenuItem Header="{x:Static lang:Resources.Label_SharedModelStrategyShort}" |
|
|
|
<MenuItem Header="{x:Static lang:Resources.Action_Uninstall}" |
|
|
|
IsVisible="{Binding !IsUnknownPackage}"> |
|
|
|
Command="{Binding Uninstall}"> |
|
|
|
<MenuItem.Icon> |
|
|
|
<MenuItem.Icon> |
|
|
|
<ui:SymbolIcon Symbol="FolderLink" /> |
|
|
|
<ui:SymbolIcon Symbol="Delete" /> |
|
|
|
</MenuItem.Icon> |
|
|
|
</MenuItem.Icon> |
|
|
|
<!-- ReSharper disable Xaml.RedundantResource --> |
|
|
|
</MenuItem> |
|
|
|
<MenuItem Header="Symlink" |
|
|
|
</MenuFlyout> |
|
|
|
Command="{Binding ToggleSharedModelSymlink}"> |
|
|
|
</Button.Flyout> |
|
|
|
<MenuItem.Icon> |
|
|
|
</Button> |
|
|
|
<CheckBox IsChecked="{Binding IsSharedModelSymlink}"/> |
|
|
|
|
|
|
|
</MenuItem.Icon> |
|
|
|
|
|
|
|
</MenuItem> |
|
|
|
|
|
|
|
<MenuItem Header="Config" |
|
|
|
|
|
|
|
Command="{Binding ToggleSharedModelConfig}" |
|
|
|
|
|
|
|
IsVisible="{Binding CanUseConfigMethod}"> |
|
|
|
|
|
|
|
<MenuItem.Icon> |
|
|
|
|
|
|
|
<CheckBox IsChecked="{Binding IsSharedModelConfig}"/> |
|
|
|
|
|
|
|
</MenuItem.Icon> |
|
|
|
|
|
|
|
</MenuItem> |
|
|
|
|
|
|
|
<MenuItem Header="None" |
|
|
|
|
|
|
|
Command="{Binding ToggleSharedModelNone}"> |
|
|
|
|
|
|
|
<MenuItem.Icon> |
|
|
|
|
|
|
|
<CheckBox IsChecked="{Binding IsSharedModelDisabled}"/> |
|
|
|
|
|
|
|
</MenuItem.Icon> |
|
|
|
|
|
|
|
</MenuItem> |
|
|
|
|
|
|
|
<!-- ReSharper enable Xaml.RedundantResource --> |
|
|
|
|
|
|
|
</MenuItem> |
|
|
|
|
|
|
|
<Separator /> |
|
|
|
|
|
|
|
<MenuItem Header="{x:Static lang:Resources.Action_Uninstall}" |
|
|
|
|
|
|
|
Command="{Binding Uninstall}"> |
|
|
|
|
|
|
|
<MenuItem.Icon> |
|
|
|
|
|
|
|
<ui:SymbolIcon Symbol="Delete" /> |
|
|
|
|
|
|
|
</MenuItem.Icon> |
|
|
|
|
|
|
|
</MenuItem> |
|
|
|
|
|
|
|
</MenuFlyout> |
|
|
|
|
|
|
|
</Button.Flyout> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" |
|
|
|
|
|
|
|
Grid.Column="0" |
|
|
|
|
|
|
|
Grid.ColumnSpan="2" |
|
|
|
|
|
|
|
Margin="2,0,0,0" |
|
|
|
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
|
|
|
Text="{Binding InstalledVersion}" /> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" |
|
|
|
<!-- Normal packages shows image --> |
|
|
|
Grid.Column="0" |
|
|
|
<controls:BetterAdvancedImage |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Grid.Row="2" |
|
|
|
Margin="2,0,0,0" |
|
|
|
Grid.Column="0" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Text="{Binding InstalledVersion}" /> |
|
|
|
Margin="0,8,0,8" |
|
|
|
|
|
|
|
Height="160" |
|
|
|
|
|
|
|
Width="200" |
|
|
|
|
|
|
|
CornerRadius="4" |
|
|
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
|
|
|
VerticalContentAlignment="Top" |
|
|
|
|
|
|
|
HorizontalContentAlignment="Center" |
|
|
|
|
|
|
|
Source="{Binding CardImageSource}" |
|
|
|
|
|
|
|
IsVisible="{Binding !IsUnknownPackage}" |
|
|
|
|
|
|
|
Stretch="UniformToFill" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Normal packages shows image --> |
|
|
|
<!-- Unknown packages panel --> |
|
|
|
<controls:BetterAdvancedImage |
|
|
|
<Border |
|
|
|
Grid.Row="2" |
|
|
|
Grid.Row="2" |
|
|
|
Grid.Column="0" |
|
|
|
Grid.Column="0" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Margin="0,8,0,8" |
|
|
|
Margin="0,8,0,8" |
|
|
|
Height="160" |
|
|
|
Height="160" |
|
|
|
Width="200" |
|
|
|
Width="200" |
|
|
|
CornerRadius="4" |
|
|
|
CornerRadius="4" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalContentAlignment="Top" |
|
|
|
IsVisible="{Binding IsUnknownPackage}" |
|
|
|
HorizontalContentAlignment="Center" |
|
|
|
Background="#202020"> |
|
|
|
Source="{Binding CardImageSource}" |
|
|
|
<TextBlock |
|
|
|
IsVisible="{Binding !IsUnknownPackage}" |
|
|
|
TextAlignment="Center" |
|
|
|
Stretch="UniformToFill" /> |
|
|
|
VerticalAlignment="Center" |
|
|
|
|
|
|
|
FontSize="18" |
|
|
|
|
|
|
|
TextWrapping="Wrap" |
|
|
|
|
|
|
|
Text="{x:Static lang:Resources.Label_UnknownPackage}" /> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Unknown packages panel --> |
|
|
|
|
|
|
|
<Border |
|
|
|
|
|
|
|
Grid.Row="2" |
|
|
|
|
|
|
|
Grid.Column="0" |
|
|
|
|
|
|
|
Grid.ColumnSpan="2" |
|
|
|
|
|
|
|
Margin="0,8,0,8" |
|
|
|
|
|
|
|
Height="160" |
|
|
|
|
|
|
|
Width="200" |
|
|
|
|
|
|
|
CornerRadius="4" |
|
|
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
|
|
|
IsVisible="{Binding IsUnknownPackage}" |
|
|
|
|
|
|
|
Background="#202020"> |
|
|
|
|
|
|
|
<TextBlock |
|
|
|
|
|
|
|
TextAlignment="Center" |
|
|
|
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
|
|
|
FontSize="18" |
|
|
|
|
|
|
|
TextWrapping="Wrap" |
|
|
|
|
|
|
|
Text="{x:Static lang:Resources.Label_UnknownPackage}"/> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid |
|
|
|
|
|
|
|
Grid.Row="3" |
|
|
|
|
|
|
|
Grid.Column="0" |
|
|
|
|
|
|
|
Grid.ColumnSpan="2" |
|
|
|
|
|
|
|
IsVisible="{Binding IsUpdateAvailable}" |
|
|
|
|
|
|
|
ColumnDefinitions="*, *"> |
|
|
|
|
|
|
|
<!-- Launch and update buttons --> |
|
|
|
|
|
|
|
<Button Grid.Column="0" Classes="accent" |
|
|
|
|
|
|
|
VerticalAlignment="Bottom" |
|
|
|
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
|
|
|
Command="{Binding Launch}"> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
|
|
|
|
<faicon:Icon Value="fa-solid fa-rocket" |
|
|
|
|
|
|
|
Margin="0,0,8,0" |
|
|
|
|
|
|
|
FontSize="14" /> |
|
|
|
|
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Launch}" /> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
<Button Grid.Column="1" Classes="accent" |
|
|
|
|
|
|
|
VerticalAlignment="Bottom" |
|
|
|
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
|
|
|
Command="{Binding Update}"> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
|
|
|
|
<faicon:Icon Value="fa-solid fa-download" |
|
|
|
|
|
|
|
Margin="0,0,8,0" |
|
|
|
|
|
|
|
FontSize="14" /> |
|
|
|
|
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Update}" /> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
<Grid |
|
|
|
<!-- Big launch button --> |
|
|
|
Grid.Row="3" |
|
|
|
<Button |
|
|
|
Grid.Column="0" |
|
|
|
Grid.Row="3" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Grid.Column="0" |
|
|
|
IsVisible="{Binding IsUpdateAvailable}" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
ColumnDefinitions="*, *"> |
|
|
|
Classes="accent" |
|
|
|
<!-- Launch and update buttons --> |
|
|
|
VerticalAlignment="Bottom" |
|
|
|
<Button Grid.Column="0" Classes="accent" |
|
|
|
Command="{Binding Launch}" |
|
|
|
VerticalAlignment="Bottom" |
|
|
|
HorizontalAlignment="Stretch"> |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
<Button.IsVisible> |
|
|
|
Command="{Binding Launch}"> |
|
|
|
<MultiBinding Converter="{x:Static BoolConverters.And}"> |
|
|
|
|
|
|
|
<Binding Path="!IsUpdateAvailable" /> |
|
|
|
|
|
|
|
<Binding Path="!IsUnknownPackage" /> |
|
|
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
|
|
</Button.IsVisible> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
<faicon:Icon Value="fa-solid fa-rocket" |
|
|
|
<faicon:Icon Value="fa-solid fa-rocket" |
|
|
|
Margin="0,0,8,0" |
|
|
|
Margin="0,0,8,0" |
|
|
@ -142,96 +205,61 @@ |
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Launch}" /> |
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Launch}" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
<Button Grid.Column="1" Classes="accent" |
|
|
|
|
|
|
|
|
|
|
|
<!-- Import button (for unknown) --> |
|
|
|
|
|
|
|
<Button Grid.Row="3" Grid.Column="0" Classes="transparent-info" |
|
|
|
|
|
|
|
Grid.ColumnSpan="2" |
|
|
|
VerticalAlignment="Bottom" |
|
|
|
VerticalAlignment="Bottom" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Command="{Binding Update}"> |
|
|
|
Command="{Binding Import}" |
|
|
|
|
|
|
|
IsVisible="{Binding IsUnknownPackage}"> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
<faicon:Icon Value="fa-solid fa-download" |
|
|
|
<faicon:Icon Value="fa-solid fa-circle-question" |
|
|
|
Margin="0,0,8,0" |
|
|
|
Margin="0,0,8,0" |
|
|
|
FontSize="14" /> |
|
|
|
FontSize="14" /> |
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Update}" /> |
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Import}" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Big launch button --> |
|
|
|
<!-- Update overlay --> |
|
|
|
<Button |
|
|
|
<Border |
|
|
|
Grid.Row="3" |
|
|
|
Grid.Row="0" Grid.RowSpan="4" |
|
|
|
Grid.Column="0" |
|
|
|
Grid.Column="0" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
|
|
|
|
Classes="accent" |
|
|
|
|
|
|
|
VerticalAlignment="Bottom" |
|
|
|
|
|
|
|
Command="{Binding Launch}" |
|
|
|
|
|
|
|
HorizontalAlignment="Stretch"> |
|
|
|
|
|
|
|
<Button.IsVisible> |
|
|
|
|
|
|
|
<MultiBinding Converter="{x:Static BoolConverters.And}"> |
|
|
|
|
|
|
|
<Binding Path="!IsUpdateAvailable" /> |
|
|
|
|
|
|
|
<Binding Path="!IsUnknownPackage" /> |
|
|
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
|
|
</Button.IsVisible> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
|
|
|
|
<faicon:Icon Value="fa-solid fa-rocket" |
|
|
|
|
|
|
|
Margin="0,0,8,0" |
|
|
|
|
|
|
|
FontSize="14" /> |
|
|
|
|
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Launch}" /> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Import button (for unknown) --> |
|
|
|
|
|
|
|
<Button Grid.Row="3" Grid.Column="0" Classes="transparent-info" |
|
|
|
|
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
VerticalAlignment="Bottom" |
|
|
|
Background="#DD000000" |
|
|
|
|
|
|
|
CornerRadius="4" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Command="{Binding Import}" |
|
|
|
VerticalAlignment="Stretch" |
|
|
|
IsVisible="{Binding IsUnknownPackage}"> |
|
|
|
IsVisible="{Binding IsProgressVisible}" /> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,2"> |
|
|
|
<Grid Grid.Row="0" Grid.RowSpan="4" |
|
|
|
<faicon:Icon Value="fa-solid fa-circle-question" |
|
|
|
Grid.Column="0" |
|
|
|
Margin="0,0,8,0" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
FontSize="14" /> |
|
|
|
VerticalAlignment="Center" |
|
|
|
<TextBlock Text="{x:Static lang:Resources.Action_Import}" /> |
|
|
|
RowDefinitions="Auto, *" |
|
|
|
</StackPanel> |
|
|
|
IsVisible="{Binding IsProgressVisible}"> |
|
|
|
</Button> |
|
|
|
<controls:ProgressRing |
|
|
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
<!-- Update overlay --> |
|
|
|
IsIndeterminate="{Binding IsIndeterminate}" |
|
|
|
<Border |
|
|
|
Width="120" |
|
|
|
Grid.Row="0" Grid.RowSpan="4" |
|
|
|
Height="120" |
|
|
|
Grid.Column="0" |
|
|
|
StartAngle="90" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
EndAngle="450" |
|
|
|
Background="#DD000000" |
|
|
|
Value="{Binding Value}" |
|
|
|
CornerRadius="4" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
<TextBlock Grid.Row="1" |
|
|
|
VerticalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
IsVisible="{Binding IsProgressVisible}" /> |
|
|
|
Margin="8,8,8,0" |
|
|
|
<Grid Grid.Row="0" Grid.RowSpan="4" |
|
|
|
TextAlignment="Center" |
|
|
|
Grid.Column="0" |
|
|
|
Width="180" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Text="{Binding Text}" |
|
|
|
VerticalAlignment="Center" |
|
|
|
TextWrapping="Wrap" |
|
|
|
RowDefinitions="Auto, *" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
IsVisible="{Binding IsProgressVisible}"> |
|
|
|
</Grid> |
|
|
|
<controls:ProgressRing |
|
|
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
|
|
|
IsIndeterminate="{Binding IsIndeterminate}" |
|
|
|
|
|
|
|
Width="120" |
|
|
|
|
|
|
|
Height="120" |
|
|
|
|
|
|
|
StartAngle="90" |
|
|
|
|
|
|
|
EndAngle="450" |
|
|
|
|
|
|
|
Value="{Binding Value}" |
|
|
|
|
|
|
|
VerticalAlignment="Center" /> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" |
|
|
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
|
|
|
Margin="8,8,8,0" |
|
|
|
|
|
|
|
TextAlignment="Center" |
|
|
|
|
|
|
|
Width="180" |
|
|
|
|
|
|
|
Text="{Binding Text}" |
|
|
|
|
|
|
|
TextWrapping="Wrap" |
|
|
|
|
|
|
|
VerticalAlignment="Center" /> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</controls:Card> |
|
|
|
</controls:Card> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|
</ItemsRepeater.ItemTemplate> |
|
|
|
</ItemsRepeater.ItemTemplate> |
|
|
|
</ItemsRepeater> |
|
|
|
</ItemsRepeater> |
|
|
|
|
|
|
|
</ScrollViewer> |
|
|
|
</ScrollViewer> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Teaching Tip --> |
|
|
|
<!-- Teaching Tip --> |
|
|
@ -239,7 +267,7 @@ |
|
|
|
Target="{Binding #AddPackagesButton}" |
|
|
|
Target="{Binding #AddPackagesButton}" |
|
|
|
Title="{x:Static lang:Resources.TeachingTip_AddPackageToGetStarted}" |
|
|
|
Title="{x:Static lang:Resources.TeachingTip_AddPackageToGetStarted}" |
|
|
|
PreferredPlacement="Top" |
|
|
|
PreferredPlacement="Top" |
|
|
|
IsOpen="{Binding !Packages.Count}"/> |
|
|
|
IsOpen="{Binding !Packages.Count}" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Add Packages Button --> |
|
|
|
<!-- Add Packages Button --> |
|
|
|
<Button Grid.Row="2" |
|
|
|
<Button Grid.Row="2" |
|
|
|