积极答复者
可否在Grid App中制作一个单词表,可以按首字母索引的那种?

问题
答案
-
当然可以,这是一个类似Auto-Complete TextBox的东西,原理其实很简单,就是一个TextBox,在TextChanged事件被触发的时候显示位于TextBox下方的ListBox控件,ListBox控件中存放着候选的单词,ListBox SelectionChanged事件触发的时候隐藏ListBox并把值传递给TextBox,但是目前没有现成的控件,需要自己写点逻辑。
我写了一个Demo给你,参考下看看:http://sdrv.ms/19C91le
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已建议为答案 Jamles HezModerator 2013年12月12日 5:41
- 已标记为答案 Jamles HezModerator 2013年12月19日 10:15
-
在Win8.0程序中只能通过Search Contract的方式来做,通过呼出Search Charm来进行搜索,但在8.1的程序中,你可以通过SearchBox来实现: http://msdn.microsoft.com/en-us/library/windows/apps/hh868180.aspx
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已标记为答案 Jamles HezModerator 2013年12月19日 10:15
全部回复
-
Hi 这位同学,
做一个单词页?我不是很明白你想实现什么样的效果,能具体描述一下么?
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later. -
当然可以,这是一个类似Auto-Complete TextBox的东西,原理其实很简单,就是一个TextBox,在TextChanged事件被触发的时候显示位于TextBox下方的ListBox控件,ListBox控件中存放着候选的单词,ListBox SelectionChanged事件触发的时候隐藏ListBox并把值传递给TextBox,但是目前没有现成的控件,需要自己写点逻辑。
我写了一个Demo给你,参考下看看:http://sdrv.ms/19C91le
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已建议为答案 Jamles HezModerator 2013年12月12日 5:41
- 已标记为答案 Jamles HezModerator 2013年12月19日 10:15
-
其实你把代码直接复制过去就行啦,这里面没有用到8.1的新内容,不过我还是上传了一份到Skydrive: http://sdrv.ms/J9388j 做的有点粗糙,但是大概的意思就是这个,你可以在里面更改一下你的逻辑之类的。
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later. -
你的意思是在ItemDetailPage里面想传值给该控件么?还是别的什么意思,我不是很明白。
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later. -
在Win8.0程序中只能通过Search Contract的方式来做,通过呼出Search Charm来进行搜索,但在8.1的程序中,你可以通过SearchBox来实现: http://msdn.microsoft.com/en-us/library/windows/apps/hh868180.aspx
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已标记为答案 Jamles HezModerator 2013年12月19日 10:15