|
|
@ -8,7 +8,6 @@ |
|
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" |
|
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" |
|
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
|
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
|
|
|
x:Class="StabilityMatrix.CheckpointBrowserPage" |
|
|
|
x:Class="StabilityMatrix.CheckpointBrowserPage" |
|
|
|
x:Name="CheckpointBrowserPg" |
|
|
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
xmlns:api="clr-namespace:StabilityMatrix.Models.Api" |
|
|
|
xmlns:api="clr-namespace:StabilityMatrix.Models.Api" |
|
|
|
xmlns:converters="clr-namespace:StabilityMatrix.Converters" |
|
|
|
xmlns:converters="clr-namespace:StabilityMatrix.Converters" |
|
|
@ -41,18 +40,18 @@ |
|
|
|
FontSize="11" |
|
|
|
FontSize="11" |
|
|
|
Foreground="{DynamicResource TextFillColorTertiaryBrush}" |
|
|
|
Foreground="{DynamicResource TextFillColorTertiaryBrush}" |
|
|
|
Margin="0,2,0,0" |
|
|
|
Margin="0,2,0,0" |
|
|
|
Text="{Binding ModelVersions[0].Name}" |
|
|
|
Text="{Binding CivitModel.ModelVersions[0].Name}" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
<Grid> |
|
|
|
<Grid> |
|
|
|
<Image |
|
|
|
<Image |
|
|
|
Margin="0,8,0,8" |
|
|
|
Margin="0,8,0,8" |
|
|
|
MaxHeight="300" |
|
|
|
MaxHeight="300" |
|
|
|
Source="{Binding ModelVersions[0].Images[0].Url, Converter={StaticResource UriToBitmapConverter}}" |
|
|
|
Source="{Binding CivitModel.ModelVersions[0].Images[0].Url, Converter={StaticResource UriToBitmapConverter}}" |
|
|
|
Stretch="UniformToFill" /> |
|
|
|
Stretch="UniformToFill" /> |
|
|
|
<ui:Button |
|
|
|
<ui:Button |
|
|
|
Appearance="Info" |
|
|
|
Appearance="Info" |
|
|
|
Command="{Binding OpenModelCommand}" |
|
|
|
Command="{Binding OpenModelCommand}" |
|
|
|
CommandParameter="{Binding}" |
|
|
|
CommandParameter="{Binding CivitModel}" |
|
|
|
HorizontalAlignment="Right" |
|
|
|
HorizontalAlignment="Right" |
|
|
|
Margin="0,16,8,0" |
|
|
|
Margin="0,16,8,0" |
|
|
|
VerticalAlignment="Top"> |
|
|
|
VerticalAlignment="Top"> |
|
|
@ -64,21 +63,21 @@ |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Margin="0,8,0,8" |
|
|
|
Margin="0,8,0,8" |
|
|
|
VerticalAlignment="Stretch" |
|
|
|
VerticalAlignment="Stretch" |
|
|
|
Visibility="{Binding DataContext.ImportCommand.IsRunning, Source={x:Reference CheckpointBrowserPg}, Converter={StaticResource BoolToVisibilityConverter}}" /> |
|
|
|
Visibility="{Binding ImportCommand.IsRunning, Converter={StaticResource BoolToVisibilityConverter}}" /> |
|
|
|
<StackPanel |
|
|
|
<StackPanel |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Orientation="Vertical" |
|
|
|
Orientation="Vertical" |
|
|
|
VerticalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Visibility="{Binding DataContext.ImportCommand.IsRunning, Source={x:Reference CheckpointBrowserPg}, Converter={StaticResource BoolToVisibilityConverter}}"> |
|
|
|
Visibility="{Binding ImportCommand.IsRunning, Converter={StaticResource BoolToVisibilityConverter}}"> |
|
|
|
<ui:ProgressRing |
|
|
|
<ui:ProgressRing |
|
|
|
HorizontalAlignment="Center" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
IsIndeterminate="False" |
|
|
|
IsIndeterminate="False" |
|
|
|
Progress="{Binding DataContext.ImportProgress, Source={x:Reference CheckpointBrowserPg}}" |
|
|
|
Progress="{Binding Value}" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
<TextBlock |
|
|
|
<TextBlock |
|
|
|
HorizontalAlignment="Center" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Margin="0,8,0,0" |
|
|
|
Margin="0,8,0,0" |
|
|
|
Text="{Binding ImportStatus, FallbackValue=Importing...}" |
|
|
|
Text="{Binding Text, FallbackValue=Importing...}" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
@ -88,8 +87,8 @@ |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<ui:Button |
|
|
|
<ui:Button |
|
|
|
Appearance="Primary" |
|
|
|
Appearance="Primary" |
|
|
|
Command="{Binding DataContext.ImportCommand, Source={x:Reference CheckpointBrowserPg}}" |
|
|
|
Command="{Binding ImportCommand}" |
|
|
|
CommandParameter="{Binding}" |
|
|
|
CommandParameter="{Binding CivitModel}" |
|
|
|
Content="Import" |
|
|
|
Content="Import" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Margin="0,8,0,0" /> |
|
|
|
Margin="0,8,0,0" /> |
|
|
|