Fix exit button name dissappearance

This commit is contained in:
nick5616 2022-03-18 10:07:18 -07:00
Родитель 8ac408bc8b
Коммит c4f501d41e
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -36,7 +36,7 @@
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button x:Name="ExitButton" x:Uid="ExitButton" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Right">
<Button x:Name="ExitButton" x:Uid="ExitButton" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Right" Click="Exit_Click">
<TextBlock FontFamily="Segoe MDL2 Assets" x:Uid="ExitButton" Text="&#xE711;" FontSize="30" VerticalAlignment="Center" />
<Button.Flyout>
<Flyout x:Name="ExitFlyout">
@ -89,7 +89,7 @@
</Grid>
<TextBlock Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="99" x:Uid="RemoteHost" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" AutomationProperties.HeadingLevel="Level2" Style="{StaticResource TitleTextBlockStyle}"/>
<ListView Grid.Row="6" x:Uid="ResultsListView" x:Name="ResultsListView" BorderBrush="AntiqueWhite" BorderThickness="1"
<ListView Grid.Row="6" x:Uid="ResultsListView" x:Name="ResultsListView" BorderBrush="{ThemeResource TextFillColorSecondary}" BorderThickness="1"
MinHeight="200" Margin="0,5,0,5"
ItemTemplate="{StaticResource ResultsListViewTemplate}" ScrollViewer.VerticalScrollMode="Enabled" ScrollViewer.VerticalScrollBarVisibility="Auto" IsItemClickEnabled="True" SelectionMode="Single" ItemClick="ResultsListView_ItemClick"/>
<Grid Grid.Row="8" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >

Просмотреть файл

@ -262,6 +262,11 @@ namespace Microsoft.FactoryOrchestrator.UWP
((App)Application.Current).Exit();
}
private void Exit_Click(object sender, RoutedEventArgs e)
{
AutomationProperties.SetName(ConfirmExit, "ConfirmExit");
}
private async void ValidateXMLButton_Click(object sender, RoutedEventArgs e)
{
var picker = new Windows.Storage.Pickers.FileOpenPicker