public MemeInfoPage(Meme meme, Frame frame, EditorPage editorPage, MemeRepository repo)
 {
     InitializeComponent();
     Meme        = meme;
     MainFrame   = frame;
     EditorPage  = editorPage;
     Repo        = repo;
     DataContext = Meme;
 }
Beispiel #2
0
 public AllMemesPage(MemeRepository repo, Frame mainFrame, EditorPage editorPage)
 {
     InitializeComponent();
     // InitializeMemes();
     Repo  = repo;
     Memes = new ObservableCollection <Meme>();
     foreach (var meme in Repo.GetAllMemes())
     {
         Memes.Add(meme);
     }
     AllMemesList.ItemsSource = Memes;
     MainFrame  = mainFrame;
     EditorPage = editorPage;
 }
 private void EditorButton_MouseDown(object sender, MouseButtonEventArgs e)
 {
     EditorPage.SetBackgroundImage(Meme);
     MainFrame.Navigate(EditorPage);
 }