callisto icon indicating copy to clipboard operation
callisto copied to clipboard

Tile Effect Breaks Button Commanding

Open JoshClose opened this issue 11 years ago • 2 comments

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).

JoshClose avatar May 18 '14 00:05 JoshClose

Buttons already have a click effect and isn't supported by the tilt effect.

dotMorten avatar May 21 '14 16:05 dotMorten

Does overriding the template wipe out the tile effect of the button?

JoshClose avatar May 21 '14 23:05 JoshClose