小编San*_*han的帖子

MS.Internal.XcpImports.MethodEx(IntPtr ptr,String name,CValue [] cvData

我收到错误"值不在预期范围内".堆栈跟踪如下所示.请帮忙...

at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   at Microsoft.Phone.Controls.Pivot.ReleaseMouseCaptureAtGestureOrigin()
   at Microsoft.Phone.Controls.Pivot.OnManipulationDelta(Object sender, ManipulationDeltaEventArgs args)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
Run Code Online (Sandbox Code Playgroud)

windows windows-phone-7

8
推荐指数
1
解决办法
704
查看次数

在Windows Phone 8中检测到Layouy循环异常?

我有一个LongListSelector,它包含一个地方列表并对它们进行排序我有一个listpicker和一个用于搜索和listpicker的文本框来选择类别..但是当我选择一些特定的类别时,它直接转到debugger.Break和它显示的异常是检测到LayOut循环.

我无法检测到这个问题,因为它甚至没有被try/catch捕获.

当我在网上搜索这个问题时,它表示你不应该调用任何布局更新事件,但是我无法进行大小写,因为我的列表必须根据排序进行更新.

如果有任何想法如何解决这个问题请帮助.....

c# exception windows-phone-8

3
推荐指数
1
解决办法
1821
查看次数

LongListSelector Windows Phone 8中的不一致的右边填充

我正在开发一个使用longlistselector的应用程序.我有两个代码库1用于wp7而另一个代码用于wp8但是我的长列表选择器在我创建的项目分隔符中给出了正确的填充,并且相同的代码在wp7上工作正常.

我的longlistselctor代码是

 <controls:LongListSelector Margin="30,30,30,30"   VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Visible"  x:Name="listofintroductions"
                Background="White" Visibility="{Binding Hotintrovisibility, Mode=TwoWay, UpdateSourceTrigger=Default}" ItemsSource="{Binding introductions, Mode=TwoWay, UpdateSourceTrigger=Default}">
                <controls:LongListSelector.ListHeaderTemplate>
                    <DataTemplate>
                        <Grid Margin="0,0,0,0" Height="100">
                            <StackPanel Orientation="Horizontal">
                                <Image Source="/Images/flame.png" Stretch="Uniform" VerticalAlignment="Center" HorizontalAlignment="Left" Height="45" Width="40" Margin="26.5,0,0,0"/>
                                <TextBlock Text="Hot Introductions" Foreground="#404041" FontFamily="/Fonts/HelveticaNeue.ttf#Helvetica Neue"  FontSize="25.5" FontWeight="Normal" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0,0,0"/>
                            </StackPanel>
                            <Grid Height="2" Background="#E6E6E6" Width="480" VerticalAlignment="Bottom"/>
                        </Grid>
                    </DataTemplate>
                </controls:LongListSelector.ListHeaderTemplate>
                <controls:LongListSelector.ListFooterTemplate>
                    <DataTemplate>
                        <Grid x:Name="viewallintros" Tap="viewallintros_Tap" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                            <TextBlock Text="View all potential intros" FontFamily="/Fonts/HelveticaNeue.ttf#Helvetica Neue"  FontSize="25" Padding="20" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#404041"/>
                        </Grid>
                    </DataTemplate>
                </controls:LongListSelector.ListFooterTemplate>
                <controls:LongListSelector.ItemTemplate>
                    <DataTemplate>
                        <Grid x:Name="hotintrotemplate" Tap="hotintrotemplate_Tap" > …
Run Code Online (Sandbox Code Playgroud)

c# xaml longlistselector windows-phone-8

3
推荐指数
1
解决办法
1090
查看次数

Windows Phone 8中应用程序栏的本地化

我希望本地化我在App.xaml中制作的App Bar,但是当我尝试绑定条形项目的文本时,它说文本不能为空,我尝试了本地化应用程序栏的其他示例,但它们都没有用于app栏,可以在所有页面上使用..

c# xaml windows-phone windows-phone-8

2
推荐指数
1
解决办法
4121
查看次数