C# 如何在Windows Phone 8中使用ShareStatusTask共享列表框项目

C# 如何在Windows Phone 8中使用ShareStatusTask共享列表框项目,c#,wpf,xaml,windows-phone-8,listitem,C#,Wpf,Xaml,Windows Phone 8,Listitem,我对编码还不熟悉,但使用教程,到目前为止,我已经创建了一个小故事应用程序数据盲使用类。我想在下面的XAML上实现一个共享上下文菜单 Story.xaml 我在internet上搜索了两天,查找此共享状态任务/共享链接任务。但我所能找到的只是像上面的.cs文件这样的示例文件。我应该向shareStatusTask添加什么;要共享上述XAML文件中的数据?@dkozl请查看此问题。没有人在帮我摆脱这一切,请帮帮我 <ListBox x:Name="ListParagraph"

我对编码还不熟悉,但使用教程,到目前为止,我已经创建了一个小故事应用程序数据盲使用类。我想在下面的XAML上实现一个共享上下文菜单

Story.xaml


我在internet上搜索了两天,查找此共享状态任务/共享链接任务。但我所能找到的只是像上面的.cs文件这样的示例文件。我应该向shareStatusTask添加什么;要共享上述XAML文件中的数据?

@dkozl请查看此问题。没有人在帮我摆脱这一切,请帮帮我
 <ListBox x:Name="ListParagraph"
         ItemsSource="{Binding Path=ListParas}" 
         Loaded="ListParagraph_Loaded" >
        <ListBox.ItemTemplate>
            <DataTemplate>
                <ts:ParagraphTemplateSelector Content="{Binding}">
                    <ts:ParagraphTemplateSelector>
                        <DataTemplate>
                            <StackPanel Background="Transparent" Margin="10,0"  >

                                <toolkit:ContextMenuService.ContextMenu>
                                    <toolkit:ContextMenu x:Name="ContextMenu"> 
                                       <toolkit:MenuItem x:Name="Share"
                                           Header="Share" Click="Share_Click"/>
                                     </toolkit:ContextMenu>
                                </toolkit:ContextMenuService.ContextMenu>


                                <TextBlock  x:Name="Detail" 
                                     Text="{Binding Path=Name, Mode=OneWay}"
                                      TextWrapping="Wrap">

                            </StackPanel>
                        </DataTemplate>
               </ts:ParagraphTemplateSelector>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
private void Share_Click(object sender, RoutedEventArgs e)
    {
        ShareStatusTask shareStatusTask = new ShareStatusTask();
        shareStatusTask.Status = "";
        shareStatusTask.Show();
    }