■ Page 엘리먼트의 WindowWidth/WindowHeight/WindowTitle 속성을 사용하는 방법을 보여준다.
▶ MainPage.xaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<Page x:Class="TestProject.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowWidth="800" WindowHeight="600" WindowTitle="Page 엘리먼트 : WindowWidth/WindowHeight/WindowTitle 속성 사용하기"> <Grid> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"> Hello, from MainPage! </TextBlock> </Grid> </Page> |
▶ MainWindow.xaml
1 2 3 4 5 6 7 8 9 10 11 |
<NavigationWindow Name="window" x:Class="TestProject.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="400" FontFamily="나눔고딕코딩" FontSize="16"> </NavigationWindow> |