Coding4Fun 工具 TimeSpanPicker 的全屏视图显示没有 LoopingSelectors
我刚刚将 TimeSpanPicker 的 Coding4Fun.Phone.Controls.Toolkit.dll 添加到我的项目中,没有任何自定义。但是,当我在设备上点击控件以打开全屏模式时,我看不到 3 个循环选择器中的任何一个。这是因为 3 个 LoopingSelector 没有添加到页面中。我只能看到“选择持续时间”和“完成/取消”按钮。当我在 Expression Blend 中打开 TimespanPickerPage.xaml 时,情况是一样的。它也是空的。我设备上的全屏模式看起来与 Expression Blend 完全相同:标题和按钮可见,但没有 LoopingSelector。
我尝试过的事情:
直接从下载页面下载 Coding4Fun.Phone.Controls.Toolkit.dll -->在全屏模式下看不到任何 LoopingSelector
下载了完整的源代码并编译了 dll。添加了自编译的dll -->同样的效果,看不到LoopingSelectors
直接将 Coding4Fun.Phone.Controls.Toolkit.csproj 添加到我的项目中 -->同样的效果,看不到 LoopingSelectors
我尝试调试 TimeSpanPicker,但我不确定在哪里查找此错误。
据我了解,打开全屏模式时会导航到 TimespanPickerPage.xaml 。它还从 TimespanPickerPage 调用 InitDataSource
,没有任何错误。那么为什么我看不到任何 LoopingSelector 呢?
那么有人可以告诉我从哪里开始寻找这个错误吗?或者我该如何解决这个问题?我的项目中只需要一个简单的时间跨度选择器来让用户选择持续时间。
旁注:
我还在我的项目中使用 MVVM Light Toolkit、Telerik RadControls Toolkit 和 Silverlight for Windows Phone Toolkit Feb 2011。也许这些工具包之一正在干扰?
我还在 Coding4Fun 工具 Codeplex 页面上打开了一个新的讨论: http:// coding4fun.codeplex.com/discussions/254851
I just added Coding4Fun.Phone.Controls.Toolkit.dll for TimeSpanPicker to my project without any customization. But when I tab on my device on the control to open the full screen mode I can't see any of the 3 LoopingSelectors. It is as the 3 LoopingSelectors are not added to the page. I can only see "CHOOSE DURATION" and the Done/Cancel buttons. It is the same when I open the TimespanPickerPage.xaml in Expression Blend. It is also empty. The fullscreen mode on my device looks exaclty the same as Expression Blend: title and buttons are visible but no LoopingSelectors.
Things I've tried:
Directly downloaded the Coding4Fun.Phone.Controls.Toolkit.dll from Downloads page --> can't see any LoopingSelectors in full screen mode
Downloaded the complete source code and compiled the dll. Added that self compiled dll --> same effect, can't see LoopingSelectors
Added the Coding4Fun.Phone.Controls.Toolkit.csproj directly to my project --> same effect, can't see LoopingSelectors
I tried to debug the TimeSpanPicker, but I'm not sure where to look for this error.
As I understand, the TimespanPickerPage.xaml is navigated to when opening the full screen mode. It is also calling the InitDataSource
from TimespanPickerPage without any errors. So why can't I see any of the LoopingSelectors?
So can someone tell me where to begin to look for this bug? Or how can I fix this? I just need a simple Timespan picker in my project to let the user pick a duration.
Side note:
I'm also using MVVM Light Toolkit, Telerik RadControls Toolkit and Silverlight for Windows Phone Toolkit Feb 2011 in my project. Maybe one of these Toolkit is interfering?
I've also opened a new discussion on Coding4Fun tools Codeplex page: http://coding4fun.codeplex.com/discussions/254851
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试创建一个新的 Windows Phone Silverlight 项目并添加对
Coding4Fun.Phone.Controls.Toolkit
的引用。然后,您可以尝试直接在 Visual Studio 中的代码隐藏中手动添加控件:我通过 NuGet 下载了该包,它运行得很好。您的项目中的某个地方似乎存在控制冲突。
Try creating a new Windows Phone Silverlight project and add a reference to
Coding4Fun.Phone.Controls.Toolkit
. Then you can try adding the control manually in the code-behind directly in Visual Studio:I downloaded the package via NuGet and it worked just fine. It appears that somewhere in your project there is a control conflict.
这是工具包中的一个错误。这已在修订版中修复:65579
It was a bug in the Toolkit. This has been fixed at revision: 65579