File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 28
28
mc : Ignorable =" d" >
29
29
<!-- IsSynchronizedWithCurrentItem: http://stackoverflow.com/a/7833798/2833083 -->
30
30
31
+ <ListBox .Resources>
32
+ <BooleanToVisibilityConverter x : Key =" BooleanToVisibilityConverter" />
33
+ </ListBox .Resources>
34
+
31
35
<ListBox .ItemTemplate>
32
36
<DataTemplate >
33
37
<Button HorizontalAlignment =" Stretch" >
115
119
x : Name =" progressbarResult"
116
120
Foreground =" {Binding Result.ProgressBarColor}"
117
121
Style =" {DynamicResource ProgressBarResult}"
118
- Value =" {Binding Result.ProgressBarValue}" />
122
+ Value =" {Binding Result.ProgressBarValue}"
123
+ Visibility =" {Binding Result.IsProgressBarVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />
119
124
<TextBlock
120
125
x : Name =" Title"
121
126
VerticalAlignment =" Center"
Original file line number Diff line number Diff line change 3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
4
xmlns : system =" clr-namespace:System;assembly=mscorlib"
5
5
xmlns : userSettings =" clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure" >
6
-
7
- <BooleanToVisibilityConverter x : Key =" BooleanToVisibilityConverter" />
8
-
6
+
9
7
<!-- Further font customisations are dynamically loaded in Theme.cs -->
10
8
<Style x : Key =" BaseQueryBoxStyle" TargetType =" {x:Type TextBox}" >
11
9
<Setter Property =" BorderThickness" Value =" 0" />
91
89
<Setter Property =" Minimum" Value =" 0" />
92
90
<Setter Property =" Visibility" Value =" Visible" />
93
91
<Setter Property =" Foreground" Value =" #26a0da " />
94
- <Setter Property =" Visibility" Value =" {Binding Result.IsProgressBarVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />
95
92
</Style >
96
93
97
94
<Style x : Key =" BaseItemTitleStyle" TargetType =" {x:Type TextBlock}" >
You can’t perform that action at this time.
0 commit comments