コード例 #1
0
        public ObjectListPage()
        {
            InitializeComponent();
            vm = new SpaceObjectCollection();
            DataContext = vm;

            dialog = new PickerBoxDialog();
            dialog.ItemSource = new List<String>() { "All", "Meteor", "Satellite", "Station", "Others" };
            dialog.Closed += dialog_Closed;
        }
コード例 #2
0
        private void InitCustomPickerDialog()
        {
            // Initialize viewmodel
            this.viewModel = new DialogViewModel();
            this.currentColorItem = viewModel.Items[0];

            // Assing it to the page's DataContext
            this.DataContext = currentColorItem;
            this.customDialog = new PickerBoxDialog();
            this.customDialog.Title = "ACCENTS";

            // Assign our style to the dialog
            this.customDialog.Style = this.Resources["Custom"] as Style;
            this.customDialog.ItemSource = viewModel.Items;
            this.customDialog.Closed += new EventHandler(customDialog_Closed);
        }
コード例 #3
0
 private void InitPickerBoxDialog()
 {
     this.accountSelectorDialogBox = new PickerBoxDialog();
     this.accountSelectorDialogBox.Style = this.LayoutRoot.Resources["Custom"] as Style;
     this.accountSelectorDialogBox.ItemSource = ViewModelLocator.AccountViewModel.Accounts;
     this.accountSelectorDialogBox.Closed += new System.EventHandler(this.customDialog_Closed);
 }
コード例 #4
0
 private void InitPickerBoxDialog()
 {
     dialog = new PickerBoxDialog();
     // Assign data source and title
     dialog.Title = "FIRST DAY OF THE WEEK";
     // Hook up into closed event
     dialog.Closed += new EventHandler(dialog_Closed);
 }