맞춤 패널을 구현하는 것이 실제로 그렇게 어렵지는 않습니다. 측정 및 정렬이라는 두 가지 메서드를 재정의해야합니다. Google은 "wpf custom panel"에 대한 기사를 얻으려고합니다.
정확하게 Windows.Controls.Grid 확장 질문에 필요한대로 동작을 얻으려면 어떻게 제안 할 것이라고. 그러면 사용자 지정 그리드에는 생성자에서 초기화하는 두 개의 열이 기본적으로 있고 자식 컨트롤에 Grid.Column 및 Grid.Row 속성을 프로그래밍 방식으로 설정할 수 있습니다.
또한 주목할만한 가치가 ItemsControl이 될 수 있습니다. 색깔이 다른 행을 지원합니다.
<Grid>
<Grid.Resources>
<Style x:Key="alternatingWithTriggers" TargetType="{x:Type ListBoxItem}">
<Setter Property="Background" Value="Blue"/>
<Setter Property="Foreground" Value="White"/>
<Style.Triggers>
<Trigger Property="ListBox.AlternationIndex" Value="1">
<Setter Property="Background" Value="CornflowerBlue"/>
<Setter Property="Foreground" Value="Black"/>
</Trigger>
<Trigger Property="ListBox.AlternationIndex" Value="2">
<Setter Property="Background" Value="LightBlue"/>
<Setter Property="Foreground" Value="Navy"/>
</Trigger>
</Style.Triggers>
</Style>
</Grid.Resources>
<ListBox AlternationCount="3" ItemsSource="{StaticResource data}"
ItemContainerStyle="{StaticResource alternatingWithTriggers}">
</ListBox>
</Grid>
그런 다음 레이블과 텍스트 상자,하지만 일이를 점점 가로장 설치 등등이 될 수를 포함하는 항목에 대한 템플릿을 지정할 수 있습니다 :이 예 (from MSDN는) 그것을 사용하는 방법을 보여줍니다.
XAML Powertoys 당신이 ViewModels에서 비즈니스 양식을 생성 할 수있는 기능, 모델에서 ViewModels 등을 포함
는 여기에 내가 제안 것이다 일 최종 일입니다. 그래도 행 색상을 번갈아 가며 소스를 수정해야 할 수도 있습니다.
행운을 빈다.