Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Listbox dataTemplate
PostPosted: Mon May 12, 2014 7:11 am 

Joined: Mon May 12, 2014 6:15 am
Posts: 1

Offline
Hello,

I know that in Visual Studio XAML code I can create DataTemplates for ListBox like this:
Code:
<ListBox ItemsSource="{Binding Inputs}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="{Binding Name}"/>
                        <Ellipse Grid.Column="1" Fill="{Binding IndicatorColor}"/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>


Do you have an example how to create ListBox datatemplates in iX Developer?

Best regards,
Heiki


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: