public ProjectPage(Project project) { InitializeComponent(); DataContext = this; persistor = new Persistor(); linkViewService = new LinkViewService(); Project = project; var linkViews = LinkMappers.MapToView(project.Links); linkViews = new ObservableCollection <LinkView>(linkViews.OrderBy(link => link.Name)); Links = linkViews; TilesControl.Init(Links, Project); }
public SingleTileControl() { InitializeComponent(); LayoutRoot.DataContext = this; linkViewService = new LinkViewService(); }