<UserControl x:Class="CloseableHeader"
             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"
             mc:Ignorable="d"
             d:DesignHeight="150" d:DesignWidth="300"  >

 

 

DesignHeight / DesignWidth

WPF / 실버라이트 작업을 할때 Grid 같은 부분에서 특정 폼(위치)에서

아래오 같이 자동으로 크기가 맞게 지정한다.

image

그렇게 되면 아래와 같이 보기가 디게 상그럽따

image  

그래서

임의의 값을 주면

d:DesignHeight="150" d:DesignWidth="300" 

image

image

이렇게 디자인하기가 수월해진다. 실제로 프로그램이 실행되면

image

위의 값처럼 실행 된다.

+ Recent posts