Forms9Patch icon indicating copy to clipboard operation
Forms9Patch copied to clipboard

Forms9Patch:Image Source Binding

Open matibak opened this issue 4 years ago • 4 comments

Hi, How to set path to the image using data binding in XAML? I would like to to something like:

                <Forms9Patch:Image
                    Source="{local:ImageMultiResource Binding ImagePath}"/>

Now only direct path is available.

                <Forms9Patch:Image
                    Source="{local:ImageMultiResource Forms9PatchDemo.Resources.Images.redribbon}"/>

Thank you in advance

matibak avatar Apr 06 '20 10:04 matibak

Yes, I also looking exactly the same. any ideas

nrooban avatar Apr 23 '20 11:04 nrooban

@matibak and @nrooban -

Were you able to try the example in the documentation? https://baskren.github.io/Forms9Patch/guides/ImageSource.html#xaml-example

If so, were there any issues?

baskren avatar Jun 24 '20 13:06 baskren

This example does not show setting data binding to a ViewModel

matibak avatar Jun 24 '20 13:06 matibak

Thanks for your patience with me. I misunderstood your question. This is something I haven't given any thought to and don't have a clue as to the effort required for implementation. Not making any promises.

baskren avatar Jun 24 '20 14:06 baskren