1
データテンプレート用のリストボックスがありますが、データテンプレートの1つで傾き効果を無効にしたいのですが、これは機能していません...これが私が試したことです:リストボックス項目の傾き効果を抑制する
<ListBox ScrollViewer.VerticalScrollBarVisibility="Disabled" x:Name="MainListBox" Margin="0,10,0,0" SelectionChanged="MainListBoxSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
<local:Datatemplates Content="{Binding}">
<local:Datatemplates.ThirdItem>
<DataTemplate>
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,10" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1" toolkit:TiltEffect.SuppressTilt="True">
<TextBlock Text="{Binding Title}" TextWrapping="NoWrap" FontSize="{StaticResource PhoneFontSizeExtraLarge}" Style="{StaticResource PhoneTextGroupHeaderStyle}" toolkit:TiltEffect.SuppressTilt="True"/>
<TextBlock Text="{Binding SubTitle1}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSmallStyle}" toolkit:TiltEffect.SuppressTilt="True"/>
<TextBlock Text="{Binding SubTitle2}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSmallStyle}" toolkit:TiltEffect.SuppressTilt="True"/>
</StackPanel>
</Grid>
</DataTemplate>
</local:Datatemplates.ThirdItem>
</local:ProfileSetupDatatemplates>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
私はすでに抑制チルト効果が働いていないところに置いてみました。
私は動作しませんのStackPanelでそれを抑制しようとしている、唯一のボタンコントロール(ボタン、チェックボックスなど)とListBoxItemsに適用される
しかし、私は、私は避けたいものをebededリストボックスを持っているものより。私は自分のコードを拡張して、それをチェックしてください、おそらくあなたはそれをよりよく理解しています。あなたの返信をありがとう –
これは私のために働くdoesnt(WP 8) –