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

New Post: ApplyAvailabilityEffect issue on SurfaceButton

$
0
0

Hello, to everybody. I have a little problem with Availability effect on my SurfaceButton control. When I define in my ViewModel CanButtonStart { get return false; } } it is working for following View: <Button x:Name="ButtonStart"/> which is displayed as IsEnabled=False. But when I use <s:SurfaceButton x:Name="ButtonStart"/> the same convention is not working any more. Only if I define my own binding like this <s:SurfaceButton x:Name="ButtonStart" IsEnabled={Binding CanBtnStart}/> then this convention is working. Can you please tell me how to fix this issue. If I should add some custom convention using ConventionManager. It just seems odd to me as the SurfaceButton has a ButtonBase base class just as Button control has.

Thank you for your help. And thank you for this marvelous project.


Viewing all articles
Browse latest Browse all 1760

Trending Articles



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