callisto
callisto copied to clipboard
Tile Effect Breaks Button Commanding
I have a button that I'm changing the template on. I'd like to do this so I can keep most of the stuff that comes with a button; commands, styling, etc. If I add tilt on the border in the template, the buttons commands no longer work.
<Button Command="{Binding ...}" CommandParameter="{Binding ...}">
<Button.Template>
<ControlTemplate>
<Border callistoEffects:Tilt.IsTileEnabled="True">
<MoreXamlHere />
</Border>
</ControlTemplate>
</Button.Template>
</button>
I supposed I could just use the template xaml without the button, but I would need to put an interactivity event trigger, and apply the same button styling to it (fonts, etc).
Buttons already have a click effect and isn't supported by the tilt effect.
Does overriding the template wipe out the tile effect of the button?