コード例 #1
0
        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"]);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public BluetoothPage()
 {
     InitializeComponent();
     BindingContext = this.viewModel = new BluetoothViewModel();
     this.lstDevices.HeightRequest = 1000;
 }