<ResourceDictionary>
<DataTemplate x:Key="CustomCardTemplate">
<Grid>
<Border>
………..
<ScrollViewer x:Name="scrollView" Grid.Row="2" Grid.ColumnSpan="1" VerticalAlignment="Bottom"
Margin="0,4,0,2"
Visibility="{Binding Tag.CardStyle.TagVisibility ,RelativeSource={RelativeSource Mode=TemplatedParent}}"
HorizontalScrollBarVisibility="Visible"
VerticalScrollBarVisibility="Visible">
<ItemsControl ItemsSource="{Binding Tags}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid x:Name="ItemWrapGrid" MaximumRowsOrColumns="3" ItemHeight="30" ItemWidth="70" DataContext="{Binding}" Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderThickness="2" BorderBrush="Gray" Margin="5">
<TextBlock HorizontalAlignment="Center" FontSize="10" Text="{Binding }"/>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
………..
</Grid>
</Border>
</DataTemplate>
</ResourceDictionary>
<kanban:SfKanban x:Name="Kanban" ItemsSource="{Binding Tasks}" CardTemplate="{StaticResource CustomCardTemplate}">
</kanban:SfKanban> |