To reproduce,
1. Open a sample project "SampleApplication-CSharp.VS2008" provided by Actipro.
2. Open a xaml file, ProductSamples\NavigationSamples\QuickStart\BreadcrumbFileSystem\MainControl.xaml
3. About line 88, add a dependency property "SelectedPath" as follows,4. Add some code for MySelectedPath in code-behind file.
5. Run and check whether set_MySelectedPath code is executed whenever you select a menu on breadcrumb control. It's not! (But, I think it has to be executed)
Unfortunately, SelectedItem (Dependency Property) is also not linked to the data-bound property.
1. Open a sample project "SampleApplication-CSharp.VS2008" provided by Actipro.
2. Open a xaml file, ProductSamples\NavigationSamples\QuickStart\BreadcrumbFileSystem\MainControl.xaml
3. About line 88, add a dependency property "SelectedPath" as follows,
<navigation:Breadcrumb x:Name="breadcrumb"
Grid.Row="2"
SelectedPath="{Binding Path=MySelectedPath, ElementName=userControl}"
Margin="0,10,0,0" RootItem="{Binding XPath=ShellItem}" ItemContainerStyle="{StaticResource BreadcrumbItemStyle}"
[omitted...]
string mySelectedPath;
public string MySelectedPath
{
get { return this.mySelectedPath; }
set
{
this.mySelectedPath = value;
OnPropertyChanged("MySelectedPath");
}
}
Unfortunately, SelectedItem (Dependency Property) is also not linked to the data-bound property.