여러 탐색 페이지가있는 WPF 응용 프로그램이 있습니다. 현재 응용 프로그램 높이와 너비는 MainWindow와 각 페이지에서 선언됩니다.응용 프로그램의 너비와 높이를 한 곳에서 선언했습니다.
<Window x:Class="MyApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="My Application" Height="350" Width="725" >
그런 다음 각 페이지는
<Page x:Class="MyApp.Page1"
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="350" d:DesignWidth="725"
Title="Page1" >
내가 오히려 많은 장소에서 가지고, 높이와 너비를 가질 수있는 하나 개의 중앙 장소가 될 수 아래 같은 높이와 너비를 가지고 MainWindow를 그래서 여기에 ?
가능한 중복 : //stackoverflow.com/questions/2279732/specify-width-height-as-resource-in-wpf) –
나는 이것이 전에 물어야한다는 것을 알고 있었다. –
복제본은 닫기와 같은 질문이 아닙니다. 중복은 페이지 내의 크기입니다. – Paparazzi