43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using FrontendPlatformUno.ViewModels;
|
|
using Microsoft.UI.Xaml;
|
|
using Microsoft.UI.Xaml.Controls;
|
|
using Microsoft.UI.Xaml.Controls.Primitives;
|
|
using Microsoft.UI.Xaml.Data;
|
|
using Microsoft.UI.Xaml.Input;
|
|
using Microsoft.UI.Xaml.Media;
|
|
using Microsoft.UI.Xaml.Navigation;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices.WindowsRuntime;
|
|
using Uno;
|
|
using Windows.Foundation;
|
|
using Windows.Foundation.Collections;
|
|
using Windows.UI.Core;
|
|
|
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
|
|
|
namespace FrontendPlatformUno.Views
|
|
{
|
|
/// <summary>
|
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
/// </summary>
|
|
public sealed partial class LoginPage : Page
|
|
{
|
|
public LoginPage()
|
|
{
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
void OnButton(object sender, KeyRoutedEventArgs e)
|
|
{
|
|
if(e.Key == Windows.System.VirtualKey.Enter)
|
|
{
|
|
((LoginViewModel)DataContext).LoginCommand?.Execute(null);
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|
|
}
|