Example #1
0
        private void SpeakerList_ItemRealized(object sender, ItemRealizationEventArgs e)
        {
            AirPlaySpeakerControl control = e.Container.FindVisualChild<AirPlaySpeakerControl>();
            if (control == null)
                return;

            _currentSpeakerControls.Add(control);
            control.SetSingleSelectionMode(_singleSelectionModeEnabled, false);
        }
Example #2
0
        private void SpeakerContentPresenter_Loaded(object sender, RoutedEventArgs e)
        {
            ContentPresenter contentPresenter = (ContentPresenter)sender;
            contentPresenter.Loaded -= SpeakerContentPresenter_Loaded;

            AirPlaySpeakerControl control = contentPresenter.FindVisualChild<AirPlaySpeakerControl>();
            if (control == null)
                return;

            _currentSpeakerControls.Add(control);
            control.SetSingleSelectionMode(_singleSelectionModeEnabled, false);
        }