|
186 | 186 | <TextBlock Text="Specify Your Server URL" TextDecorations="Underline" Margin="0,15,0,5"/> |
187 | 187 | <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> |
188 | 188 | <TextBox Text="{Binding LoginUser.ServerUrl}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" Width="400" TextChanged="ServerUrlInput_TextChanged" KeyDown="UserLoginTextBox_KeyDown"/> |
189 | | - <Path Data="{StaticResource IconCheck}" Fill="Green" Margin="2,1,-25,0"> |
| 189 | + <Path Margin="2,1,-25,0"> |
190 | 190 | <Path.Style> |
191 | 191 | <Style TargetType="Path"> |
192 | | - <Setter Property="Visibility" Value="Collapsed"/> |
193 | 192 | <Style.Triggers> |
194 | 193 | <DataTrigger Binding="{Binding LoginServerInfo.IsAvailable}" Value="True"> |
195 | | - <Setter Property="Visibility" Value="Visible"/> |
| 194 | + <Setter Property="Data" Value="{StaticResource IconCheck}"/> |
| 195 | + <Setter Property="Fill" Value="Green"/> |
| 196 | + </DataTrigger> |
| 197 | + <DataTrigger Binding="{Binding LoginServerInfo.HasError}" Value="True"> |
| 198 | + <Setter Property="Data" Value="{StaticResource IconErrorCircle}"/> |
| 199 | + <Setter Property="Fill" Value="IndianRed"/> |
| 200 | + <Setter Property="ToolTip" Value="{Binding LoginServerInfo.ErrorMessage}"/> |
| 201 | + <Setter Property="Cursor" Value="Help"/> |
196 | 202 | </DataTrigger> |
197 | 203 | </Style.Triggers> |
198 | 204 | </Style> |
|
245 | 251 | <TextBlock Text="Specify Your Server URL" TextDecorations="Underline" Margin="0,15,0,5"/> |
246 | 252 | <StackPanel Orientation="Horizontal"> |
247 | 253 | <TextBox Text="{Binding SignupUser.ServerUrl}" mah:ControlsHelper.CornerRadius="5" Width="400" BorderThickness="2" TextChanged="ServerUrlInput_TextChanged" KeyDown="UserRegistrationTextBox_KeyDown"/> |
248 | | - <Path Data="{StaticResource IconCheck}" Fill="Green" Margin="2,1,-25,0"> |
| 254 | + <Path Margin="2,1,-25,0"> |
249 | 255 | <Path.Style> |
250 | 256 | <Style TargetType="Path"> |
251 | | - <Setter Property="Visibility" Value="Collapsed"/> |
252 | 257 | <Style.Triggers> |
253 | 258 | <DataTrigger Binding="{Binding SignUpServerInfo.IsAvailable}" Value="True"> |
254 | | - <Setter Property="Visibility" Value="Visible"/> |
| 259 | + <Setter Property="Data" Value="{StaticResource IconCheck}"/> |
| 260 | + <Setter Property="Fill" Value="Green"/> |
| 261 | + </DataTrigger> |
| 262 | + <DataTrigger Binding="{Binding SignUpServerInfo.HasError}" Value="True"> |
| 263 | + <Setter Property="Data" Value="{StaticResource IconErrorCircle}"/> |
| 264 | + <Setter Property="Fill" Value="IndianRed"/> |
| 265 | + <Setter Property="ToolTip" Value="{Binding SignUpServerInfo.ErrorMessage}"/> |
| 266 | + <Setter Property="Cursor" Value="Help"/> |
255 | 267 | </DataTrigger> |
256 | 268 | </Style.Triggers> |
257 | 269 | </Style> |
|
401 | 413 | </StackPanel> |
402 | 414 | <Button Style="{StaticResource ButtonWrapper}" Height="30" Width="30" Cursor="Hand" Click="RemoveAdditionalRequestHeader_Click"> |
403 | 415 | <Grid Style="{DynamicResource HoverEffect}" Background="Transparent" RenderTransformOrigin="0.5,0.5"> |
404 | | - <Path Data="m11.25 4.75l-6.5 6.5m0-6.5l6.5 6.5" Stroke="IndianRed" StrokeThickness="2"> |
| 416 | + <Path Data="{StaticResource IconErrorCross}" Stroke="IndianRed" StrokeThickness="2"> |
405 | 417 | <Path.RenderTransform> |
406 | 418 | <ScaleTransform ScaleX="2" ScaleY="2"/> |
407 | 419 | </Path.RenderTransform> |
|
0 commit comments