I am experimenting with ManipulationMode in XAML for a Windows Store app. I want to have as many settings as possible directly in my xaml, so I do not need to use such code. When I found a solution to get my wire recognition, I found something to do in the code, as shown below:
myGrid.ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateY;
Now I tried to get this to work using some xaml code. Then i used this
<Grid Style="{StaticResource LayoutRootStyle}" ManipulationMode="TranslateY" ManipulationCompleted="manipulationCompleted">
This works fine, but I did not find a way to use ManipulationMode TranslateX and TranslateY at the same time.
I tried to add some logical operators to the attribute and the next fragment inside my grid.
<Grid.ManipulationMode> <ManipulationModes>TranslateX</ManipulationModes> <ManipulationModes>TranslateY</ManipulationModes> </Grid.ManipulationMode>
What am I mistaken or is it impossible to do in pure XAML?
Thanks Hermann
source share