2012-05-16 3 views
2

Visual Studio에서 디자이너의 인터페이스를 디자인 할 때 흰색 테두리가 모든 Windows를 둘러 쌉니다.WPF Visual Studio 디자이너에서 테두리를 제거하는 방법

창의 배경을 설정하면이 흰색 테두리 안에 포함되지만 실행하면 배경이 디자이너의 흰색 영역으로 확장됩니다. 모든 주요 외부 여백은 0으로 설정됩니다.

이렇게하면 컴파일 할 때 IDE가 내 레이아웃을 변경하기 때문에 아무 것도 설계 할 수 없습니다.

이 경계선을 어떻게 제거합니까?

미안 해요, 난 코드의 샘플을 잊었 [편집]! 여기 상단 절반에게있어 가장 외부 XML 뺀 자원

<Window x:Class="BuildSaverAlpha4.Main_Window" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Main_Window" DataContext="{Binding RelativeSource={RelativeSource Self}}" ResizeMode="NoResize" AllowsTransparency="False" WindowStyle="None" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Activated="Window_Activated" Deactivated="Window_Deactivated" Closing="Window_Closing" BorderBrush="{x:Null}" Foreground="{x:Null}" WindowStartupLocation="CenterScreen" Height="562" Width="911" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0"> 


<Grid Height="Auto" Width="Auto" Name="outerGrid" Margin="0,0,0,0"> 
    <Grid Height="41" HorizontalAlignment="Left" Margin="12,20,0,0" Name="grid1" VerticalAlignment="Top" Width="872" Background="#5DFF0000"> 
    </Grid> 
    <Grid Background="#5DFF0000" Height="38" HorizontalAlignment="Left" Margin="12,72,0,0" Name="grid2" VerticalAlignment="Top" Width="872"></Grid> 
    <TabControl Name="tabControl1" Margin="12,0,0,38" Background="{x:Null}" 

+3

실제로 XAML을 게시해야합니다. 친구 –

답변

0

컨트롤 창을 작성하지 않습니다. xaml을 보지 않고도이를 수정하기위한 코드를 게시하기는 어렵지만 그리드 인 경우 마크 업에 고정 폭이나 높이가 없는지 확인하십시오. 다른 컨트롤을 찾으려면 수평 정렬 및 수직 정렬을 "늘림"으로 설정해야합니다. 이 창에 XAML을 게시 할 수 있으면 시도하고 수정 해 줄 것입니다.

관련 문제