Coding4Fun 工具 TimeSpanPicker 的全屏视图显示没有 LoopingSelectors

发布于 2024-11-03 01:38:30 字数 1293 浏览 0 评论 0原文

我刚刚将 TimeSpanPickerCoding4Fun.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

茶底世界 2024-11-10 01:38:30

尝试创建一个新的 Windows Phone Silverlight 项目并添加对 Coding4Fun.Phone.Controls.Toolkit 的引用。然后,您可以尝试直接在 Visual Studio 中的代码隐藏中手动添加控件:

Coding4Fun.Phone.Controls.Toolkit.TimeSpanPicker picker = new Coding4Fun.Phone.Controls.Toolkit.TimeSpanPicker();
LayoutRoot.Children.Add(picker);

我通过 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:

Coding4Fun.Phone.Controls.Toolkit.TimeSpanPicker picker = new Coding4Fun.Phone.Controls.Toolkit.TimeSpanPicker();
LayoutRoot.Children.Add(picker);

I downloaded the package via NuGet and it worked just fine. It appears that somewhere in your project there is a control conflict.

莫多说 2024-11-10 01:38:30

这是工具包中的一个错误。这已在修订版中修复:65579

It was a bug in the Toolkit. This has been fixed at revision: 65579

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文