Skip to content

Commit 719580b

Browse files
committed
Improve progress popup UX, show title and clear button at all time
1 parent d34603c commit 719580b

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

StabilityMatrix.Avalonia/Views/ProgressManagerPage.axaml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,26 @@
1515
d:DesignWidth="450"
1616
x:DataType="progress:ProgressManagerViewModel"
1717
mc:Ignorable="d">
18-
<ScrollViewer>
19-
<Grid RowDefinitions="Auto, *">
20-
<TextBlock
21-
Grid.Row="0"
22-
VerticalAlignment="Center"
23-
FontSize="16"
24-
Text="Downloads"
25-
TextAlignment="Left"
26-
TextDecorations="Underline" />
27-
<Button
28-
Grid.Row="0"
29-
Margin="0,0,8,0"
30-
Padding="4"
31-
HorizontalAlignment="Right"
32-
Classes="transparent"
33-
Command="{Binding ClearDownloads}"
34-
Content="Clear Finished"
35-
IsVisible="{Binding !!ProgressItems.Count}" />
18+
<Grid RowDefinitions="Auto, *">
19+
<TextBlock
20+
Grid.Row="0"
21+
VerticalAlignment="Center"
22+
FontSize="16"
23+
Text="Downloads"
24+
TextAlignment="Left"
25+
TextDecorations="Underline" />
26+
<Button
27+
Grid.Row="0"
28+
Margin="0,0,8,0"
29+
Padding="4"
30+
HorizontalAlignment="Right"
31+
Classes="transparent"
32+
Command="{Binding ClearDownloads}"
33+
Content="Clear Finished"
34+
IsVisible="{Binding !!ProgressItems.Count}" />
3635

37-
<ItemsControl
38-
Grid.Row="1"
39-
Margin="0,4,0,0"
40-
ItemsSource="{Binding ProgressItems, Mode=OneWay}">
36+
<ScrollViewer Grid.Row="1" Margin="0,4,0,0">
37+
<ItemsControl ItemsSource="{Binding ProgressItems, Mode=OneWay}">
4138
<ItemsControl.DataTemplates>
4239

4340
<DataTemplate DataType="{x:Type vmBase:PausableProgressItemViewModelBase}">
@@ -264,6 +261,6 @@
264261
</DataTemplate>
265262
</ItemsControl.DataTemplates>
266263
</ItemsControl>
267-
</Grid>
268-
</ScrollViewer>
264+
</ScrollViewer>
265+
</Grid>
269266
</controls:UserControlBase>

0 commit comments

Comments
 (0)