Esempio n. 1
0
        //    AutoResetEvent autoResetEvent = new AutoResetEvent(false);

        public PeopleChooser()
        {
            this.Loaded += PeopleChooser_Loaded;
            InitializeComponent();
            peoplePicker = new PPLPicker();

            peoplePicker.SubmitClicked += peoplePicker_SubmitClicked;
            selectedAccounts            = new SelectedAccounts();
        }
Esempio n. 2
0
        public PPLPicker()
        {
            InitializeComponent();

            selectedAccounts = new SelectedAccounts();

            Binding binding = new Binding()
            {
                Source = selectedAccounts,
                Path   = new PropertyPath("DisplayName"),
                Mode   = BindingMode.TwoWay
            };

            AccountListBox.DataContext = selectedAccounts;
            AccountListBox.ItemsSource = selectedAccounts;
        }