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
1250
Grouping in XamComboEditor
posted

I can't get this to show any data:

<igEditors:ComboBoxItemsProvider x:Key="Test">
        <ItemsControl ItemsSource="{Binding Path=DataContext.MedSolChecklistProtocolFields, 
                                            RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}">
            <ItemsControl.GroupStyle>
                <GroupStyle>
                    <GroupStyle.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding ProtocolDescription}"/>
                        </DataTemplate>
                    </GroupStyle.HeaderTemplate>
                </GroupStyle>
            </ItemsControl.GroupStyle>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding LabelText}"/>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </igEditors:ComboBoxItemsProvider>
    
    <Style x:Key="OverrideFieldStyle" TargetType="{x:Type igEditors:XamComboEditor}">
        <!--<Setter Property="ItemsSource" Value="{Binding Path=DataContext.MedSolChecklistProtocolFields, 
                                                       RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"/>
        <Setter Property="DisplayMemberPath" Value="LabelText"/>
        <Setter Property="ValuePath" Value="ChecklistFieldID"/>-->
        <Setter Property="ItemsProvider" Value="{StaticResource Test}"/>
    </Style>
Parents
No Data
Reply Children
No Data