markus / TEST_WPF / MainWindow.xaml @ fd4e6a36
이력 | 보기 | 이력해설 | 다운로드 (2.53 KB)
1 |
<Window
|
---|---|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 |
xmlns:local="clr-namespace:TEST_WPF" |
7 |
xmlns:ViewModels="clr-namespace:TEST_WPF.TalkPane" |
8 |
x:Class="TEST_WPF.MainWindow" d:DesignWidth="500" Width="400" |
9 |
mc:Ignorable="d" d:DataContext="{d:DesignInstance ViewModels:MessageViewModel, IsDesignTimeCreatable=True}" |
10 |
Title="MainWindow" Height="768" MaxWidth="600" > |
11 |
<Window.Resources>
|
12 |
</Window.Resources>
|
13 |
<Grid > |
14 |
<!--<DataGrid ItemsSource="{Binding MessageSet}" AutoGenerateColumns="True"/>-->
|
15 |
<Grid.RowDefinitions>
|
16 |
<RowDefinition Height="*"/> |
17 |
<RowDefinition Height="80"/> |
18 |
</Grid.RowDefinitions>
|
19 |
|
20 |
<ScrollViewer BorderThickness="0" Background="#e9ecf2" HorizontalScrollBarVisibility="Disabled" IsTabStop="False"> |
21 |
<ItemsControl ItemsSource="{Binding MessageSet, Mode=TwoWay}" x:Name="lstMessage"> |
22 |
<ItemsControl.ItemTemplate>
|
23 |
<DataTemplate>
|
24 |
<!--<TextBlock Text="{Binding UserName}"/>-->
|
25 |
<local:MessageContentPresenter Content="{Binding}"/> |
26 |
</DataTemplate>
|
27 |
</ItemsControl.ItemTemplate>
|
28 |
</ItemsControl>
|
29 |
</ScrollViewer>
|
30 |
|
31 |
<Border BorderBrush="#e0e2e2" BorderThickness="0,2,0,0" Grid.Row="1" Background="#fbfcfd"> |
32 |
<Grid>
|
33 |
<Grid.ColumnDefinitions>
|
34 |
<ColumnDefinition Width="Auto"/> |
35 |
<ColumnDefinition Width="*"/> |
36 |
<ColumnDefinition Width="100"/> |
37 |
</Grid.ColumnDefinitions>
|
38 |
|
39 |
<StackPanel Orientation="Horizontal"> |
40 |
<Image Source="TalkPane/clip.png" Width="24" Height="24" Margin="5,0"/> |
41 |
<Image Source="TalkPane/frame-landscape.png" Width="24" Height="24" Margin="5,0"/> |
42 |
</StackPanel>
|
43 |
<TextBlock Text="Type your Message..." VerticalAlignment="Center" Grid.Column="1" Foreground="#888d91" Margin="10,0"/> |
44 |
<Border Grid.Column="2" Background="#616d7a" CornerRadius="5" Margin="10"> |
45 |
<Button Background="Transparent" BorderThickness="0" Foreground="White" Content="Send"/> |
46 |
</Border>
|
47 |
</Grid>
|
48 |
</Border>
|
49 |
</Grid>
|
50 |
</Window>
|
51 |
|