示例#1
0
        private static DataTemplate GetDialogEditorTemplate(PropertyEntry property)
        {
            if (property == null)
            {
                return((DataTemplate)null);
            }
            DialogPropertyValueEditor propertyValueEditor = property.get_PropertyValueEditor() as DialogPropertyValueEditor;

            if (propertyValueEditor == null)
            {
                return((DataTemplate)null);
            }
            return(propertyValueEditor.get_DialogEditorTemplate());
        }
示例#2
0
        private static DataTemplate GetDialogEditorTemplate(PropertyEntry property)
        {
            if (property == null)
            {
                return(null);
            }

            // Does the current PropertyEntry have a dialog editor?
            DialogPropertyValueEditor dialogEditor = property.PropertyValueEditor as DialogPropertyValueEditor;

            if (dialogEditor == null)
            {
                return(null);
            }

            return(dialogEditor.DialogEditorTemplate);
        }