|
1 | 1 | <ui:DialogWindow x:Class="Snyk.VisualStudio.Extension.TrustDialogWindow" |
2 | | - x:Name="trustDialogWindow" |
| 2 | + x:Name="TrustWindow" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
10 | 10 | WindowStartupLocation="CenterScreen" |
11 | 11 | IsCloseButtonEnabled="True" |
12 | 12 | HasHelpButton="False" |
13 | | - MinHeight="290" Height="290" |
| 13 | + MinHeight="290" Height="290" |
14 | 14 | MinWidth="500" Width="500" |
15 | 15 | BorderBrush="{x:Static SystemColors.WindowFrameBrush}" BorderThickness="1" |
16 | 16 | WindowStyle="None" ResizeMode="NoResize" AllowsTransparency="True" |
|
19 | 19 | toolkit:Themes.UseVsTheme="True" |
20 | 20 | Title="Snyk - This folder has not been trusted" |
21 | 21 | MouseDown="TrustDialogWindow_OnMouseDown"> |
| 22 | + <!--This file is duplicated between the extension projects rather than shared in the shared project. |
| 23 | + This is due to differences in imports versions that cannot be resolved without duplication.--> |
22 | 24 | <DockPanel Margin="10"> |
23 | | - <Button DockPanel.Dock="Top" HorizontalAlignment="Right" Click="DoNotTrustButton_OnClick" MinWidth="1" MinHeight="1" Width="35" Margin="0" Padding="0"> |
24 | | - <imaging:CrispImage Moniker="{x:Static catalog:KnownMonikers.Close}"/> |
| 25 | + <Button DockPanel.Dock="Top" HorizontalAlignment="Right" Click="DoNotTrustButton_OnClick" MinWidth="1" |
| 26 | + MinHeight="1" Width="35" Margin="0" Padding="0"> |
| 27 | + <imaging:CrispImage Moniker="{x:Static catalog:KnownMonikers.Close}" /> |
25 | 28 | </Button> |
26 | 29 | <StackPanel HorizontalAlignment="Right" DockPanel.Dock="Bottom" Orientation="Horizontal"> |
27 | | - <Button x:Name="TrustButton" Margin="5, 5" Content="Trust folder and continue" Click="TrustButton_OnClick"/> |
28 | | - <Button x:Name="DoNotTrustButton" Margin="5, 5" Content="Don't scan" Click="DoNotTrustButton_OnClick"/> |
| 30 | + <Button x:Name="TrustButton" Margin="5, 5" Content="Trust folder and continue" Click="TrustButton_OnClick" /> |
| 31 | + <Button x:Name="DoNotTrustButton" Margin="5, 5" Content="Don't scan" Click="DoNotTrustButton_OnClick" /> |
29 | 32 | </StackPanel> |
30 | 33 | <Grid> |
31 | 34 | <Grid.RowDefinitions> |
32 | | - <RowDefinition Height="auto"/> |
33 | | - <RowDefinition Height="auto"/> |
| 35 | + <RowDefinition Height="auto" /> |
| 36 | + <RowDefinition Height="auto" /> |
34 | 37 | </Grid.RowDefinitions> |
35 | 38 | <Grid Grid.Row="0"> |
36 | 39 | <Grid.ColumnDefinitions> |
37 | | - <ColumnDefinition Width="*"/> |
38 | | - <ColumnDefinition Width="5*"/> |
| 40 | + <ColumnDefinition Width="*" /> |
| 41 | + <ColumnDefinition Width="5*" /> |
39 | 42 | </Grid.ColumnDefinitions> |
40 | | - <imaging:CrispImage Grid.Column="0" Width="50" Moniker="{x:Static catalog:KnownMonikers.StatusSecurityWarning}"/> |
| 43 | + <imaging:CrispImage Grid.Column="0" Width="50" |
| 44 | + Moniker="{x:Static catalog:KnownMonikers.StatusSecurityWarning}" /> |
41 | 45 | <StackPanel VerticalAlignment="Center" Grid.Column="1" Margin="0, 0, 5, 0"> |
42 | 46 | <TextBlock FontSize="14">This folder has not been trusted:</TextBlock> |
43 | | - <TextBlock FontSize="14" FontWeight="Bold" TextWrapping="Wrap" Text="{Binding ElementName=TrustWindow, Path=FolderPath}"/> |
| 47 | + <TextBlock FontSize="14" FontWeight="Bold" TextWrapping="Wrap" |
| 48 | + Text="{Binding ElementName=TrustWindow, Path=FolderPath}" /> |
44 | 49 | </StackPanel> |
45 | 50 | </Grid> |
46 | 51 | <StackPanel Grid.Row="1" Margin="5"> |
47 | 52 | <TextBlock TextWrapping="Wrap"> |
48 | 53 | When scanning folder files for vulnerabilities, Snyk may automatically execute code such as invoking the package manager to get dependency information. You should only scan folders you trust. |
49 | 54 | </TextBlock> |
50 | 55 | <TextBlock> |
51 | | - <LineBreak/> |
52 | | - <Hyperlink NavigateUri="https://docs.snyk.io/ide-tools/visual-studio-extension/workspace-trust" RequestNavigate="Hyperlink_OnRequestNavigate"> |
| 56 | + <LineBreak /> |
| 57 | + <Hyperlink NavigateUri="https://docs.snyk.io/ide-tools/visual-studio-extension/workspace-trust" |
| 58 | + RequestNavigate="Hyperlink_OnRequestNavigate"> |
53 | 59 | More information |
54 | 60 | </Hyperlink> |
55 | 61 | </TextBlock> |
|
0 commit comments