Added ConnectionFailedMessage, Placeholder for Username,Chat,ChatsList
This commit is contained in:
17
PolyChat/Views/ConnectionFailedDialog.xaml
Normal file
17
PolyChat/Views/ConnectionFailedDialog.xaml
Normal file
@@ -0,0 +1,17 @@
|
||||
<ContentDialog x:Class="PolyChat.Views.ConnectionFailedDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="using:PolyChat.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
x:Name="MessageDialog"
|
||||
Title="Connection Failed"
|
||||
PrimaryButtonText="Retry"
|
||||
SecondaryButtonText="Abort"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<StackPanel>
|
||||
<TextBlock Text="Message:" Foreground="{ThemeResource SystemColorDisabledTextColor}" Margin="0 0 0 8"/>
|
||||
<TextBlock x:Name="textError" Foreground="{ThemeResource SystemErrorTextColor}"/>
|
||||
</StackPanel>
|
||||
</ContentDialog>
|
||||
26
PolyChat/Views/ConnectionFailedDialog.xaml.cs
Normal file
26
PolyChat/Views/ConnectionFailedDialog.xaml.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using PolyChat.Models;
|
||||
using PolyChat.Util;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Windows.UI.Popups;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
|
||||
|
||||
namespace PolyChat.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class ConnectionFailedDialog : ContentDialog
|
||||
{
|
||||
public ConnectionFailedDialog(string message)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
textError.Text = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="16"/>
|
||||
<RowDefinition Height="24"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox x:Name="input" KeyUp="OnKeyUp" PlaceholderText="Marco Sattler"/>
|
||||
<TextBlock Grid.Row="1" x:Name="textError" Text="Username cannot be empty" VerticalAlignment="Center" Foreground="{ThemeResource SystemErrorTextColor}"/>
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="24"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox x:Name="input" KeyUp="OnKeyUp" PlaceholderText="Partner Code"/>
|
||||
<TextBlock Grid.Row="1" x:Name="textSuccess" Text="Looking good" VerticalAlignment="Top" Foreground="{ThemeResource SystemAccentColor}" Visibility="Collapsed"/>
|
||||
<TextBlock Grid.Row="1" x:Name="textError" Text="Invalid or empty Code" VerticalAlignment="Top" Foreground="{ThemeResource SystemErrorTextColor}" Visibility="Collapsed"/>
|
||||
<TextBlock Grid.Row="1" x:Name="textSuccess" Text="Looking good" VerticalAlignment="Center" Foreground="{ThemeResource SystemAccentColor}" Visibility="Collapsed"/>
|
||||
<TextBlock Grid.Row="1" x:Name="textError" Text="Invalid or empty Code" VerticalAlignment="Center" Foreground="{ThemeResource SystemErrorTextColor}" Visibility="Visible"/>
|
||||
</Grid>
|
||||
</ContentDialog>
|
||||
|
||||
Reference in New Issue
Block a user