Archived
1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
FoxTube/FoxTube/Views/SettingsSections/AboutSection.xaml.cs
T
Michael Gordeev 787a6e9f48 Refactored core
UI navigation framework

Related Work Items: #408, #414, #416
2020-06-15 15:46:38 +03:00

28 lines
681 B
C#

using FoxTube.Utils;
using System;
using Windows.UI.Xaml;
using FoxTube.Pages;
using Windows.UI.Xaml.Controls;
namespace FoxTube.Views.SettingsSections
{
/// <summary>
/// About page
/// </summary>
public sealed partial class AboutSection : Page
{
public AboutSection()
{
InitializeComponent();
VersionLabel.Text = Metrics.CurrentVersion;
CopyrightsLabel.Text = CopyrightsLabel.Text.Replace("[year]", DateTime.Today.Year.ToString());
FeedbackButton.Visibility = FeedbackInterop.HasFeedbackHub ? Visibility.Visible : Visibility.Collapsed;
}
private void OpenFeedbackHub(object sender, RoutedEventArgs e) =>
FeedbackInterop.OpenFeedbackHub();
}
}