ApplyAvailabilityEffect issue on SurfaceButton

Topics: Conventions
Feb 2, 2013 at 8:06 PM
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.