|
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 | | - xmlns:cache="clr-namespace:GitHub.UI.Helpers;assembly=GitHub.UI" |
6 | | - xmlns:controls="clr-namespace:GitHub.VisualStudio.UI.Controls;assembly=GitHub.VisualStudio.UI" |
| 5 | + xmlns:ghfvs="https://github.com/github/VisualStudio" |
7 | 6 | xmlns:local="clr-namespace:GitHub.VisualStudio.Views.GitHubPane" |
8 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | | - xmlns:sampleData="clr-namespace:GitHub.SampleData;assembly=GitHub.App" |
10 | | - xmlns:ui="clr-namespace:GitHub.UI;assembly=GitHub.UI" |
11 | | - xmlns:uir="clr-namespace:GitHub.UI;assembly=GitHub.UI.Reactive" |
12 | | - xmlns:vm="clr-namespace:GitHub.ViewModels.GitHubPane;assembly=GitHub.App" |
13 | 8 | xmlns:prop="clr-namespace:GitHub.VisualStudio.UI;assembly=GitHub.VisualStudio.UI" |
14 | 9 | xmlns:markdig="clr-namespace:Markdig.Wpf;assembly=Markdig.Wpf" |
| 10 | + xmlns:vsui="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.14.0" |
15 | 11 | Background="{DynamicResource GitHubVsToolWindowBackground}" |
16 | 12 | Foreground="{DynamicResource GitHubVsWindowText}" |
17 | 13 | DataContext="{Binding ViewModel}" |
18 | 14 | d:DesignWidth="356" |
19 | 15 | d:DesignHeight="800" |
20 | | - mc:Ignorable="d" |
21 | | - xmlns:vsui="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.14.0"> |
| 16 | + mc:Ignorable="d"> |
22 | 17 | <d:DesignProperties.DataContext> |
23 | 18 | <Binding> |
24 | 19 | <Binding.Source> |
25 | | - <sampleData:PullRequestDetailViewModelDesigner SourceBranchDisplayName="shana/error-handling-a-ridiculously-long-branch-name-because-why-not" |
| 20 | + <ghfvs:PullRequestDetailViewModelDesigner SourceBranchDisplayName="shana/error-handling-a-ridiculously-long-branch-name-because-why-not" |
26 | 21 | TargetBranchDisplayName="master-is-always-stable" |
27 | 22 | CommentCount="10"> |
28 | 23 | <!-- |
29 | | - <sampleData:PullRequestDetailViewModelDesigner.CheckoutState> |
30 | | - <sampleData:PullRequestCheckoutStateDesigner Caption="Checkout error-handling/> |
31 | | - </sampleData:PullRequestDetailViewModelDesigner.CheckoutState> |
| 24 | + <ghfvs:PullRequestDetailViewModelDesigner.CheckoutState> |
| 25 | + <ghfvs:PullRequestCheckoutStateDesigner Caption="Checkout error-handling/> |
| 26 | + </ghfvs:PullRequestDetailViewModelDesigner.CheckoutState> |
32 | 27 | --> |
33 | | - <sampleData:PullRequestDetailViewModelDesigner.UpdateState> |
34 | | - <sampleData:PullRequestUpdateStateDesigner CommitsAhead="0" CommitsBehind="0" UpToDate="True"/> |
35 | | - </sampleData:PullRequestDetailViewModelDesigner.UpdateState> |
36 | | - <sampleData:PullRequestDetailViewModelDesigner.OperationError> |
| 28 | + <ghfvs:PullRequestDetailViewModelDesigner.UpdateState> |
| 29 | + <ghfvs:PullRequestUpdateStateDesigner CommitsAhead="0" CommitsBehind="0" UpToDate="True"/> |
| 30 | + </ghfvs:PullRequestDetailViewModelDesigner.UpdateState> |
| 31 | + <ghfvs:PullRequestDetailViewModelDesigner.OperationError> |
37 | 32 | Unable to connect to the internets over here! |
38 | | - </sampleData:PullRequestDetailViewModelDesigner.OperationError> |
39 | | - </sampleData:PullRequestDetailViewModelDesigner> |
| 33 | + </ghfvs:PullRequestDetailViewModelDesigner.OperationError> |
| 34 | + </ghfvs:PullRequestDetailViewModelDesigner> |
40 | 35 | </Binding.Source> |
41 | 36 | </Binding> |
42 | 37 | </d:DesignProperties.DataContext> |
43 | 38 |
|
44 | 39 | <Control.Resources> |
45 | 40 | <ResourceDictionary> |
46 | 41 | <ResourceDictionary.MergedDictionaries> |
47 | | - <cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio.UI;component/SharedDictionary.xaml" /> |
48 | | - <cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" /> |
49 | | - <cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI.Reactive;component/SharedDictionary.xaml" /> |
50 | | - <cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/Assets/Markdown.xaml" /> |
| 42 | + <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio.UI;component/SharedDictionary.xaml" /> |
| 43 | + <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" /> |
| 44 | + <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI.Reactive;component/SharedDictionary.xaml" /> |
| 45 | + <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/Assets/Markdown.xaml" /> |
51 | 46 | </ResourceDictionary.MergedDictionaries> |
52 | 47 |
|
53 | 48 | <Style x:Key="Separator" TargetType="Rectangle"> |
|
78 | 73 | <Setter Property="Foreground" Value="Red" /> |
79 | 74 | </Style> |
80 | 75 |
|
81 | | - <ui:AllCapsConverter x:Key="AllCaps"/> |
| 76 | + <ghfvs:AllCapsConverter x:Key="AllCaps"/> |
82 | 77 | </ResourceDictionary> |
83 | 78 | </Control.Resources> |
84 | 79 |
|
|
130 | 125 | <ColumnDefinition Width="*"/> |
131 | 126 | </Grid.ColumnDefinitions> |
132 | 127 |
|
133 | | - <ui:OcticonImage Grid.Column="0" VerticalAlignment="Center" Icon="git_branch" Height="15" Opacity="0.5" Margin="0 0 3 0" /> |
| 128 | + <ghfvs:OcticonImage Grid.Column="0" VerticalAlignment="Center" Icon="git_branch" Height="15" Opacity="0.5" Margin="0 0 3 0" /> |
134 | 129 | <Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" CornerRadius="2" Padding="5 1" Background="{DynamicResource GitHubBranchNameBackgroundBrush}"> |
135 | 130 | <TextBlock FontFamily="Consolas" TextTrimming="CharacterEllipsis" ToolTip="{Binding SourceBranchDisplayName, Mode=OneWay}" Text="{Binding SourceBranchDisplayName, Mode=OneWay}" /> |
136 | 131 | </Border> |
|
150 | 145 | </Grid.ColumnDefinitions> |
151 | 146 |
|
152 | 147 | <TextBlock Grid.Column="0" Opacity="0.5" VerticalAlignment="Center" |
153 | | - Text="{Binding Model.UpdatedAt, StringFormat={x:Static prop:Resources.UpdatedFormat}, Converter={ui:DurationToStringConverter}, Mode=OneWay}"/> |
| 148 | + Text="{Binding Model.UpdatedAt, StringFormat={x:Static prop:Resources.UpdatedFormat}, Converter={ghfvs:DurationToStringConverter}, Mode=OneWay}"/> |
154 | 149 |
|
155 | 150 | <Rectangle Grid.Column="1" Margin="5" Width="1" Height="12" VerticalAlignment="Top" Style="{DynamicResource Separator}" /> |
156 | 151 |
|
157 | 152 | <!-- Checkout pull request button --> |
158 | | - <ui:GitHubActionLink Command="{Binding Checkout}" |
| 153 | + <ghfvs:GitHubActionLink Command="{Binding Checkout}" |
159 | 154 | Content="{Binding CheckoutState.Caption}" |
160 | 155 | Grid.Column="2" |
161 | 156 | VerticalAlignment="Center" |
162 | 157 | TextTrimming="CharacterEllipsis" |
163 | | - Visibility="{Binding CheckoutState, Converter={ui:NullToVisibilityConverter}}" |
| 158 | + Visibility="{Binding CheckoutState, Converter={ghfvs:NullToVisibilityConverter}}" |
164 | 159 | ToolTip="{Binding CheckoutState.ToolTip}" |
165 | 160 | ToolTipService.ShowOnDisabled="True"/> |
166 | 161 |
|
167 | 162 | <!-- Pull/push buttons --> |
168 | 163 | <StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center" |
169 | | - Visibility="{Binding UpdateState.UpToDate, FallbackValue=Collapsed, Converter={ui:BooleanToInverseVisibilityConverter}}"> |
170 | | - <ui:OcticonImage Icon="arrow_down"/> |
| 164 | + Visibility="{Binding UpdateState.UpToDate, FallbackValue=Collapsed, Converter={ghfvs:BooleanToInverseVisibilityConverter}}"> |
| 165 | + <ghfvs:OcticonImage Icon="arrow_down"/> |
171 | 166 | <TextBlock Text="{Binding UpdateState.CommitsBehind}" VerticalAlignment="Center"/> |
172 | | - <ui:GitHubActionLink Content="Pull" |
| 167 | + <ghfvs:GitHubActionLink Content="Pull" |
173 | 168 | Command="{Binding Pull}" |
174 | 169 | Margin="4,0" |
175 | 170 | ToolTip="{Binding UpdateState.PullToolTip}" |
176 | 171 | ToolTipService.ShowOnDisabled="True" |
177 | 172 | VerticalAlignment="Center"/> |
178 | | - <ui:OcticonImage Icon="arrow_up"/> |
| 173 | + <ghfvs:OcticonImage Icon="arrow_up"/> |
179 | 174 | <TextBlock Text="{Binding UpdateState.CommitsAhead}" VerticalAlignment="Center"/> |
180 | | - <ui:GitHubActionLink Content="Push" |
| 175 | + <ghfvs:GitHubActionLink Content="Push" |
181 | 176 | Command="{Binding Push}" |
182 | 177 | Margin="4,0" |
183 | 178 | ToolTip="{Binding UpdateState.PushToolTip}" |
184 | 179 | ToolTipService.ShowOnDisabled="True" |
185 | 180 | VerticalAlignment="Center"/> |
186 | 181 | <!-- Sync submodules --> |
187 | | - <ui:OcticonImage Icon="package" |
188 | | - Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ui:BooleanToVisibilityConverter}}" /> |
| 182 | + <ghfvs:OcticonImage Icon="package" |
| 183 | + Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ghfvs:BooleanToVisibilityConverter}}" /> |
189 | 184 | <TextBlock Margin="4 0 0 0" Text="{Binding UpdateState.SubmodulesToSync}" VerticalAlignment="Center" |
190 | | - Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ui:BooleanToVisibilityConverter}}" /> |
191 | | - <ui:GitHubActionLink Content="Sync" |
| 185 | + Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ghfvs:BooleanToVisibilityConverter}}" /> |
| 186 | + <ghfvs:GitHubActionLink Content="Sync" |
192 | 187 | Command="{Binding SyncSubmodules}" |
193 | 188 | Margin="4 0" |
194 | 189 | ToolTip="{Binding UpdateState.SyncSubmodulesToolTip}" |
195 | | - Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ui:BooleanToVisibilityConverter}}" /> |
| 190 | + Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ghfvs:BooleanToVisibilityConverter}}" /> |
196 | 191 | </StackPanel> |
197 | 192 |
|
198 | 193 | <!-- Branch checked out and up-to-date --> |
199 | 194 | <TextBlock Grid.Column="2" VerticalAlignment="Center" TextWrapping="Wrap" |
200 | | - Visibility="{Binding UpdateState.UpToDate, FallbackValue=Collapsed, Converter={ui:BooleanToVisibilityConverter}}"> |
| 195 | + Visibility="{Binding UpdateState.UpToDate, FallbackValue=Collapsed, Converter={ghfvs:BooleanToVisibilityConverter}}"> |
201 | 196 | <TextBlock.Style> |
202 | 197 | <Style TargetType="TextBlock" BasedOn="{StaticResource CheckoutMessage}"> |
203 | 198 | <Setter Property="Visibility" Value="Collapsed"/> |
|
214 | 209 | </Style.Triggers> |
215 | 210 | </Style> |
216 | 211 | </TextBlock.Style> |
217 | | - <ui:OcticonImage Icon="check" Foreground="#6CC644" Margin="0 0 0 -4"/> |
| 212 | + <ghfvs:OcticonImage Icon="check" Foreground="#6CC644" Margin="0 0 0 -4"/> |
218 | 213 | <Run Text="{x:Static prop:Resources.LocalBranchUpToDate}"/> |
219 | 214 | </TextBlock> |
220 | 215 | </Grid> |
|
230 | 225 | VerticalAlignment="Center" |
231 | 226 | TextWrapping="Wrap" |
232 | 227 | Style="{StaticResource FlatReadOnlyTextBox}" |
233 | | - Visibility="{Binding OperationError, Converter={ui:NullToVisibilityConverter}}"/> |
| 228 | + Visibility="{Binding OperationError, Converter={ghfvs:NullToVisibilityConverter}}"/> |
234 | 229 | </Grid> |
235 | 230 |
|
236 | 231 | <Rectangle DockPanel.Dock="Top" Style="{StaticResource Separator}" Height="2" Margin="-8,5,-8,0"/> |
|
254 | 249 |
|
255 | 250 | <!-- Author and open time --> |
256 | 251 | <StackPanel Margin="0 5 0 0" Orientation="Horizontal"> |
257 | | - <controls:AccountAvatar Account="{Binding Model.Author}" |
| 252 | + <ghfvs:AccountAvatar Account="{Binding Model.Author}" |
258 | 253 | VerticalAlignment="Top" |
259 | 254 | Width="16" |
260 | 255 | Height="16"/> |
|
272 | 267 | Markdown="{Binding Body}"/> |
273 | 268 |
|
274 | 269 | <!-- View conversation on GitHub --> |
275 | | - <ui:GitHubActionLink Grid.Column="2" Grid.Row="2" Margin="0 6" Command="{Binding OpenOnGitHub}"> |
| 270 | + <ghfvs:GitHubActionLink Grid.Column="2" Grid.Row="2" Margin="0 6" Command="{Binding OpenOnGitHub}"> |
276 | 271 | View conversation on GitHub |
277 | | - </ui:GitHubActionLink> |
| 272 | + </ghfvs:GitHubActionLink> |
278 | 273 |
|
279 | 274 | <!-- Files changed --> |
280 | | - <ui:SectionControl Name="changesSection" |
| 275 | + <ghfvs:SectionControl Name="changesSection" |
281 | 276 | Grid.Row="4" |
282 | 277 | IsExpanded="True" |
283 | 278 | HeaderText="{Binding Files.ChangedFilesCount, StringFormat={x:Static prop:Resources.ChangesCountFormat}}" |
284 | 279 | Margin="0 5 10 0"> |
285 | 280 | <local:PullRequestFilesView DataContext="{Binding Files}"/> |
286 | | - </ui:SectionControl> |
| 281 | + </ghfvs:SectionControl> |
287 | 282 | </Grid> |
288 | 283 | </ScrollViewer> |
289 | 284 | </DockPanel> |
|
0 commit comments