내가 WPF의 ScrollViewer에WPF의 ScrollViewer의 대화 상자
에 대한 질문이 이건 내가 현재 가지고있는 코드 :
<Window x:Class="BasketNovelEditor.Menu.AboutBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowStartupLocation="CenterOwner"
Title="AboutBox" Height="Auto" Width="425" Focusable="True" SizeToContent="Height">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="200"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" MinHeight="50" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">Thank you!</Label>
<Label Grid.Row="1" MinHeight="30" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">BasketNovel uses the following Libraries:</Label>
<Button Grid.Row="3" DockPanel.Dock="Bottom" IsDefault="True" IsCancel="True">Close Window</Button>
<ScrollViewer Grid.Row="2" Margin="5" Height="200">
<StackPanel>
</StackPanel>
</ScrollViewer>
</Grid>
그리고이 내가지고있어 결과입니다 :
http://i1280.photobucket.com/albums/a500/daegon123/ss.png
http://i1280.photobucket.com/albums/a500/daegon123/ss_zps3d6b8c90.png
왜 내 스크롤바가 이렇게 나타나는지 전혀 알 수 없습니다. 적어도 스크롤 막대의 시작/끝 지점 에 위/아래 화살표가 놓이기를 기대했습니다.
왜 이런 일이 발생했는지에 대한 단서가 있습니까? 이것과 관련이 있는지는 잘 모르지만 Window는 다음과 같은 대화 상자로 사용되는 입니다 :
aboutbox.ShowDialog();
나는 현재 테스트 조금 후에, 나는 그들에 scrollviewers를 배치하는 경우이 내 모든 모달 창 을에 일어날 것을 깨달았다 .NET 4.0
--EDIT2--
사용하고 있습니다. 내 메인 윈도우의 스크롤 뷰어는 괜찮아 보이는데, 그래서 저는 이것이 모달 윈도우 특정 또는 어떤 것임을 알게되었습니다. 나는 알지 못하는 사이에 그것들을 할 수도 있습니다. 누구든지 아이디어가 있습니까?
정상적인 WPF 창에 코드를 붙여 넣으면 멋지게 보입니다. 응용 프로그램에 전역 스타일이나 이와 유사한 것이 있습니까? –
아니요, 대화 상자에 대한 기본 창과 해당 비트가 있습니다. 다른 생각? – dk123