Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: WPF button Command vs Content

$
0
0
I have a bug related with the use of commands in buttons in WPF.

I have the following code
<Button x:Name="CancelCommand" 
            Content="Cancel"
            Command="CancelCommand" ... />
When I render this button the text appearing in the button is something like Framework.UI.RellayCommand (the namespace of the command) instead of the content I define.

Yet, when i withdraw the 'x:Name"CancelCommand"' having
<Button Content="Cancel" 
            Command="CancelCommand" ... />
I have the desired behaviour and text within the button.

Can someone help me clarify if there is some kind of problem regarding the use of Caliburn naming conventions and the use of Commands?

Thx,
lcrsantos

Viewing all articles
Browse latest Browse all 1760

Trending Articles



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