|
34 | 34 |
|
35 | 35 | <!-- Button style with pressed effects -->
|
36 | 36 |
|
37 |
| - <Style x:Key="ButtonStyle" TargetType="{x:Type Button}"> |
| 37 | + <Style x:Key="ButtonStyle1" TargetType="{x:Type Button}"> |
38 | 38 | <Setter Property="Background" Value="{DynamicResource WhiteBrush}"/>
|
39 | 39 | <Setter Property="Template">
|
40 | 40 | <Setter.Value>
|
|
55 | 55 | </Style.Triggers>
|
56 | 56 | </Style>
|
57 | 57 |
|
| 58 | + <Style x:Key="ButtonStyle2" TargetType="{x:Type Button}"> |
| 59 | + <Setter Property="Background" Value="{DynamicResource WhiteBrush}"/> |
| 60 | + <Setter Property="Template"> |
| 61 | + <Setter.Value> |
| 62 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 63 | + <Border Background="{TemplateBinding Background}" BorderBrush="{DynamicResource GrayBrush5}" BorderThickness="1"> |
| 64 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 65 | + </Border> |
| 66 | + </ControlTemplate> |
| 67 | + </Setter.Value> |
| 68 | + </Setter> |
| 69 | + <Style.Triggers> |
| 70 | + <Trigger Property="IsMouseOver" Value="True"> |
| 71 | + <Setter Property="Background" Value="{DynamicResource GrayBrush7}"/> |
| 72 | + </Trigger> |
| 73 | + <Trigger Property="IsPressed" Value="True"> |
| 74 | + <Setter Property="Background" Value="{DynamicResource GrayBrush8}"/> |
| 75 | + </Trigger> |
| 76 | + </Style.Triggers> |
| 77 | + </Style> |
| 78 | + |
| 79 | + <Style x:Key="ToggleButtonStyle" TargetType="{x:Type ToggleButton}"> |
| 80 | + <Setter Property="Background" Value="{DynamicResource WhiteBrush}"/> |
| 81 | + <Setter Property="Template"> |
| 82 | + <Setter.Value> |
| 83 | + <ControlTemplate TargetType="{x:Type ToggleButton}"> |
| 84 | + <Border Background="{TemplateBinding Background}" BorderBrush="{DynamicResource GrayBrush5}" BorderThickness="{TemplateBinding BorderThickness}"> |
| 85 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 86 | + </Border> |
| 87 | + <ControlTemplate.Triggers> |
| 88 | + <Trigger Property="IsChecked" Value="False"> |
| 89 | + <Setter Property="BorderThickness" Value="0"/> |
| 90 | + </Trigger> |
| 91 | + <Trigger Property="IsChecked" Value="True"> |
| 92 | + <Setter Property="BorderThickness" Value="1"/> |
| 93 | + </Trigger> |
| 94 | + </ControlTemplate.Triggers> |
| 95 | + </ControlTemplate> |
| 96 | + </Setter.Value> |
| 97 | + </Setter> |
| 98 | + <Style.Triggers> |
| 99 | + <Trigger Property="IsMouseOver" Value="True"> |
| 100 | + <Setter Property="Background" Value="{DynamicResource GrayBrush7}"/> |
| 101 | + </Trigger> |
| 102 | + <Trigger Property="IsPressed" Value="True"> |
| 103 | + <Setter Property="Background" Value="{DynamicResource GrayBrush8}"/> |
| 104 | + </Trigger> |
| 105 | + </Style.Triggers> |
| 106 | + </Style> |
58 | 107 | <!--Button Images-->
|
59 | 108 |
|
60 | 109 | <Image x:Key="ImgReload" Source="/SPCode;component/Resources/Icons/icon-reload.png" Width="16"/>
|
|
361 | 410 | </ListViewItem>
|
362 | 411 | </ListView>
|
363 | 412 |
|
364 |
| - <Button x:Name="BtExpandCollapse" Style="{StaticResource ButtonStyle}" Content="{StaticResource ImgExpand}" |
| 413 | + <Button x:Name="BtExpandCollapse" Style="{StaticResource ButtonStyle1}" Content="{StaticResource ImgExpand}" |
365 | 414 | Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Right" Height="22" Width="22" Margin="0,3,2,0"
|
366 | 415 | Click="BtExpandCollapse_Click" ToolTip="Expand all directories"/>
|
367 | 416 |
|
368 |
| - <Button x:Name="BtRefreshDir" Style="{StaticResource ButtonStyle}" Content="{StaticResource ImgReload}" |
| 417 | + <Button x:Name="BtRefreshDir" Style="{StaticResource ButtonStyle1}" Content="{StaticResource ImgReload}" |
369 | 418 | Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Right" Height="22" Width="22" Margin="0,3,27,0"
|
370 | 419 | Click="BtRefreshDir_Click" ToolTip="Reload current directory"/>
|
371 | 420 |
|
372 | 421 | </Grid>
|
| 422 | + |
373 | 423 | <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="5" Background="{DynamicResource GrayBrush5}" />
|
374 |
| - <Button Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Width="30" Height="30" Margin="0,5,0,0" Style="{DynamicResource ButtonStyle}" Click="CloseErrorResultGrid"> |
| 424 | + |
| 425 | + <!-- Begin Lower Grids --> |
| 426 | + |
| 427 | + <!--Close Lower Grid Button--> |
| 428 | + <Button Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Width="30" Height="30" Margin="0,5,0,0" Style="{DynamicResource ButtonStyle1}" Click="CloseErrorResultGrid"> |
375 | 429 | <Canvas Width="10" Height="10" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
|
376 | 430 | <Path Width="10" Height="10" Stretch="Fill" Fill="{DynamicResource AccentColorBrush}" Data="F1 M 26.9166,22.1667L 37.9999,33.25L 49.0832,22.1668L 53.8332,26.9168L 42.7499,38L 53.8332,49.0834L 49.0833,53.8334L 37.9999,42.75L 26.9166,53.8334L 22.1666,49.0833L 33.25,38L 22.1667,26.9167L 26.9166,22.1667 Z "/>
|
377 | 431 | </Canvas>
|
378 | 432 | </Button>
|
379 |
| - <Grid Grid.Row="1" Margin="0,5,30,0"> |
| 433 | + |
| 434 | + <!-- Lower Grid --> |
| 435 | + |
| 436 | + <!--#region Lower Grid--> |
| 437 | + <Grid Grid.Row="1" Margin="0,5,0,0"> |
| 438 | + |
380 | 439 | <Grid.ColumnDefinitions>
|
381 | 440 | <ColumnDefinition Width="5*" />
|
382 | 441 | <ColumnDefinition Width="2*" />
|
383 | 442 | </Grid.ColumnDefinitions>
|
| 443 | + |
| 444 | + <!--Log TextBox--> |
384 | 445 | <TextBox x:Name="LogTextbox" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" TextWrapping="Wrap"
|
385 | 446 | Margin="5,0,0,0" IsReadOnly="True" AcceptsReturn="True" AcceptsTab="True" VerticalScrollBarVisibility="Auto"
|
386 | 447 | PreviewMouseRightButtonDown="LogTextbox_PreviewMouseRightButtonDown">
|
|
390 | 451 | </ContextMenu>
|
391 | 452 | </TextBox.Resources>
|
392 | 453 | </TextBox>
|
393 |
| - <GridSplitter Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="5" Background="LightGray" /> |
394 |
| - <DataGrid x:Name="ErrorResultGrid" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsReadOnly="True" |
395 |
| - SelectionMode="Single" AutoGenerateColumns="true" SelectionChanged="ErrorResultGrid_SelectionChanged"> |
| 454 | + |
| 455 | + <!--Grid Splitter between Log TextBox and Error Grid--> |
| 456 | + <GridSplitter Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="5" Background="{DynamicResource GrayBrush5}" /> |
| 457 | + |
| 458 | + <!--New Error Status Bar--> |
| 459 | + |
| 460 | + <!--Errors Button--> |
| 461 | + <ToggleButton x:Name="Status_ErrorButton" |
| 462 | + Style="{StaticResource ToggleButtonStyle}" |
| 463 | + HorizontalAlignment="Left" VerticalAlignment="Top" |
| 464 | + Margin="5,7,0,0" |
| 465 | + Click="Status_ErrorButton_Clicked"> |
| 466 | + <StackPanel Orientation="Horizontal"> |
| 467 | + <Image Source="/SPCode;component/Resources/Icons/icon-error.png" |
| 468 | + Width="16" |
| 469 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 470 | + Margin="5,5,3,4"/> |
| 471 | + <TextBlock x:Name="Status_ErrorText" |
| 472 | + HorizontalAlignment="Left" VerticalAlignment="Top" |
| 473 | + Margin="3,4,2,2"/> |
| 474 | + </StackPanel> |
| 475 | + </ToggleButton> |
| 476 | + |
| 477 | + <!--Warnings Button--> |
| 478 | + <ToggleButton x:Name="Status_WarningButton" |
| 479 | + Style="{StaticResource ToggleButtonStyle}" |
| 480 | + HorizontalAlignment="Left" VerticalAlignment="Top" |
| 481 | + Margin="100,7,0,0" |
| 482 | + Click="Status_WarningButton_Clicked"> |
| 483 | + <StackPanel Orientation="Horizontal"> |
| 484 | + <Image Source="/SPCode;component/Resources/Icons/icon-warning.png" |
| 485 | + Width="16" |
| 486 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 487 | + Margin="5,5,3,4"/> |
| 488 | + <TextBlock x:Name="Status_WarningText" |
| 489 | + HorizontalAlignment="Left" VerticalAlignment="Top" |
| 490 | + Margin="3,4,2,2"/> |
| 491 | + </StackPanel> |
| 492 | + </ToggleButton> |
| 493 | + |
| 494 | + <!--Copy Errors Button--> |
| 495 | + <Button x:Name="Status_CopyErrorsButton" |
| 496 | + HorizontalAlignment="Left" VerticalAlignment="Top" |
| 497 | + Margin="210,9,0,0" |
| 498 | + Style="{StaticResource ButtonStyle2}" |
| 499 | + Height="22" |
| 500 | + Width="99" |
| 501 | + Click="Status_CopyErrorsButton_Click"/> |
| 502 | + |
| 503 | + <!--Error DataGrid--> |
| 504 | + <DataGrid x:Name="ErrorResultGrid" |
| 505 | + Grid.Column="0" |
| 506 | + IsReadOnly="True" |
| 507 | + SelectionMode="Single" |
| 508 | + AutoGenerateColumns="true" |
| 509 | + SelectionChanged="ErrorResultGrid_SelectionChanged" Margin="0,40,0,0"> |
396 | 510 |
|
397 | 511 | <DataGrid.ItemContainerStyle>
|
398 | 512 | <Style TargetType="DataGridRow">
|
|
407 | 521 | <DataGridTextColumn x:Name="MenuC_Details" Header="Details" Width="9*" Binding="{Binding Details}" />
|
408 | 522 | </DataGrid.Columns>
|
409 | 523 | </DataGrid>
|
| 524 | + |
410 | 525 | </Grid>
|
| 526 | + <!--#endregion--> |
411 | 527 | </Grid>
|
412 | 528 |
|
413 | 529 | <Rectangle Grid.Row="2" x:Name="BlendEffectPlane" IsHitTestVisible="False" Opacity="0" Fill="{DynamicResource AccentColorBrush4}" Grid.ColumnSpan="3" />
|
|
0 commit comments