Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Bind reference to object

$
0
0

Hello everybody,

In a C#/WPF application, I'd like to know if it's possible to pass the reference to an object's property asCommandParameter.
Usually, I do something like this to send parameter to a command :

<Button Content="Send" Command="{x:static MyCommands.Send}" CommandParameter={Binding Path=Property1}"/>

Is it possible to pass the reference to Property1 to initialize it from aICommand ?

In C#, it's easy with the keywoard out but in WPF ... :(

Thanks in advance for your suggestions.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>