first commit
This commit is contained in:
53
Yapper/MVVM/View/MainWindow.xaml
Normal file
53
Yapper/MVVM/View/MainWindow.xaml
Normal file
@@ -0,0 +1,53 @@
|
||||
<Window x:Class="Yapper.MainWindow"
|
||||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Yapper"
|
||||
xmlns:viewmodel="clr-namespace:YapperClient.MVVM.ViewModel"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
|
||||
<Window.DataContext>
|
||||
<viewmodel:MainViewModel/>
|
||||
</Window.DataContext>
|
||||
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<DockPanel>
|
||||
<TextBox Height="25"
|
||||
DockPanel.Dock="Top"
|
||||
Text="{Binding UserName, UpdateSourceTrigger=PropertyChanged}"
|
||||
/>
|
||||
<Button Height="25"
|
||||
DockPanel.Dock="Top"
|
||||
Content="connect"
|
||||
Command="{Binding ConnectToServerCommand}"
|
||||
/>
|
||||
<ListView
|
||||
ItemsSource="{Binding Users}"
|
||||
>
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding UserName}"/>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</DockPanel>
|
||||
|
||||
<StackPanel Grid.Column="1">
|
||||
<ListView Height="380"></ListView>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBox Height="55" Width="545" VerticalContentAlignment="Center"></TextBox>
|
||||
<Button Width="55" Content="send"/>
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
24
Yapper/MVVM/View/MainWindow.xaml.cs
Normal file
24
Yapper/MVVM/View/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Yapper
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user