blob: 32854ab08800528a92bb30f56fc0b5ed520b0c41 [file] [log] [blame]
atraczykbee42712016-12-12 17:12:41 -05001/**************************************************************************
2* Copyright (C) 2016 by Savoir-faire Linux *
3* Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
4* Author: Traczyk Andreas <andreas.traczyk@savoirfairelinux.com> *
5* *
6* This program is free software; you can redistribute it and/or modify *
7* it under the terms of the GNU General Public License as published by *
8* the Free Software Foundation; either version 3 of the License, or *
9* (at your option) any later version. *
10* *
11* This program is distributed in the hope that it will be useful, *
12* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14* GNU General Public License for more details. *
15* *
16* You should have received a copy of the GNU General Public License *
17* along with this program. If not, see <http://www.gnu.org/licenses/>. *
18**************************************************************************/
19#include "pch.h"
20
21#include "AboutPage.xaml.h"
22
23using namespace RingClientUWP;
24using namespace RingClientUWP::Views;
25
26using namespace Windows::UI::ViewManagement;
27using namespace Windows::UI::Core;
28using namespace Windows::UI::Xaml::Controls;
29
30AboutPage::AboutPage()
31{
32 InitializeComponent();
33};
34
35void RingClientUWP::Views::AboutPage::_aboutBasicButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
36{
37 _aboutNavGrid_->SetRow(_aboutScrollViewer_, 1);
38 _aboutNavGrid_->SetRow(_creditsScrollViewer_, 0);
39}
40
41
42void RingClientUWP::Views::AboutPage::_aboutCreditsButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
43{
44 _aboutNavGrid_->SetRow(_aboutScrollViewer_, 0);
45 _aboutNavGrid_->SetRow(_creditsScrollViewer_, 1);
46}
47
48
49void RingClientUWP::Views::AboutPage::_aboutCloseButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
50{
51 auto rootFrame = dynamic_cast<Windows::UI::Xaml::Controls::Frame^>(Window::Current->Content);
52 rootFrame->Navigate(Windows::UI::Xaml::Interop::TypeName(MainPage::typeid), true);
53}