InternalPage.xaml
1 <?xml version="1.0" encoding="utf-8" ?> 2 <Page 3 x:Class="Microsoft.CmdPal.UI.Settings.InternalPage" 4 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 5 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 6 xmlns:controls="using:CommunityToolkit.WinUI.Controls" 7 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 8 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 9 xmlns:ui="using:CommunityToolkit.WinUI" 10 mc:Ignorable="d"> 11 12 <Grid> 13 <Grid.RowDefinitions> 14 <RowDefinition Height="Auto" /> 15 <RowDefinition Height="*" /> 16 </Grid.RowDefinitions> 17 <ScrollViewer Grid.Row="1"> 18 <Grid Padding="16"> 19 <StackPanel 20 MaxWidth="1000" 21 HorizontalAlignment="Stretch" 22 Spacing="{StaticResource SettingsCardSpacing}"> 23 24 <TextBlock Style="{StaticResource BodyTextBlockStyle}" Text="Tools on this page are for internal use only. This page is not visible in CI builds." /> 25 26 <!-- Exception Handling Section --> 27 <TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" Text="Exception Handling" /> 28 <controls:SettingsExpander 29 Description="Actions for testing global exception handling from the application" 30 Header="Throw exceptions" 31 HeaderIcon="{ui:FontIcon Glyph=}" 32 IsExpanded="True"> 33 <controls:SettingsExpander.Items> 34 <controls:SettingsCard Header="Throw an unhandled exception from the UI thread"> 35 <Button Click="ThrowPlainMainThreadException_Click" Content="Throw" /> 36 </controls:SettingsCard> 37 <controls:SettingsCard Header="Throw an unhandled exception from the UI thread (with PII)"> 38 <Button Click="ThrowPlainMainThreadExceptionPii_Click" Content="Throw" /> 39 </controls:SettingsCard> 40 <controls:SettingsCard Description="Throw with delay, when the task is collected by the GC" Header="Throw unobserved exception from a task"> 41 <Button Click="ThrowExceptionInUnobservedTask_Click" Content="Throw" /> 42 </controls:SettingsCard> 43 </controls:SettingsExpander.Items> 44 </controls:SettingsExpander> 45 46 <!-- Diagnostics Section --> 47 <TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" Text="Diagnostics" /> 48 <controls:SettingsCard 49 x:Name="LogsSettingsCard" 50 Header="Logs folder" 51 HeaderIcon="{ui:FontIcon Glyph=}"> 52 <Button Click="OpenLogsCardClicked" Content="Open folder" /> 53 </controls:SettingsCard> 54 <controls:SettingsCard 55 x:Name="CurrentLogFileSettingsCard" 56 Header="Current log file" 57 HeaderIcon="{ui:FontIcon Glyph=}"> 58 <Button Click="OpenCurrentLogCardClicked" Content="Open log" /> 59 </controls:SettingsCard> 60 61 <!-- Data Section --> 62 <TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" Text="Data and Files" /> 63 <controls:SettingsCard 64 x:Name="ConfigurationFolderSettingsCard" 65 Header="Configuration folder" 66 HeaderIcon="{ui:FontIcon Glyph=}"> 67 <Button Click="OpenConfigFolderCardClick" Content="Open folder" /> 68 </controls:SettingsCard> 69 70 71 </StackPanel> 72 </Grid> 73 </ScrollViewer> 74 </Grid> 75 </Page>