public DetailPage(ShowcaseWindow w, String id) { InitializeComponent(); window = w; Identifier = id; switch (id) { case "EEE": PageTitle.Content = "electrical and electronic engineering"; break; case "SE": PageTitle.Content = "software engineering"; break; case "CSE": PageTitle.Content = "computer systems engineering"; break; } window.hidePage = (window.Resources["SlideAndFadeLeftOut"] as Storyboard).Clone(); window.showPage = (window.Resources["SlideAndFadeLeftIn"] as Storyboard).Clone(); navTabs.Add("overview"); navTabs.Add("courses"); navTabs.Add("faculty"); OverviewButton.BorderBrush = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)); child.Content = new OverviewSubpage(this); }
/// <summary> /// Default constructor. /// </summary> public FrontPage(ShowcaseWindow w) { InitializeComponent(); window = w; window.hidePage = (window.Resources["SlideAndFadeRightOut"] as Storyboard).Clone(); window.showPage = (window.Resources["SlideAndFadeRightIn"] as Storyboard).Clone(); }
public FutureStudentsPage(ShowcaseWindow w) { InitializeComponent(); window = w; //child.Content = new OverviewSubpage(this); undergrad.Visibility = Visibility.Visible; UndergraduateButton.BorderBrush = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)); currentPage = undergrad; navTabs.Add("undergrad"); navTabs.Add("postgrad"); navTabs.Add("accommodation"); navTabs.Add("scholarship"); window.hidePage = (window.Resources["SlideAndFadeLeftOut"] as Storyboard).Clone(); window.showPage = (window.Resources["SlideAndFadeLeftIn"] as Storyboard).Clone(); }