Skip to content

Commit

Permalink
Merge pull request #1259 from chingucoding/fix-breadcrumbbar-typos
Browse files Browse the repository at this point in the history
Fix typos in BreadCrumbBarPage sample
  • Loading branch information
karkarl authored Apr 17, 2023
2 parents 11779dc + 72c93b5 commit 2cfcf35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WinUIGallery/ControlPages/BreadcrumbBarPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ BreadcrumbBar1.ItemsSource = new string[] { "Home", "Documents", "Design", "Nort

<local:ControlExample.Xaml>
<x:String xml:space="preserve">
&lt;BreadcrumbBar x:Name="BreadcrumbBar1"&gt;
&lt;BreadcrumbBar x:Name="BreadcrumbBar2"&gt;
&lt;BreadcrumbBar.ItemTemplate&gt;
&lt;DataTemplate x:DataType="l:Folder"&gt;
&lt;BreadcrumbBarItem Content="{Binding}" AutomationProperties.Name="{Binding Name}"&gt;
Expand Down Expand Up @@ -88,7 +88,7 @@ BreadcrumbBar2.ItemClicked += BreadcrumbBar2_ItemClicked;

private void BreadcrumbBar2_ItemClicked(BreadcrumbBar sender, BreadcrumbBarItemClickedEventArgs args)
{
var items = BreadcrumbBar2.ItemsSource as ObservableCollection&lt;Folder&gt;
var items = BreadcrumbBar2.ItemsSource as ObservableCollection&lt;Folder&gt;;
for (int i = items.Count - 1; i >= args.Index + 1; i--)
{
items.RemoveAt(i);
Expand Down

0 comments on commit 2cfcf35

Please sign in to comment.