You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a simple verb for RootDesigners and ComponentDesigners:
I have added standard code at server side component designer:
public override DesignerVerbCollection Verbs=> _designerVerbs ??= new DesignerVerbCollection
{ new DesignerVerb("Properties...", delegate { OpenCustomDialogue(); }) };
OpenCustomDialogue method sends a notification to client side so required dialog can be opened,
This seems to work, but could you please clarify if this is the recommended way? Is it possible to initialize a ViewModel, similar to TypeEditors viewmodels, for dialogs opened this way?
I have also tried adding verbs at client side during ComponentDesignerProxy initialization, but i got the following error:
The text was updated successfully, but these errors were encountered:
valiahmetovv
changed the title
Adding custom Verbs to ComponentProxyDesigner causes error
How to add custom Verbs at Server or Client?
Apr 26, 2024
Hi @KlausLoeffelmann
I'm trying to implement a simple verb for RootDesigners and ComponentDesigners:
I have added standard code at server side component designer:
public override DesignerVerbCollection Verbs=> _designerVerbs ??= new DesignerVerbCollection
{ new DesignerVerb("Properties...", delegate { OpenCustomDialogue(); }) };
OpenCustomDialogue method sends a notification to client side so required dialog can be opened,
This seems to work, but could you please clarify if this is the recommended way? Is it possible to initialize a ViewModel, similar to TypeEditors viewmodels, for dialogs opened this way?
I have also tried adding verbs at client side during ComponentDesignerProxy initialization, but i got the following error:
The text was updated successfully, but these errors were encountered: