File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public MainWindow()
64
64
private void Timer_Tick ( object sender , EventArgs e )
65
65
{
66
66
ClockBox . Text = System . DateTime . Now . ToString ( "tt hh:mm" ) ;
67
- DateBox . Text = System . DateTime . Now . ToString ( "ddd MM/dd" , CultureInfo . InvariantCulture ) ;
67
+ DateBox . Text = System . DateTime . Now . ToString ( "MM/dd dddd" ) ;
68
68
69
69
}
70
70
private void OnCopy ( object sender , ExecutedRoutedEventArgs e )
@@ -363,6 +363,7 @@ public void WindowAnimator()
363
363
_settings . WindowLeft = Left ;
364
364
_settings . WindowTop = Top ;
365
365
iconsb . Begin ( SearchIcon ) ;
366
+ iconsb . Begin ( ClockPanel ) ;
366
367
sb . Begin ( FlowMainWindow ) ;
367
368
}
368
369
Original file line number Diff line number Diff line change 117
117
x : Key =" ClockPanel"
118
118
BasedOn =" {StaticResource BaseClockPanel}"
119
119
TargetType =" {x:Type StackPanel}" >
120
+ <Setter Property =" Margin" Value =" 0,0,62,0" />
120
121
<Setter Property =" Visibility" Value =" Visible" />
121
122
<Style .Triggers>
122
- <DataTrigger Binding =" {Binding ElementName=QueryTextBox, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" >
123
-
124
- <DataTrigger .EnterActions>
123
+ <MultiDataTrigger >
124
+ <MultiDataTrigger .Conditions>
125
+ <Condition Binding =" {Binding ElementName=QueryTextBox, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" />
126
+ <Condition Binding =" {Binding ElementName=ContextMenu, Path=Visibility}" Value =" Collapsed" />
127
+ <Condition Binding =" {Binding ElementName=History, Path=Visibility}" Value =" Collapsed" />
128
+ </MultiDataTrigger .Conditions>
129
+ <MultiDataTrigger .EnterActions>
125
130
<BeginStoryboard >
126
131
<Storyboard >
127
132
<DoubleAnimation
131
136
Duration =" 0:0:0.2" />
132
137
</Storyboard >
133
138
</BeginStoryboard >
134
- </DataTrigger .EnterActions>
135
- <DataTrigger .ExitActions>
139
+ </MultiDataTrigger .EnterActions>
140
+ <MultiDataTrigger .ExitActions>
136
141
<BeginStoryboard >
137
142
<Storyboard >
138
143
<DoubleAnimation
139
144
Storyboard.TargetProperty=" Opacity"
140
- From =" 1.0"
141
145
To =" 0.0"
142
146
Duration =" 0:0:0.2" />
143
147
</Storyboard >
144
148
</BeginStoryboard >
145
- </DataTrigger .ExitActions>
149
+ </MultiDataTrigger .ExitActions>
146
150
147
- </DataTrigger >
151
+ </MultiDataTrigger >
152
+ <DataTrigger Binding =" {Binding ElementName=QueryTextBox, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" />
148
153
149
154
</Style .Triggers>
150
155
You can’t perform that action at this time.
0 commit comments