Skip to content

Commit 1195351

Browse files
committed
Update NavScrollPanelExample 👍
1 parent ed119eb commit 1195351

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/WPFDevelopers.Samples.Shared/ExampleViews/NavScrollPanelExample.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<wd:NavScrollPanel
3636
Padding="10"
3737
wd:ElementHelper.CornerRadius="10"
38-
ItemsSource="{Binding Items}" />
38+
ItemsSource="{Binding Items, RelativeSource={RelativeSource AncestorType=UserControl}}" />
3939
</TabItem>
4040
</TabControl>
4141
<controls:CodeViewer.SourceCodes>

src/WPFDevelopers.Samples.Shared/ExampleViews/NavScrollPanelExample.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public NavScrollPanelExample()
2121
new NavScrollPanelItem{ Header = "隐私设置", Content = new PrivacySettings()},
2222
new NavScrollPanelItem{ Header = "关于我们", Content = new About()},
2323
};
24-
DataContext = this;
2524
}
2625
}
2726
}

0 commit comments

Comments
 (0)