Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
XamCarouselListBox Multi-Select
posted

I want to show XamCarouselListBox looks as same as wpf listbox with multi-select option enabled.

How to do that? i tried below it doesnt work as i expect. can you pls provide a sample project, the control should look as same as WPF Listbox

<Grid.Resources>
                    <Style TargetType="{x:Type igWindows:CarouselListBoxItem}">
                        <Style.Triggers>
                            <DataTrigger  Binding="{Binding RelativeSource={RelativeSource Self},Path=IsSelected}" Value="True">
                                <Setter Property="ContentTemplate" Value="{StaticResource SelectedDataTemplate}" />
                            </DataTrigger>
                            <DataTrigger  Binding="{Binding RelativeSource={RelativeSource Self},Path=IsSelected}" Value="False">
                                <Setter Property="ContentTemplate" Value="{StaticResource CLBItemDataTemplate}" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Grid.Resources>

                <igWindows:XamCarouselListBox Height="76" HorizontalAlignment="Left" Margin="89,123,0,0" Name="lbTAPSAccount" VerticalAlignment="Top" Width="185" xmlns:igWindows="http://infragistics.com/Windows">
                    <igWindows:XamCarouselListBox.ViewSettings>
                        <igWindows:CarouselViewSettings ItemSize="200,200"/>
                    </igWindows:XamCarouselListBox.ViewSettings>
                </igWindows:XamCarouselListBox>

C# Code:

            DataTable dtData = new DataTable();
            dtData.Columns.Add("Column_1", typeof(string));

            DataRow dr;
            dr = dtData.NewRow();
            dr[0] = "TAPS1";
            dtData.Rows.Add(dr);

            dr = dtData.NewRow();
            dr[0] = "TAPS2";
            dtData.Rows.Add(dr);

            lbTAPSAccount.ItemsSource = dtData.DefaultView;

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking through your post and I it seems like that the xamCarouselListBox doesn’t support multiple selection, but if this is still un issue for you I can make a feature request on your behalf.

     

    Feel free to write me if you have further questions.

Children
No Data