Hi.
I have the following code in ViewModel:
For RaisePropertyChanged I have redefinition, so it will work fine.
The *,xaml is as following:
If func() returns true I am not changing CurrentItem, but the breadcrumb shows the item I have selected in it. And I have situation with different values in breadcrumb and CurerntItem.
Could you help me to resolve this issue?
Best regards,
Ilya.
I have the following code in ViewModel:
private
ITileItemModel _currentItem;
public
ITileItemModel CurrentItem
{
get
{
return
_currentItem;
}
set
{
if
(_currentItem == value)
return
;
if
(func())
return
;
_currentItem = value;
RaisePropertyChanged(() => CurrentItem);
}
}
The *,xaml is as following:
<
telerik:RadBreadcrumb
x:Name
=
"NavigationBreadcrumb"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Top"
TextModePath
=
"TilePath"
IsTextModeEnabled
=
"False"
HeaderMemberPath
=
"Header"
HierarchicalItemsSource
=
"Children"
HierarchicalMemberPath
=
"Header"
IsHistoryEnabled
=
"False"
Header
=
"{Binding Root}"
ItemsSource
=
"{Binding Root.Children}"
CurrentItem
=
"{Binding CurrentItem, Mode=TwoWay}"
>
</
telerik:RadBreadcrumb
>
If func() returns true I am not changing CurrentItem, but the breadcrumb shows the item I have selected in it. And I have situation with different values in breadcrumb and CurerntItem.
Could you help me to resolve this issue?
Best regards,
Ilya.