We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba9f46 commit dec0b2fCopy full SHA for dec0b2f
src/Files.App/UserControls/PathBreadcrumb.xaml.cs
@@ -7,21 +7,9 @@
7
8
namespace Files.App.UserControls
9
{
10
+ [DependencyProperty<AddressToolbarViewModel>("ViewModel")]
11
public sealed partial class PathBreadcrumb : UserControl
12
- public static readonly DependencyProperty ViewModelProperty =
13
- DependencyProperty.Register(
14
- nameof(ViewModel),
15
- typeof(AddressToolbarViewModel),
16
- typeof(PathBreadcrumb),
17
- new(null));
18
-
19
- public AddressToolbarViewModel ViewModel
20
- {
21
- get => (AddressToolbarViewModel)GetValue(ViewModelProperty);
22
- set => SetValue(ViewModelProperty, value);
23
- }
24
25
public PathBreadcrumb()
26
27
InitializeComponent();
0 commit comments