Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Populate Select types combo in CollectionEditor with NewItemTypes

$
0
0
Hi,

You can set the style for the ItemTemplate of the ListBox in the CollectionControl. Here's how :
<xctk:CollectionControl Height="240"
                                 HorizontalAlignment="Left"
                                 Name="CollectionControl1"
                                 VerticalAlignment="Top"
                                 Width="479">
            <xctk:CollectionControl.Style>
               <Style TargetType="xctk:CollectionControl">
                  <Style.Resources>
                     <Style TargetType="ListBox">
                        <Setter Property="ItemTemplate">
                           <Setter.Value>
                              <DataTemplate>
                                 <TextBlock Text="{Binding LWEmissivityOut}"
                                            Background="LightGreen" />
                              </DataTemplate>
                           </Setter.Value>
                        </Setter>
                     </Style>
                  </Style.Resources>
               </Style>
            </xctk:CollectionControl.Style>
</xctk:CollectionControl>

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>