Skip to content

Commit dec0b2f

Browse files
committed
Use source generator
1 parent eba9f46 commit dec0b2f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Files.App/UserControls/PathBreadcrumb.xaml.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,9 @@
77

88
namespace Files.App.UserControls
99
{
10+
[DependencyProperty<AddressToolbarViewModel>("ViewModel")]
1011
public sealed partial class PathBreadcrumb : UserControl
1112
{
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-
2513
public PathBreadcrumb()
2614
{
2715
InitializeComponent();

0 commit comments

Comments
 (0)