File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ public int Progress
22
22
}
23
23
24
24
private bool isProgressing = false ;
25
-
26
25
public bool IsProgressing
27
26
{
28
27
get => isProgressing ;
29
- set => SetProperty ( ref isProgressing , value ) ;
28
+ set
29
+ {
30
+ if ( SetProperty ( ref isProgressing , value ) )
31
+ OnPropertyChanged ( nameof ( Message ) ) ;
32
+ }
30
33
}
31
34
32
35
public string Title { get ; private set ; }
@@ -40,7 +43,12 @@ public ReturnResult Status
40
43
41
44
public FileOperationType Operation { get ; private set ; }
42
45
43
- public string Message { get ; private set ; }
46
+ private string message ;
47
+ public string Message {
48
+ // A workaround to avoid overlapping the progress bar (#12362)
49
+ get => isProgressing ? message + "\n " : message ;
50
+ private set => SetProperty ( ref message , value ) ;
51
+ }
44
52
45
53
public InfoBarSeverity InfoBarSeverity { get ; private set ; } = InfoBarSeverity . Informational ;
46
54
Original file line number Diff line number Diff line change 67
67
68
68
<ProgressBar
69
69
x:Name=" ProgressBar"
70
- Margin=" 0,0 ,12,12"
70
+ Margin=" 0,-24 ,12,12"
71
71
IsIndeterminate=" {x:Bind IsCancelled, Mode=OneWay}"
72
72
Visibility=" {x:Bind IsProgressing, Mode=OneWay}"
73
73
Value=" {x:Bind Progress, Mode=OneWay}" />
You can’t perform that action at this time.
0 commit comments