/// <summary> /// Temporary (?) fix to keep selected object while editing current filter. /// </summary> private static void ContentLinkChanged(object sender, LinkChangedEventArgs e) { switch (((LinkGroupFilterable)sender).Source.GetName()) { case nameof(ReplaysListPage): AcListPageViewModel <ReplayObject> .OnLinkChanged(e); break; case nameof(CarsListPage): AcListPageViewModel <CarObject> .OnLinkChanged(e); break; case nameof(TracksListPage): AcListPageViewModel <TrackObject> .OnLinkChanged(e); break; case nameof(ShowroomsListPage): AcListPageViewModel <ShowroomObject> .OnLinkChanged(e); break; } }
/// <summary> /// Temporary (?) fix to keep selected object while editing current filter. /// </summary> private static void ContentLinkChanged(object sender, LinkChangedEventArgs e) { switch (((LinkGroupFilterable)sender).DisplayName) { case "cars": AcListPageViewModel <CarObject> .OnLinkChanged(e); break; case "tracks": AcListPageViewModel <TrackObject> .OnLinkChanged(e); break; case "showrooms": AcListPageViewModel <ShowroomObject> .OnLinkChanged(e); break; } }