Skip to content

Commit

Permalink
added loading text
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadySK committed Oct 3, 2022
1 parent afbdd2a commit efb4320
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GbxMapBrowser/GbxInfoPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Panel.ZIndex="10" Style="{StaticResource DefaultUIStyle}" Grid.Row="0" FontWeight="Bold" Foreground="White" FontSize="20" Content="GBX Info:"/>
<Label x:Name="titleLabel" Panel.ZIndex="10" Style="{StaticResource DefaultUIStyle}" Grid.Row="0" FontWeight="Bold" Foreground="White" FontSize="20"/>
<TreeView x:Name="dataTreeView" Grid.Row="1" >
</TreeView>
</Grid>
Expand Down
4 changes: 4 additions & 0 deletions GbxMapBrowser/GbxInfoPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ private async void Page_Loaded(object sender, RoutedEventArgs e)
MessageBox.Show("An error happened while reading \"" + path + "\".\nError message: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
titleLabel.Content = "Loading...";
await Task.Delay(1000);

TreeViewItem curTreeViewItem = new TreeViewItem() { Header = "Challenge" };
curTreeViewItem.IsExpanded = true;
PopulateTreeView(null, curTreeViewItem, challenge);
await Task.CompletedTask;
titleLabel.Content = "GBX Preview:";

}

int maximumDepth = 5;
Expand Down

0 comments on commit efb4320

Please sign in to comment.