|
7 | 7 | xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
8 | 8 | xmlns:IconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
9 | 9 | xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
|
| 10 | + xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" |
10 | 11 | Dialog:DialogParticipation.Register="{Binding}"
|
11 | 12 | mc:Ignorable="d">
|
12 | 13 | <UserControl.Resources>
|
13 | 14 | <Converter:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
14 | 15 | <Converter:BooleanToStringConverter x:Key="BooleanToStringConverter" />
|
| 16 | + <Converter:BooleanReverseConverter x:Key="BooleanReverseConverter" /> |
15 | 17 | <Converter:PhysicalAddressToStringConverter x:Key="PhysicalAddressToStringConverter" />
|
16 | 18 | </UserControl.Resources>
|
17 | 19 | <Grid Margin="10">
|
|
20 | 22 | <RowDefinition Height="10" />
|
21 | 23 | <RowDefinition Height="*"/>
|
22 | 24 | <RowDefinition Height="Auto"/>
|
| 25 | + <RowDefinition Height="Auto" /> |
23 | 26 | <RowDefinition Height="10" />
|
24 | 27 | <RowDefinition Height="Auto"/>
|
25 | 28 | </Grid.RowDefinitions>
|
|
91 | 94 | </DataGrid.Columns>
|
92 | 95 | </DataGrid>
|
93 | 96 | <TextBlock Grid.Row="3" Foreground="{DynamicResource AccentColorBrush}" Text="{Binding StatusMessage}" Visibility="{Binding DisplayStatusMessage, Converter={StaticResource BooleanToVisibilityConverter}}" Style="{DynamicResource DefaultTextBlock}" Margin="0,10,0,0" />
|
94 |
| - <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right"> |
| 97 | + <Controls:MetroProgressBar Grid.Row="4" Margin="0,10,0,0" Foreground="{DynamicResource AccentColorBrush}" IsIndeterminate="True"> |
| 98 | + <Controls:MetroProgressBar.Style> |
| 99 | + <Style TargetType="{x:Type Controls:MetroProgressBar}"> |
| 100 | + <Style.Triggers> |
| 101 | + <DataTrigger Binding="{Binding IsRefreshing}" Value="False"> |
| 102 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 103 | + </DataTrigger> |
| 104 | + </Style.Triggers> |
| 105 | + </Style> |
| 106 | + </Controls:MetroProgressBar.Style> |
| 107 | + </Controls:MetroProgressBar> |
| 108 | + <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right"> |
95 | 109 | <Button Command="{Binding AddEntryCommand}" Style="{StaticResource ImageWithTextButton}">
|
96 | 110 | <Button.Content>
|
97 | 111 | <Grid>
|
|
150 | 164 | </Grid>
|
151 | 165 | </Button.Content>
|
152 | 166 | </Button>
|
153 |
| - <Button Command="{Binding RefreshCommand}" Style="{StaticResource ImageWithTextButton}" Margin="10,0,0,0"> |
| 167 | + <Button Command="{Binding RefreshCommand}" Style="{StaticResource ImageWithTextButton}" IsEnabled="{Binding IsRefreshing, Converter={StaticResource BooleanReverseConverter}}" Margin="10,0,0,0"> |
154 | 168 | <Button.Content>
|
155 | 169 | <Grid>
|
156 | 170 | <Grid.ColumnDefinitions>
|
|
0 commit comments