-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
812 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ private async Task HandleTaskActions(IBackgroundTaskInstance taskInstance) | |
} | ||
catch | ||
{ | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<ContentDialog | ||
x:Class="Chat.ContentDialogs.AboutContentDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Chat.ContentDialogs" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource SystemControlAcrylicElementBrush}" | ||
BorderBrush="{ThemeResource SystemControlForegroundBaseLowBrush}" | ||
Windows10version1809:CornerRadius="{StaticResource FluentDialogCorners}"> | ||
|
||
<ContentDialog.Resources> | ||
<Style TargetType="HyperlinkButton"> | ||
<Setter Property="ContentTemplate"> | ||
<Setter.Value> | ||
<DataTemplate> | ||
<TextBlock Text="{Binding}" /> | ||
</DataTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ContentDialog.Resources> | ||
|
||
<Grid> | ||
<Windows10version1809:Grid.BackgroundTransition> | ||
<BrushTransition /> | ||
</Windows10version1809:Grid.BackgroundTransition> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<!-- Title with back button --> | ||
<StackPanel Grid.Row="0" | ||
Orientation="Horizontal" | ||
Visibility="Visible" | ||
Padding="0,0,0,8" | ||
BorderBrush="{ThemeResource SystemControlBackgroundBaseLowBrush}" | ||
BorderThickness="0,0,0,1"> | ||
<Button Style="{ThemeResource FluentDialogButtonBackStyle}" | ||
Command="{x:Bind CloseDialogCommand}"/> | ||
<TextBlock x:Uid="About_Title" | ||
Text="About" | ||
Margin="12,0" | ||
VerticalAlignment="Center" | ||
Style="{ThemeResource FluentSubheaderTextStyle}"/> | ||
</StackPanel> | ||
|
||
<!-- Content --> | ||
<ScrollViewer Grid.Row="1"> | ||
<StackPanel Padding="0,12,0,0"> | ||
<!-- App info --> | ||
<StackPanel Margin="{ThemeResource DialogCategoryMargin}"> | ||
<Grid Margin="{ThemeResource DialogTitleMargin}"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*" /> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock Grid.Column="0" | ||
Grid.Row="0" | ||
Grid.RowSpan="2" | ||
Text="" | ||
Style="{ThemeResource FluentTitleIconStyle}"/> | ||
<!-- App Title --> | ||
<TextBlock Grid.Column="1" | ||
Grid.Row="0" | ||
Text="{x:Bind ViewModel.AppName}" | ||
Style="{ThemeResource FluentTitleTextStyle}" | ||
FontWeight="SemiBold"/> | ||
<!-- Version number --> | ||
<TextBlock Grid.Column="1" | ||
Grid.Row="1" | ||
Text="{x:Bind ViewModel.VersionNumber, Mode=OneWay}" | ||
Style="{ThemeResource CaptionTextBlockStyle}"/> | ||
</Grid> | ||
|
||
<!-- About Description --> | ||
<TextBlock Text="Chat, created and maintained by WOA Project, 2018-2019" | ||
x:Uid="About_Description" | ||
TextWrapping="Wrap" | ||
Margin="0,8,0,0"/> | ||
</StackPanel> | ||
|
||
<!-- Acknowledgements --> | ||
<StackPanel Margin="{StaticResource DialogCategoryMargin}"> | ||
<StackPanel Orientation="Horizontal" | ||
Margin="{ThemeResource DialogTitleMargin}"> | ||
<TextBlock Text="" | ||
Style="{ThemeResource FluentTitleIconStyle}" /> | ||
<TextBlock x:Uid="About_AcknowledgementsTitle" | ||
Text="Acknowledgements" | ||
Style="{StaticResource FluentTitleTextStyle}" /> | ||
</StackPanel> | ||
|
||
<!-- Intro --> | ||
<TextBlock x:Uid="About_AcknowledgementsIntro" | ||
Text="This app makes use of code from the following projects:" | ||
TextWrapping="Wrap" | ||
Margin="{StaticResource DialogSubtitleMargin}"/> | ||
|
||
<!-- Windows Community Toolkit --> | ||
<HyperlinkButton x:Uid="About_AcknowledgementsWct" | ||
Content="Windows Community Toolkit" | ||
NavigateUri="https://github.com/windows-toolkit/WindowsCommunityToolkit"/> | ||
|
||
<!-- FluBase --> | ||
<HyperlinkButton x:Uid="About_AcknowledgementsFlubase" | ||
Content="FLUI Framework" | ||
NavigateUri="https://github.com/Team-FLUI/FluiFramework"/> | ||
</StackPanel> | ||
|
||
|
||
<!-- Links --> | ||
<StackPanel Margin="{ThemeResource DialogCategoryMargin}"> | ||
<StackPanel Orientation="Horizontal" | ||
Margin="{ThemeResource DialogTitleMargin}"> | ||
<TextBlock Text="" | ||
Style="{ThemeResource FluentTitleIconStyle}"/> | ||
<TextBlock x:Uid="About_LinksTitle" | ||
Text="Links" | ||
Style="{ThemeResource FluentTitleTextStyle}" /> | ||
</StackPanel> | ||
|
||
<!-- GitHub Project --> | ||
<HyperlinkButton x:Uid="About_GitHubLink" | ||
Content="GitHub project" | ||
NavigateUri="https://github.com/WOA-Project/Chat"/> | ||
</StackPanel> | ||
</StackPanel> | ||
|
||
</ScrollViewer> | ||
|
||
<!-- Dialog background icon --> | ||
|
||
<FontIcon Grid.Row="1" | ||
Canvas.ZIndex="5" | ||
Visibility="Visible" | ||
Glyph="" | ||
FontSize="72" | ||
Foreground="{ThemeResource SystemControlForegroundBaseLowBrush}" | ||
HorizontalAlignment="Right" | ||
VerticalAlignment="Bottom"/> | ||
</Grid> | ||
</ContentDialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Chat.ViewModels; | ||
using GalaSoft.MvvmLight.Command; | ||
using System.Windows.Input; | ||
using Windows.UI.Xaml.Controls; | ||
|
||
// The Content Dialog item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 | ||
|
||
namespace Chat.ContentDialogs | ||
{ | ||
public sealed partial class AboutContentDialog : ContentDialog | ||
{ | ||
public AboutViewModel ViewModel { get; } = new AboutViewModel(); | ||
|
||
public AboutContentDialog() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private ICommand _closeDialogCommand; | ||
public ICommand CloseDialogCommand | ||
{ | ||
get | ||
{ | ||
if (_closeDialogCommand == null) | ||
{ | ||
_closeDialogCommand = new RelayCommand( | ||
() => | ||
{ | ||
Hide(); | ||
}); | ||
} | ||
return _closeDialogCommand; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.