Reorganization
This commit is contained in:
18
Aurora/Design/Views/Profile/ProfileView.xaml
Normal file
18
Aurora/Design/Views/Profile/ProfileView.xaml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ContentView
|
||||
xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Aurora.Design.Views.Profile.ProfileView">
|
||||
<ContentView.Content>
|
||||
<StackLayout
|
||||
Orientation="Vertical">
|
||||
<StackLayout
|
||||
Orientation="Horizontal">
|
||||
<Label
|
||||
Text="Username"/>
|
||||
<Entry
|
||||
Text="{Binding Username}"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</ContentView.Content>
|
||||
</ContentView>
|
15
Aurora/Design/Views/Profile/ProfileView.xaml.cs
Normal file
15
Aurora/Design/Views/Profile/ProfileView.xaml.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Aurora.Design.Views.Profile
|
||||
{
|
||||
public partial class ProfileView : ContentView
|
||||
{
|
||||
public ProfileView()
|
||||
{
|
||||
InitializeComponent();
|
||||
BindingContext = new ProfileViewModel();
|
||||
}
|
||||
}
|
||||
}
|
23
Aurora/Design/Views/Profile/ProfileViewModel.cs
Normal file
23
Aurora/Design/Views/Profile/ProfileViewModel.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Aurora.Services;
|
||||
|
||||
namespace Aurora.Design.Views.Profile
|
||||
{
|
||||
public class ProfileViewModel : BaseViewModel
|
||||
{
|
||||
|
||||
public ProfileViewModel()
|
||||
{
|
||||
}
|
||||
|
||||
public string Username
|
||||
{
|
||||
get { return SettingsService.Instance.Username; }
|
||||
set
|
||||
{
|
||||
SettingsService.Instance.Username = value;
|
||||
OnPropertyChanged("Username");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user