atraczyk | bee4271 | 2016-12-12 17:12:41 -0500 | [diff] [blame] | 1 | /**************************************************************************
|
| 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 |
|
| 23 | using namespace RingClientUWP;
|
| 24 | using namespace RingClientUWP::Views;
|
| 25 |
|
| 26 | using namespace Windows::UI::ViewManagement;
|
| 27 | using namespace Windows::UI::Core;
|
| 28 | using namespace Windows::UI::Xaml::Controls;
|
| 29 |
|
| 30 | AboutPage::AboutPage()
|
| 31 | {
|
| 32 | InitializeComponent();
|
| 33 | };
|
| 34 |
|
| 35 | void 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 |
|
| 42 | void 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 |
|
| 49 | void 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 | }
|