787a6e9f48
UI navigation framework Related Work Items: #408, #414, #416
28 lines
681 B
C#
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();
|
|
}
|
|
}
|