Example #1
0
        /// <summary>
        /// Creates a new <see cref="OpenMultipleFilesDialog" />.
        /// </summary>
        public OpenMultipleFilesDialog()
            : base()
        {
            m_openMultipleFilesControl = null;

            Loaded   += LoadedHandler;
            Unloaded += UnloadedHandler;
        }
Example #2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (m_openMultipleFilesControl != null)
            {
                m_openMultipleFilesControl.Cancel        -= CancelHandler;
                m_openMultipleFilesControl.FilesSelected -= OpenMultipleFilesControlFilesSelectedHandler;
            }

            m_openMultipleFilesControl = Template.FindName(OpenMultipleFilesControlName, this) as OpenMultipleFilesControl;
        }