스크롤 뷰어에 스트레치 문제가 있습니다. 스크롤바와 함께 도크 패널 안에 버튼과 텍스트 상자가 있습니다. 스크롤 뷰어가 해당 항목 아래에 있지만 독 패널과 너비가 바닥에서 늘려 지도록하고 싶습니다. 도킹 패널의 버튼과 텍스트 상자까지.스크롤 뷰어가 독 패널의 오른쪽에 붙어 있습니까?
그래서 난이 tryed : 스크롤 뷰어는 어떻게 든과 같이 오른쪽에 붙어 그러나
<UserControl x:Class="WpfApplication4.AppPages.FindStudent"
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="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
<DockPanel Height="299" Width="289">
<TextBox Height="23" Name="textBox1" Width="188" VerticalAlignment="Top"/>
<Button Content="Button" Height="23" Name="button1" Width="100" Click="button1_Click" VerticalAlignment="Top" />
<ScrollViewer VerticalScrollBarVisibility="Hidden" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="88">
:
DockPanel에서 마지막 컨트롤이 나머지 공간을 채우도록 늘리지 않도록하려면 LastChildFill = "False"로 설정할 수 있습니다. –
안녕하세요 제이 옙, 고마워요. –