This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MVVMCoffee.ViewModels; | |
using Xamarin.Forms; | |
namespace Sample.ViewModels | |
{ | |
public class MainViewModel : BaseViewModel | |
{ | |
public Command PushAsyncToFormCommand { get; } | |
public Command SetRootFormCommand { get; } | |
public MainViewModel() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MVVMCoffee.ViewModels; | |
using Sample.Models; | |
using Xamarin.Forms; | |
namespace Sample.ViewModels | |
{ | |
public class FormViewModel : BaseViewModel | |
{ | |
public Command PopAsyncCommand { get; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="Sample.Views.FormPage" | |
Title="{Binding TitlePage}"> | |
<ContentPage.Content> | |
<StackLayout Margin="20"> | |
<StackLayout> | |
<Label Text="Example of Customer object for demonstrate using interface INotifyPropertyChanged" | |
HorizontalTextAlignment="Center"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
x:Class="Sample.MainPage" | |
Title="{Binding TitlePage}"> | |
<StackLayout Margin="20" VerticalOptions="Center"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
namespace Sample | |
{ | |
public partial class App : Application | |
{ | |
public App() | |
{ | |
InitializeComponent(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MVVMCoffee.ViewModels; | |
namespace Sample.ViewModels | |
{ | |
public class MainViewModel : BaseViewModel | |
{ | |
public MainViewModel() | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel; | |
using Sample.ViewModels; | |
using Xamarin.Forms; | |
namespace Sample | |
{ | |
[DesignTimeVisible(false)] | |
public partial class MainPage : ContentPage | |
{ | |
private MainViewModel ViewModel => BindingContext as MainViewModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MVVMCoffee.Models; | |
namespace Sample.Models | |
{ | |
public class Customer : BaseModel | |
{ | |
public string Name | |
{ | |
get { return _name; } | |
set { SetProperty(ref _name, value); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android; | |
using Android.App; | |
using Android.Content.PM; | |
using Android.OS; | |
namespace DemoBluetooth.Droid | |
{ | |
[Activity(Label = "DemoBluetooth", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] | |
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.DemoBluetooth" android:installLocation="auto"> | |
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="28" /> | |
<uses-permission android:name="android.permission.BLUETOOTH" /> | |
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> | |
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" /> | |
<uses-permission android:name="android.permission.LOCATION_HARDWARE" /> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> |