コード例 #1
0
        /// <summary>
        /// Uses the web view URI property editor.
        /// </summary>
        /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param>
        /// <returns>EditorDescriptorsFactory.</returns>
        /// <exception cref="ArgumentNullException">editorDescriptorsFactory</exception>
        /// <autogeneratedoc />
        public static EditorDescriptorsFactory UseWebViewUriPropertyEditorWin(this EditorDescriptorsFactory editorDescriptorsFactory)
        {
            _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory));

            editorDescriptorsFactory.RegisterPropertyEditor(
                Xenial.Framework.WebView.PubTernal.WebViewEditorAliases.WebViewUriPropertyEditor,
                typeof(Uri),
                typeof(WebViewUriPropertyEditor),
                false
                );

            return(editorDescriptorsFactory);
        }
コード例 #2
0
        /// <summary>
        /// Uses the token objects property editor.
        /// </summary>
        /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param>
        /// <returns>EditorDescriptorsFactory.</returns>
        /// <exception cref="System.ArgumentNullException">editorDescriptorsFactory</exception>
        /// <autogeneratedoc />
        public static EditorDescriptorsFactory UseTokenStringPropertyEditorsBlazor(this EditorDescriptorsFactory editorDescriptorsFactory)
        {
            _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory));

            editorDescriptorsFactory.RegisterPropertyEditor(
                Xenial.Framework.TokenEditors.PubTernal.TokenEditorAliases.TokenStringPropertyEditor,
                typeof(string),
                typeof(TokenStringPropertyEditor),
                false
                );

            return(editorDescriptorsFactory);
        }
コード例 #3
0
 protected override void RegisterEditorDescriptors(EditorDescriptorsFactory editorDescriptorsFactory)
 {
     editorDescriptorsFactory.RegisterPropertyEditor(EditorAliases.RichTextPropertyEditor, typeof(byte[]), typeof(RichTextPropertyEditor), false);
 }
コード例 #4
0
 protected override void RegisterEditorDescriptors(EditorDescriptorsFactory editorDescriptorsFactory)
 {
     base.RegisterEditorDescriptors(editorDescriptorsFactory);
     editorDescriptorsFactory.RegisterListEditor(EditorAliases.GridListEditor, typeof(Object), typeof(BlazorGridListEditor), true);
     editorDescriptorsFactory.RegisterPropertyEditor(typeof(object), typeof(BlazorPropertyEditor), true);
 }