|
231 | 231 | </StackPanel> |
232 | 232 | </Border> |
233 | 233 |
|
234 | | - <!-- Tree View --> |
235 | | - <TreeView Grid.Row="1" |
236 | | - x:Name="ExplorerTreeView" |
237 | | - ItemsSource="{Binding Connections}" |
238 | | - Background="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowBackgroundKey}}" |
239 | | - BorderThickness="0" |
240 | | - ContextMenu="{StaticResource RootContextMenu}" |
241 | | - VirtualizingStackPanel.IsVirtualizing="True" |
242 | | - VirtualizingStackPanel.VirtualizationMode="Recycling" |
243 | | - theming:ImageThemingUtilities.ImageBackgroundColor="{DynamicResource {x:Static vsshell:VsColors.ToolWindowBackgroundKey}}"> |
| 234 | + <!-- Tree View Container with Watermark --> |
| 235 | + <Grid Grid.Row="1" Background="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowBackgroundKey}}"> |
| 236 | + <!-- Watermark Logo --> |
| 237 | + <Image Source="/CodingWithCalvin.CouchbaseExplorer;component/Resources/watermark.png" |
| 238 | + HorizontalAlignment="Stretch" |
| 239 | + VerticalAlignment="Center" |
| 240 | + Margin="20" |
| 241 | + Opacity="0.08" |
| 242 | + Stretch="Uniform" |
| 243 | + IsHitTestVisible="False" /> |
| 244 | + |
| 245 | + <!-- Tree View --> |
| 246 | + <TreeView x:Name="ExplorerTreeView" |
| 247 | + ItemsSource="{Binding Connections}" |
| 248 | + Background="Transparent" |
| 249 | + BorderThickness="0" |
| 250 | + ContextMenu="{StaticResource RootContextMenu}" |
| 251 | + VirtualizingStackPanel.IsVirtualizing="True" |
| 252 | + VirtualizingStackPanel.VirtualizationMode="Recycling" |
| 253 | + theming:ImageThemingUtilities.ImageBackgroundColor="{DynamicResource {x:Static vsshell:VsColors.ToolWindowBackgroundKey}}"> |
244 | 254 | <TreeView.ItemContainerStyle> |
245 | 255 | <Style TargetType="TreeViewItem"> |
246 | 256 | <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> |
|
307 | 317 | </Style.Triggers> |
308 | 318 | </Style> |
309 | 319 | </TreeView.ItemContainerStyle> |
310 | | - </TreeView> |
| 320 | + </TreeView> |
311 | 321 |
|
312 | | - <!-- Empty State --> |
313 | | - <TextBlock Grid.Row="1" |
314 | | - Text="Right-click to add a connection" |
315 | | - HorizontalAlignment="Center" |
316 | | - VerticalAlignment="Center" |
317 | | - FontStyle="Italic" |
318 | | - Foreground="{DynamicResource {x:Static vsshell:VsBrushes.GrayTextKey}}" |
319 | | - Visibility="{Binding Connections.Count, Converter={StaticResource CountToVisibilityConverter}, FallbackValue=Visible}" /> |
| 322 | + <!-- Empty State --> |
| 323 | + <TextBlock Text="Right-click to add a connection" |
| 324 | + HorizontalAlignment="Center" |
| 325 | + VerticalAlignment="Center" |
| 326 | + FontStyle="Italic" |
| 327 | + Foreground="{DynamicResource {x:Static vsshell:VsBrushes.GrayTextKey}}" |
| 328 | + Visibility="{Binding Connections.Count, Converter={StaticResource CountToVisibilityConverter}, FallbackValue=Visible}" |
| 329 | + IsHitTestVisible="False" /> |
| 330 | + </Grid> |
320 | 331 | </Grid> |
321 | 332 | </UserControl> |
0 commit comments