示例#1
0
        void UpdatePickerFromPickerSource(PickerSource pickerSource)
        {
            if (VirtualView == null || NativeView == null)
            {
                return;
            }

            NativeView.Text           = VirtualView.GetItem(pickerSource.SelectedIndex);
            VirtualView.SelectedIndex = pickerSource.SelectedIndex;
        }
示例#2
0
        void UpdatePickerFromPickerSource(PickerSource pickerSource)
        {
            if (VirtualView == null || TypedNativeView == null)
            {
                return;
            }

            TypedNativeView.Text      = pickerSource.SelectedItem;
            VirtualView.SelectedIndex = pickerSource.SelectedIndex;
        }