Answered by:
Search box as search charm like in Bing Maps App

Question
-
Hi all,
can anyone help with creating a search charm that works like a search box in win 8.1 app store. The example I would like to copy is the Default Bing Maps app. Instead of having a search box we have a charm slide in so we can utilize the full screen for our map data.
Tuesday, March 11, 2014 12:43 AM
Answers
-
Hi Stuart,
Yes, Why not.
As you are working with win8.1, you could show the setting flyout by Show method. To set a listener for user keyboard action should be a good idea.
public void ShowCustomSettingFlyout() { CustomSetting CustomSettingFlyout = new CustomSetting(); CustomSettingFlyout.Show(); }
And I'm not quite understand what kind of interaction you want to do, but SettingsCommand class seems to be a suggestion for you.
I would strongly recommend you to try the sample App settings sample, take a look at the second and third scenario, you should be able to find the interaction stuff with the second one, the setting flyout on the third one.
--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.- Marked as answer by Jamles HezModerator Tuesday, March 25, 2014 7:50 AM
Wednesday, March 12, 2014 2:55 AMModerator -
I would strongly recommend you to try the sample App settings sample, take a look at the second and third scenario
I found that the fourth scenario was more useful. It shows the use of SettingsFlyout.showSettings (msdn.microsoft.com/en-us/library/windows/apps/hh770581.aspx - i'm not allowed to post links), which although the doco doesn't suggest it, will show a flyout that looks like a settings page, but that doesn't appear in the list of settings. This is the behaviour of the Bing Maps app.- Marked as answer by Stuart Paice Thursday, March 27, 2014 6:01 AM
Thursday, March 27, 2014 5:51 AM -
I wrote a blog post on how to do this a while back. You can find the post here: http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/06/20/geocoding-with-the-search-charm.aspx
For future questions about Bing Maps try asking in the Bing Maps forums: http://social.msdn.microsoft.com/Forums/en-US/home?category=bingmaps
http://rbrundritt.wordpress.com
- Edited by Ricky_Brundritt Wednesday, March 12, 2014 11:40 AM
- Proposed as answer by Ricky_Brundritt Wednesday, March 12, 2014 11:41 AM
- Marked as answer by Jamles HezModerator Tuesday, March 25, 2014 7:50 AM
Wednesday, March 12, 2014 11:40 AM
All replies
-
Hi Stuart,
Not sure if you are working with win8.1 app or win8.0 app.
If you are working with win8.1 app. Read this should help you: Quickstart: Add app settings, you could customize your setting charm, add your controls and style it. And you do not need worry about utilize the full screen for map data. You can also use SearchBox class inside, read this: Adding search.
If you are working with win8.0 app, I have to say sorry
- there is no in-build search box exist, the only way to search in win8.0 app is to search by search charm.
- you could also customize the app setting, the sample exist on the pack: Windows 8 app samples -> App Setting Sample.
Hope this helps.
--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.Tuesday, March 11, 2014 2:18 AMModerator -
Hi James,
Thanks for the quick response.
We are using 8.1 and I guess the next question can we make the same interaction like the Bing Maps App happen with the SearchBox Control
e.g. a user starts typing and the search settings fly out opens and the SearchBox control in the fly out starts interacting with the user.
Regards Stuart
Tuesday, March 11, 2014 3:08 AM -
Hi Stuart,
Yes, Why not.
As you are working with win8.1, you could show the setting flyout by Show method. To set a listener for user keyboard action should be a good idea.
public void ShowCustomSettingFlyout() { CustomSetting CustomSettingFlyout = new CustomSetting(); CustomSettingFlyout.Show(); }
And I'm not quite understand what kind of interaction you want to do, but SettingsCommand class seems to be a suggestion for you.
I would strongly recommend you to try the sample App settings sample, take a look at the second and third scenario, you should be able to find the interaction stuff with the second one, the setting flyout on the third one.
--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.- Marked as answer by Jamles HezModerator Tuesday, March 25, 2014 7:50 AM
Wednesday, March 12, 2014 2:55 AMModerator -
I wrote a blog post on how to do this a while back. You can find the post here: http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/06/20/geocoding-with-the-search-charm.aspx
For future questions about Bing Maps try asking in the Bing Maps forums: http://social.msdn.microsoft.com/Forums/en-US/home?category=bingmaps
http://rbrundritt.wordpress.com
- Edited by Ricky_Brundritt Wednesday, March 12, 2014 11:40 AM
- Proposed as answer by Ricky_Brundritt Wednesday, March 12, 2014 11:41 AM
- Marked as answer by Jamles HezModerator Tuesday, March 25, 2014 7:50 AM
Wednesday, March 12, 2014 11:40 AM -
Thanks for all the ideas.
Wednesday, March 19, 2014 12:44 AM -
I would strongly recommend you to try the sample App settings sample, take a look at the second and third scenario
I found that the fourth scenario was more useful. It shows the use of SettingsFlyout.showSettings (msdn.microsoft.com/en-us/library/windows/apps/hh770581.aspx - i'm not allowed to post links), which although the doco doesn't suggest it, will show a flyout that looks like a settings page, but that doesn't appear in the list of settings. This is the behaviour of the Bing Maps app.- Marked as answer by Stuart Paice Thursday, March 27, 2014 6:01 AM
Thursday, March 27, 2014 5:51 AM