|
1 | | -<pfui:DialogWindow x:Class="GitHub.VisualStudio.Views.Dialog.GitHubDialogWindow" |
| 1 | +<ui:DialogWindow x:Class="GitHub.VisualStudio.Views.Dialog.GitHubDialogWindow" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | | - xmlns:pfui="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.14.0" |
| 6 | + xmlns:ui="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.14.0" |
| 7 | + xmlns:shellControls="clr-namespace:Microsoft.VisualStudio.PlatformUI.Shell.Controls;assembly=Microsoft.VisualStudio.Shell.ViewManager" |
7 | 8 | xmlns:local="clr-namespace:GitHub.VisualStudio.Views" |
8 | 9 | xmlns:ghfvs="https://github.com/github/VisualStudio" |
9 | 10 | mc:Ignorable="d" |
|
39 | 40 | <local:ViewLocator x:Key="viewLocator"/> |
40 | 41 | <DataTemplate DataType="{x:Type ghfvs:ViewModelBase}"> |
41 | 42 | <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static vs:EnvironmentColors.ToolWindowBorderBrushKey}}"> |
42 | | - <ContentControl Content="{Binding Converter={StaticResource viewLocator}}"/> |
| 43 | + <DockPanel> |
| 44 | + <!-- close button and padding --> |
| 45 | + <shellControls:GlyphButton x:Uid="button_Close" |
| 46 | + x:Name="CloseButton" |
| 47 | + DockPanel.Dock="Top" |
| 48 | + Width="46" |
| 49 | + Height="33" |
| 50 | + HorizontalAlignment="Right" |
| 51 | + VerticalAlignment="Top" |
| 52 | + BorderBrush="Transparent" |
| 53 | + BorderThickness="0" |
| 54 | + Background="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonBrushKey}}" |
| 55 | + GlyphForeground="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonGlyphBrushKey}}" |
| 56 | + HoverBackground="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonHoverBrushKey}}" |
| 57 | + HoverForeground="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonHoverGlyphBrushKey}}" |
| 58 | + HoverBorderBrush="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonHoverBorderBrushKey}}" |
| 59 | + PressedBackground="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonDownBrushKey}}" |
| 60 | + PressedForeground="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonDownGlyphBrushKey}}" |
| 61 | + PressedBorderBrush="{DynamicResource {x:Static ui:ThemedDialogColors.WindowButtonDownBorderBrushKey}}" |
| 62 | + Click="CloseButton_Click"> |
| 63 | + <Path x:Uid="path_CloseButton" |
| 64 | + Width="16" |
| 65 | + Height="16" |
| 66 | + Fill="{Binding Path=(TextElement.Foreground), RelativeSource={RelativeSource Self}}" |
| 67 | + Data="F1M8.583,8L13,12.424 12.424,13 8,8.583 3.576,13 3,12.424 7.417,8 3,3.576 3.576,3 8,7.417 12.424,3 13,3.576z"/> |
| 68 | + </shellControls:GlyphButton> |
| 69 | + |
| 70 | + <!-- content --> |
| 71 | + <ContentControl Content="{Binding Converter={StaticResource viewLocator}}"/> |
| 72 | + </DockPanel> |
43 | 73 | </Border> |
44 | 74 | </DataTemplate> |
45 | 75 | </ResourceDictionary> |
46 | 76 | </Window.Resources> |
47 | | -</pfui:DialogWindow> |
| 77 | +</ui:DialogWindow> |
0 commit comments