protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); entryType = (EntryType.Types)(Enum.Parse(typeof(EntryType.Types), NavigationContext.QueryString["entryType"])); if(this.DataContext == null) { SetViewModel(); } }
public MenuOption(string name, string description, EntryType.Types entryType) { Name = name; Description = description; EntryType = entryType; }