Xaml Phone 8.1 EventTragger将参数传递给转换器
我的手机8.1通用应用程序中有以下XAML标记Xaml Phone 8.1 EventTragger将参数传递给转换器,xaml,win-universal-app,Xaml,Win Universal App,我的手机8.1通用应用程序中有以下XAML标记 <Grid x:Name="AuthProviders" > <interactivity:Interaction.Behaviors> <core:EventTriggerBehavior EventName="Tapped"> <core:InvokeCommandAction Command="{Binding Logi
<Grid x:Name="AuthProviders" >
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="Tapped">
<core:InvokeCommandAction
Command="{Binding LoginCommand, Mode=OneWay}"
InputConverter="{StaticResource GridItemSelConverter}"/>
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListView x:Name="AuthenticationProviders" ItemsSource="{Binding AuthenticationProviders}">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel>
<Button Style="{StaticResource LoginButtonStyle}">
<Button.Content>
<Image Source="{Binding Name, Converter={StaticResource LoginConverter}}"/>
</Button.Content>
</Button>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
我不喜欢这样,因为我需要获取原始源代码,并且有很多转换,有没有更简单的方法来获取底层数据模型而不是这样
return ((value as TappedRoutedEventArgs).OriginalSource as FrameworkElement).DataContext as MyActualDataModel