using PDF_Master.Model; using Prism.Commands; using Prism.Mvvm; using Prism.Regions; using System; using System.Collections.Generic; using System.Linq; namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter { public class HomePageConverterWordViewModel : BindableBase, INavigationAware { public DelegateCommand RadioButtonCommand { get; set; } public HomePageConverterDialogViewModel homePageConverterDialogViewModel { get; set; } public HomePageConverterWordViewModel() { RadioButtonCommand = new DelegateCommand(radiobutton); } private void radiobutton(string e) { string radioButton = e; if (radioButton != null) { switch (radioButton) { case "FlowingTextRadioBtn": break; case "PageLayoutRadioBtn": break; default: break; } } } public void OnNavigatedTo(NavigationContext navigationContext) { var homePageConverterVM = navigationContext.Parameters[ParameterNames.ViewContentViewModel] as HomePageConverterDialogViewModel; if (homePageConverterVM != null) { homePageConverterDialogViewModel = homePageConverterVM; } } public bool IsNavigationTarget(NavigationContext navigationContext) { return true; } public void OnNavigatedFrom(NavigationContext navigationContext) { } } }