简体   繁体   English

Windows Phone应用程序栏上的单选按钮?

[英]radiobuttons on windows phone applicationbar?

Hey guys I have this page : 大家好,我有此页面:

在此处输入图片说明

PS: this is temp data, so it don't look so good ;P PS:这是临时数据,所以看起来不太好; P

Now if I click on that filter button, I want a popup window or radio buttons to show in the application bar, is that even possible? 现在,如果我单击该过滤器按钮,我希望在应用程序栏中显示一个弹出窗口或单选按钮,那有可能吗? Or should I try another way of doing this? 还是我应该尝试另一种方式?

As you choose a radio button I am going to have the page filter on the choice made, so I can't leave the page to go make a choice. 当您选择单选按钮时,我将对选择进行页面过滤,因此我无法离开页面进行选择。 Any help/link/tutorial will be appreciated :) 任何帮助/链接/教程将不胜感激:)

Thanks in advance, 提前致谢,

Working on windows phone 8/ silverlight / c# ... 在Windows Phone 8 / Silverlight / C#上工作...

You can't have a radio button in the app bar. 应用程序栏中不能有单选按钮。

I would implement this as a separate page and update your filter when you navigate back to this page. 将其实现为单独的页面,并在您导航回到该页面时更新您的过滤器。 The page instance and view model will be still in memory so it should be a matter of detecting the back navigation in OnNavigatedTo and applying your filter at that point. 页面实例和视图模型仍将保留在内存中,因此应该在OnNavigatedTo中检测向后导航并在此时应用过滤器。 Sharing a ViewModel between this page and your filter page would be the best way of communicating the filter value, but that's not the only way. 在此页面和过滤器页面之间共享ViewModel是传达过滤器值的最佳方法,但这不是唯一的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ApplicationBar绑定Windows Phone - ApplicationBar Bindings Windows Phone 如何在Windows Phone开发中引用ApplicationBar上的按钮 - How to refer to buttons on ApplicationBar in Windows Phone development Windows Phone 8.1上的RadioButtons绑定 - RadioButtons binding on Windows Phone 8.1 Windows XP 7 Beta中的ApplicationBar与CTP不同 - ApplicationBar Working Different in Windows Phone 7 Beta Than CTP 在运行时禁用/启用应用程序栏按钮,并更改事件文本(Windows Phone) - Disable/Enable applicationbar Button in runtime with event textchanged (Windows Phone) 如何使用MvvmCross绑定Windows Phone中的全局ApplicationBar - How to do binding for a global ApplicationBar in Windows Phone with MvvmCross 从代码隐藏处打开Windows Phone ApplicationBar - Open Windows Phone ApplicationBar from code-behind 按应用程序栏按钮循环浏览全景项目,Windows Phone 7 - Pressing applicationbar button to cycle through panorama items, windows phone 7 Xamarin Forms Windows Phone MasterDetailPage-删除默认的ApplicationBar图标 - Xamarin Forms Windows Phone MasterDetailPage - Remove default ApplicationBar icon 当.netframework中的类型为ApplicationBar时,我们如何使用它作为变量或对象(Windows Phone应用程序开发前瞻) - How are we able to use ApplicationBar as a variable or object when it is a type in .netframework (Windows phone app development prospective)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM