コード例 #1
0
        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);
        }
コード例 #2
0
 public SingleTileControl()
 {
     InitializeComponent();
     LayoutRoot.DataContext = this;
     linkViewService        = new LinkViewService();
 }