C
C#

help

XAML Binding error, cannot find source

Hhalfbax_8/31/2022
Hello,

I do get a binding error when trying to bind a string from codebehind as content of a ComboBoxItem in CompositeCollection.

<ComboBox.ItemsSource>
    <CompositeCollection>
        <ComboBoxItem Visibility="Collapsed" Content="{Binding Test, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MultiSelectionDropdown}}}"/>
        <CollectionContainer Collection="{Binding Source={StaticResource ResourceKey=Pipeline}}"/>
    </CompositeCollection>
</ComboBox.ItemsSource>


I am trying to bind Test.
Ttemptica8/31/2022
does it successfully build? I've had erros before about binding not being possible. But when I build, it builds succefully
Hhalfbax_8/31/2022
It builds

Looking for more? Join the community!