Add project files.
This commit is contained in:
18
PolyChat/Views/NewChatDialog.xaml
Normal file
18
PolyChat/Views/NewChatDialog.xaml
Normal file
@@ -0,0 +1,18 @@
|
||||
<ContentDialog x:Class="PolyChat.Views.NewChatDialog"
|
||||
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="ContentDialog"
|
||||
Title="Connect to"
|
||||
PrimaryButtonClick="OnConnect"
|
||||
PrimaryButtonText="Connect"
|
||||
SecondaryButtonClick="OnClose"
|
||||
SecondaryButtonText="Cancel"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
<TextBox x:Name="inputIP" PlaceholderText="192.168.1.1" VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</ContentDialog>
|
||||
35
PolyChat/Views/NewChatDialog.xaml.cs
Normal file
35
PolyChat/Views/NewChatDialog.xaml.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using PolyChat.Models;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
// 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 NewChatDialog : ContentDialog
|
||||
{
|
||||
public NewChatDialog()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
public string getText()
|
||||
{
|
||||
return inputIP.Text;
|
||||
}
|
||||
|
||||
public void OnConnect(ContentDialog sender, ContentDialogButtonClickEventArgs args)
|
||||
{
|
||||
}
|
||||
|
||||
public void OnClose(ContentDialog sender, ContentDialogButtonClickEventArgs args)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user