Skip to content

XAML Behavior that allows reacting to multiple tap-events, for WinRT platform

mobilemotion/multi-tap-behavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

multi-tap-behavior

XAML Behavior that allows reacting to multiple tap-events, for WinRT (additional platforms to be added)

Usage:

Namespace reference:

xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"

Triggering Commands (with optional CommandParameter):

<AnyUIElement>
	<interactivity:Interaction.Behaviors>
		<helpers:MultiTapBehavior TapCount="5" Command="{Binding SomeCommand}" CommandParameter="optional_parameter_value" />
	</interactivity:Interaction.Behaviors>
</AnyUIElement>

Triggering any other actions:

<AnyUIElement>
	<interactivity:Interaction.Behaviors>
		<helpers:MultiTapBehavior TapCount="5">
		    <core:InvokeCommandAction Command="{Binding SomeCommand}" />
            <core:CallMethodAction MethodName="MyMethod" TargetObject="{Binding SomeObject}"/>
            <core:NavigateToPageAction TargetPage="SomePage"/>
            ...
		</helpers:MultiTapBehavior TapCount="5">
	</interactivity:Interaction.Behaviors>
</AnyUIElement>

About

XAML Behavior that allows reacting to multiple tap-events, for WinRT platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages