-
-
Save jdf3/8605a2bcd0405b4603c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemsControl.ItemTemplate> | |
<DataTemplate> | |
<StackPanel> | |
<!-- TODO: to a style (outside?) --> | |
<Separator x:Name="Separator" | |
Background="#1F000000" | |
Margin="0" /> | |
<ContentControl ContentTemplate="{StaticResource SomeTemplate}" | |
Content="{Binding}" /> | |
</StackPanel> | |
<DataTemplate.Triggers> | |
<DataTrigger Binding="{Binding RelativeSource={RelativeSource PreviousData}}" | |
Value="{x:Null}"> | |
<Setter Property="Visibility" | |
TargetName="Separator" | |
Value="Collapsed" /> | |
</DataTrigger> | |
</DataTemplate.Triggers> | |
</DataTemplate> | |
</ItemsControl.ItemTemplate> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment