示例#1
0
        public void Show(
         object content,
         PopupControlCompletionDelegate onComplete
         )
        {
            m_onComplete = onComplete;
             Content = content;
             Visibility = Visibility.Visible;

             Focus ();
        }
示例#2
0
partial         void Command_Close(CommandType commandType, object parameter, ref bool canExecute)
        {
            canExecute = true;
             if (commandType == CommandType.Execute)
             {
            Visibility = Visibility.Collapsed;
            Content = null;
            if (m_onComplete != null)
            {
               var onComplete = m_onComplete;
               m_onComplete = null;
               onComplete (this, parameter);
            }
             }
        }