public BluetoothPage() { InitializeComponent(); bluetoothViewModel = new BluetoothViewModel(); this.BindingContext = bluetoothViewModel; //CircleScanner.Colors.Add((Color)Application.Current.Resources["themeColor"]); //CircleScanner.Colors.Add((Color)Application.Current.Resources["lightthemeColor"]); }
public BluetoothView() { InitializeComponent(); bvm = (BluetoothViewModel)BindingContext; // the View's on-screen ListView displays objects from the // ViewModel's List listView.ItemsSource = bvm.bleDeviceList; // render ViewModel notifications to the View bvm.notifyUser += notifyUserAsync; // attempt to check for Bluetooth being active at first display Appearing += onAppearingAsync; }
public BluetoothPage() { InitializeComponent(); BindingContext = this.viewModel = new BluetoothViewModel(); this.lstDevices.HeightRequest = 1000; }