I have simple xml bound to RadListBox using XmlDataProvider. Xml is simple and it looks like this:
<
Views
><
br
> <
View
Caption
=
"PARTIES"
Path
=
"/Views/PartyView.xaml"
/><
br
> <
View
Caption
=
"CANDIDATES"
Path
=
"/Views/CandidateView.xaml"
/><
br
> <
View
Caption
=
"CANDIDATE POSITIONS"
Path
=
"/Views/CandidatePositionView.xaml"
/><
br
> <
View
Caption
=
"ELECTION"
Path
=
"/Views/ElectionView.xaml"
/><
br
></
Views
>
Provider is set like this:
<
XmlDataProvider
x:Key
=
"xdpViews"
Source
=
"/Menu/Views.xml"
XPath
=
"Views/View"
/>
And RadListBox looks like this:
<
telerik:RadListBox
BorderThickness
=
"0,0,2,0"
x:Name
=
"lbViews"
<br> SelectionChanged="lbViews_SelectionChanged"<
br
> SelectedValuePath="@Path" <
br
> DisplayMemberPath="@Caption"><
br
> <
telerik:RadListBox.ItemsSource
><
br
> <
Binding
Source
=
"{StaticResource xdpViews}"
/><
br
> </
telerik:RadListBox.ItemsSource
><
br
> </
telerik:RadListBox
>
While DisplayMemberPath works as intended and list box display captions, when I select item selected value is always null. Am I missing something or this is the bug in RadListBox control?