Skip to content

Commit

Permalink
Use SeAndRaise to make the binding work
Browse files Browse the repository at this point in the history
  • Loading branch information
sandermvanvliet committed Nov 19, 2023
1 parent 9c6e16a commit e1d38bf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/RoadCaptain.App.Shared/Controls/RoutesList.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,7 @@ public RouteViewModel? SelectedRoute
public RouteViewModel[] Routes
{
get => _routes;
set
{
_routes = value;
DataContext = value;

InvalidateVisual();
}
set => SetAndRaise(RoutesProperty, ref _routes, value);
}
}

Expand Down

0 comments on commit e1d38bf

Please sign in to comment.