Esempio n. 1
0
        //--------------------------------------------------------------------------------------------------

        void _CloseMenuOnSourceUpdated(object sender, DataTransferEventArgs e)
        {
            var element = PresentationHelper.FindLogicalParent <DropDownButton>(sender as FrameworkElement);

            if (element != null)
            {
                element.IsDropDownOpen = false;
            }
        }