Skip to content

Commit

Permalink
Merge pull request #1076 from Genteure/feat/progress-improve
Browse files Browse the repository at this point in the history
Improve progress popup UX, show title and clear button at all time
  • Loading branch information
mohnjiles authored Jan 4, 2025
2 parents 35d42d6 + c211475 commit ebd04cb
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions StabilityMatrix.Avalonia/Views/ProgressManagerPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,26 @@
d:DesignWidth="450"
x:DataType="progress:ProgressManagerViewModel"
mc:Ignorable="d">
<ScrollViewer>
<Grid RowDefinitions="Auto, *">
<TextBlock
Grid.Row="0"
VerticalAlignment="Center"
FontSize="16"
Text="Downloads"
TextAlignment="Left"
TextDecorations="Underline" />
<Button
Grid.Row="0"
Margin="0,0,8,0"
Padding="4"
HorizontalAlignment="Right"
Classes="transparent"
Command="{Binding ClearDownloads}"
Content="Clear Finished"
IsVisible="{Binding !!ProgressItems.Count}" />
<Grid RowDefinitions="Auto, *">
<TextBlock
Grid.Row="0"
VerticalAlignment="Center"
FontSize="16"
Text="Downloads"
TextAlignment="Left"
TextDecorations="Underline" />
<Button
Grid.Row="0"
Margin="0,0,8,0"
Padding="4"
HorizontalAlignment="Right"
Classes="transparent"
Command="{Binding ClearDownloads}"
Content="Clear Finished"
IsVisible="{Binding !!ProgressItems.Count}" />

<ItemsControl
Grid.Row="1"
Margin="0,4,0,0"
ItemsSource="{Binding ProgressItems, Mode=OneWay}">
<ScrollViewer Grid.Row="1" Margin="0,4,0,0">
<ItemsControl ItemsSource="{Binding ProgressItems, Mode=OneWay}">
<ItemsControl.DataTemplates>

<DataTemplate DataType="{x:Type vmBase:PausableProgressItemViewModelBase}">
Expand Down Expand Up @@ -264,6 +261,6 @@
</DataTemplate>
</ItemsControl.DataTemplates>
</ItemsControl>
</Grid>
</ScrollViewer>
</ScrollViewer>
</Grid>
</controls:UserControlBase>

0 comments on commit ebd04cb

Please sign in to comment.