protected override void OnNavigatedTo(NavigationEventArgs e) { if (e.Parameter is DiscordChannel channel) { // TODO: check perms _viewModel = new ChannelEditViewModel(channel); DataContext = _viewModel; } }