1+ <ui : DialogWindow x : Class =" Snyk.VisualStudio.Extension.TrustDialogWindow"
2+ x : Name =" TrustWindow"
3+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
7+ xmlns : toolkit =" clr-namespace:Community.VisualStudio.Toolkit;assembly=Community.VisualStudio.Toolkit"
8+ xmlns : ui =" clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0"
9+ mc : Ignorable =" d"
10+ WindowStartupLocation =" CenterScreen"
11+ IsCloseButtonEnabled =" True"
12+ HasHelpButton =" False"
13+ MinHeight =" 290" Height =" 290"
14+ MinWidth =" 500" Width =" 500"
15+ BorderBrush =" {x:Static SystemColors.WindowFrameBrush}" BorderThickness =" 1"
16+ WindowStyle =" None" ResizeMode =" NoResize" AllowsTransparency =" True"
17+ xmlns : catalog =" clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog"
18+ xmlns : imaging =" clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging"
19+ toolkit:Themes.UseVsTheme=" True"
20+ Title =" Snyk - This folder has not been trusted"
21+ MouseDown =" TrustDialogWindow_OnMouseDown" >
22+ <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 >
26+ <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" />
29+ </StackPanel >
30+ <Grid >
31+ <Grid .RowDefinitions>
32+ <RowDefinition Height =" auto" />
33+ <RowDefinition Height =" auto" />
34+ </Grid .RowDefinitions>
35+ <Grid Grid.Row=" 0" >
36+ <Grid .ColumnDefinitions>
37+ <ColumnDefinition Width =" *" />
38+ <ColumnDefinition Width =" 5*" />
39+ </Grid .ColumnDefinitions>
40+ <imaging : CrispImage Grid.Column=" 0" Width =" 50" Moniker =" {x:Static catalog:KnownMonikers.StatusSecurityWarning}" />
41+ <StackPanel VerticalAlignment =" Center" Grid.Column=" 1" Margin =" 0, 0, 5, 0" >
42+ <TextBlock FontSize =" 14" >This folder has not been trusted:</TextBlock >
43+ <TextBlock FontSize =" 14" FontWeight =" Bold" TextWrapping =" Wrap" Text =" {Binding ElementName=TrustWindow, Path=FolderPath}" />
44+ </StackPanel >
45+ </Grid >
46+ <StackPanel Grid.Row=" 1" Margin =" 5" >
47+ <TextBlock TextWrapping =" Wrap" >
48+ 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+ </TextBlock >
50+ <TextBlock >
51+ <LineBreak />
52+ <Hyperlink NavigateUri =" https://docs.snyk.io/ide-tools/visual-studio-extension/workspace-trust" RequestNavigate =" Hyperlink_OnRequestNavigate" >
53+ More information
54+ </Hyperlink >
55+ </TextBlock >
56+ </StackPanel >
57+ </Grid >
58+ </DockPanel >
59+ </ui : DialogWindow >
0 commit comments