locked
Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED) again... RRS feed

  • Question

  • Hi

    I have a simple ListBox where I want to use binding to AttachedProperty.

    Template:

    ...
    <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(local:SelectedText.SelectedText)}" />
    ...

    XAML:

    <ListBoxItem Content="ListBoxItem" Style="{StaticResource ListBoxItemStyle}" local:SelectedText.SelectedText="Default Text"/>

    The problem is that I'm getting Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED) on "Path" statement in the tamplate.

    Could anyone help me with it please? Thanks in advance!

    cheers

    pete

    Monday, August 23, 2010 7:59 AM