Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add custom Verbs at Server or Client? #36

Open
valiahmetovv opened this issue Apr 26, 2024 · 0 comments
Open

How to add custom Verbs at Server or Client? #36

valiahmetovv opened this issue Apr 26, 2024 · 0 comments

Comments

@valiahmetovv
Copy link

valiahmetovv commented Apr 26, 2024

Hi @KlausLoeffelmann

I'm trying to implement a simple verb for RootDesigners and ComponentDesigners:
image

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:
VerbError

@valiahmetovv valiahmetovv changed the title Adding custom Verbs to ComponentProxyDesigner causes error How to add custom Verbs at Server or Client? Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant