Listbox dataTemplate

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Heiki
Posts: 1
Joined: Mon May 12, 2014 6:15 am

Listbox dataTemplate

Post by Heiki »

Hello,

I know that in Visual Studio XAML code I can create DataTemplates for ListBox like this:

Code: Select all

<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

User avatar
Chris T.
Posts: 109
Joined: Mon Nov 20, 2017 5:29 pm

Re: Listbox dataTemplate

Post by Chris T. »

The only way to create XAML in iX developer is by using the PC runtime. We have some pretty extensive documentation in the scripting help (found by pressing F1 in the scripting section of iX).
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply