public LeftNavigation() { InitializeComponent(); DataContext = new LeftNavigationViewModel(this); Loaded += LeftNavigation_Loaded; icTodoList.ItemsSource = "ENDPOINT"; }
public LeftNavigationControl(LeftNavigationViewModel leftNavigationViewModel) { InitializeComponent(); if (leftNavigationViewModel != null) { this.DataContext = leftNavigationViewModel; } }
public virtual async Task <LeftNavigationViewModel> LeftNavigation() { var result = new LeftNavigationViewModel { MenuItems = GetMenuItems(), GroupItems = _groupHelper.GroupNavigation(), MyLinks = await GetMyLinksAsync(), SharedLinks = GetSharedLinks() }; return(result); }