contact.xmal

<Page x:Class="BikeShop.Contact"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:BikeShop"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      Title="Contact">

    <Grid Margin="0,0,-51,-25" Background="#FFC7C7C7">
        <TextBox Height="23" Margin="66,9,57,0" TextWrapping="Wrap"  VerticalAlignment="Top"/>
        <TextBox Margin="66,37,57,32" TextWrapping="Wrap" Background="White"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" Text="Sender" VerticalAlignment="Top" Height="22" Width="48"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,37,0,0" TextWrapping="Wrap" Text="Message" VerticalAlignment="Top"/>

    </Grid>
</Page>

 

MainWindow.xmal

<Window x:Class="BikeShop.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:BikeShop"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Frame Source="\Contact.xaml"/>
        <!--<Frame Source="\TestPage.xaml"/>-->
    </Grid>
</Window>

WPF MVVM 7일만에 배우기 - 실습#1 (page) (tistory.com)

+ Recent posts