Resources/XAML/FileReputation.xaml
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" FontSize="16"> <ScrollViewer> <Grid x:Name="ParentGrid"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Text="Use this page to assess a file's reputation with Microsoft Defender's built-in capabilities, powered by the Intelligent Security Graph. If Smart App Control is enabled or set to Evaluation mode, the results will be provided by Smart App Control. Otherwise, reputation verdicts from SmartScreen will be displayed. Administrator privileges are not required." FontSize="14" Margin="20,10,20,15" FontWeight="Normal" VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="Wrap"/> <Button x:Name="BrowseForFileButton" ToolTipService.InitialShowDelay="1000" Margin="15" Grid.Row="1" HorizontalAlignment="Center" ToolTip="Browse for a file to verify its reputation"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}" VerticalAlignment="Center" FontSize="20" Text=""/> <TextBlock Text="Browse for a File" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="8,0,8,0" FontWeight="SemiBold"/> </StackPanel> </Button> <StackPanel Orientation="Vertical" Grid.Row="2" Margin="0,0,0,15"> <StackPanel Orientation="Vertical" Margin="30,10,30,0"> <Label Content="File Reputation" Margin="0,10,10,5"/> <TextBox IsReadOnly="True" x:Name="FileReputationTextBlock" BorderThickness="0" ToolTip="The final verdict" /> </StackPanel> <StackPanel Orientation="Vertical" Margin="30,10,30,0"> <Label Content="Reputation Source" Margin="0,10,10,5"/> <TextBox IsReadOnly="True" x:Name="ReputationSourceTextBlock" BorderThickness="0" ToolTip="Whether it's from Smart App Control or Smart Screen" /> </StackPanel> <StackPanel Orientation="Vertical" Margin="30,10,30,0"> <Label Content="Validity Duration" Margin="0,10,10,5"/> <TextBox IsReadOnly="True" x:Name="ValidityDurationTextBlock" BorderThickness="0" ToolTip="The validity duration, something Microsoft Defender returns." /> </StackPanel> <StackPanel Orientation="Vertical" Margin="30,10,30,0"> <Label Content="File Handle" Margin="0,10,10,5"/> <TextBox IsReadOnly="True" x:Name="FileHandleTextBlock" BorderThickness="0" ToolTip="The selected File Handle" /> </StackPanel> <StackPanel Orientation="Vertical" Margin="30,10,30,0"> <Label Content="File Path" Margin="0,10,10,5"/> <TextBox IsReadOnly="True" x:Name="FilePathTextBlock" BorderThickness="0" ToolTip="The selected File Path" /> </StackPanel> </StackPanel> </Grid> </ScrollViewer> </UserControl> |