i try to use MVVM for a PixelSense-Project. I bound some elements to the ScatterView:
<s:ScatterView x:Name="MainScatterView" ItemTemplateSelector="{DynamicResource myDataTemplateSelector}" ItemsSource="{Binding Path=MainMenus}"/>
And i defined some DataTemplates:
<DataTemplate x:Key="ActivityTemplate">
<s:ScatterViewItem Loaded="ScatterViewItem_Loaded">
<TextBlock Text="{Binding Path=Text}" />
</s:ScatterViewItem>
</DataTemplate>
<DataTemplate x:Key="MainMenuTemplate">
<s:ScatterViewItem Height="{Binding Path=Size, Mode=TwoWay}" Width="{Binding Path=Size, Mode=TwoWay}">
<TextBlock/>
</s:ScatterViewItem>
</DataTemplate>
As you can see, i try to bind (for example) the height-property to the ViewModel.
It is not working, because my SVI (ScatterViewItem) will automatically be wrapped by another SVI. This is done by the ScatterView. My question is now: How can i deactivate this, or do you know a workaround?
thx for helping me ;-)