Caliburn-Micro / Caliburn.Micro

A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
http://caliburnmicro.com/
MIT License
2.8k stars 778 forks source link

How to call method using Command in Caliburn WPF #781

Open GaneshSingaravelu opened 3 years ago

GaneshSingaravelu commented 3 years ago

Hi,

I am using "Handycontrol" in my WPF application. Please find below the control. My question is, How can I use this control and call the method using Caliburn. Please do the needful.

<hc:SearchBar Command="{Binding SearchCmd}" />

Thanks, Ganesh. S

vb2ae commented 2 years ago

Currently Caliburn.Micro does not have Command interface. You would need to create a class that implements ICommand interface to use to bind the SearchBar to.

https://www.c-sharpcorner.com/article/explaing-icommand-in-mvvm-wpf/[]([](https://www.c-sharpcorner.com/article/explaing-icommand-in-mvvm-wpf/))