We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Wrapping Task Tags

Thread ID:

Created:

Updated:

Platform:

Replies:

145685 Jul 3,2019 02:19 PM UTC Jul 6,2019 08:50 AM UTC UWP 1
loading
Tags: SfKanban
Hunter
Asked On July 3, 2019 02:19 PM UTC

Hi, 

I'm wondering how to make the tags at the bottom of the cards wrap? So, for instance, when I put more than 3 decent size tags, it just keeps adding to the end. Is there a way to wrap them to continue below? 

Muneesh Kumar G [Syncfusion]
Replied On July 6, 2019 08:50 AM UTC

Hi Hunter, 
 
Greetings from Syncfusion. 
 
We have prepared a sample to wrap the tag item by setting the custom card template to the CardTemplate property. Please download the sample from the following location. 
 
 
Screenshot: 
 
 
 
Code Snippet: 
 
<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> 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Muneesh Kumar G.   
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon