Interactive MapIcon, Windows Phone 8.1 Universal App - c#

so, I have an app which allows users to add recommendations for restaurants and places in a certain area, when added a MapIcon is added to map and data pulled from parse, what i need is a way that when the MapIcon is clicked that is displays the information for that recommendation, another option is adding a custom user control to the map. put I would prefer the first way. Any Help would be appreciated :)

You can't make MapIcon (and other children of the MapElements collection) interactive. These are controlled by the native MapControl.
What you can do, is add normal XAML elements to the MapControls Children collection e.g. via a MapItemsControl. There you can use whatever you like. Buttons, Images with tapped handlers and so on. See http://msdn.microsoft.com/en-us/library/jj620947.aspx

Related

Dynamic form with resizing in C# .net

As a learning project in C# .net I am re-creating a Gnome 3 plugin for seeing who of the streamers you follow on Twitch is live. I have the settings form done, I am now working on the interface that is viewed from a click on the taskbar.
This is a rough image of what I want the interface to look like. When two or more streamers are live the interface would add another block and resize the form vertically similar to the menu for selecting a Wifi network in Windows.
What would be the best way for me to complete this?
My current thought is to maybe create a custom control and just place those inside a FlowLayoutPanel with some kind of code to change the vertical size of the form to match the added entries. Maybe this can be done without a custom control and be done with code inside a FlowLayoutPanel? I'm not too sure.
Ideally I would also have a click event in the panel for each streamer so I could then open a browser to their channel. A slight highlight would also be a plus (maybe change the background colour based on mouse hover).
Thanks in advance for any suggestions!

Grouped Collapsible Navigation Control Windows Store App?

I am looking for a grouped collapsible navigation control for use in one of the Windows 8.1 apps I have searched quite a bit and am not able to find this control.However I do find few existing apps in the store using this control, the mail app being one such example. Is there any collapsible grouped control available ?
Else I figure I should use a custom control with a button and an attached flyout
But the flyout would disappear if the user clicks anywhere else in the screen.
Windows Phone 8 has an Expander control in the form of the Windows Phone Toolkit but the performance is very poor when put into a ListView as you would do if you were trying to mimic the built in email app. The best way I've found to get the behavior you're after is to put all of the group header items into the ListView then use an ItemTemplateSelector to choose the visual appearance of group headers vs their items, then only add the child items (to the main ListView) when the group header is expanded. It sounds complicated but I wrote a blog about it here and there is a source example of it here and here

Building a custom control in C# (Metro App) that has a page flip effect

I want to create a custom control for Metro Applications written in C# (from my recent research I guess what I am trying to implement is an ItemsControl) that can hold a number of pages, each page can contain any combination of XAML controls, very similar to the FlipView control.
In my custom control I want to show two pages at a time in a book format and with page flip animations that are dynamically bound to the position of the user's drag, exactly like this example: http://turnjs.com/
I have no idea on where to look for references since the only page about creating custom controls is still under development: http://msdn.microsoft.com/en-us/library/windows/apps/hh465455.aspx
Can someone point me at the right direction?
I wish to know how to create a custom control that manages pages with arbitrary content.

Tree-view Alternatives

im currently working on a project that involves listing contacts with a photo and email address, kind of like messengers contact lists.
The problem is ListView just dont cut it!
I need something that's like the MSN Live Messenger contact lists, Witch consist of a large padded area with photo(32px), And text to the right of the photo but also have the expandable headers.
Anybody give me some advice on any references i can use or if its possible to do with Tree-view can someone show me an example.
Kind Regards.
I would recommend making a WPF user control and hosting it in in an ElementHost control in your Windows Forms project. I've used WPF inside WinForms in the past and it works great.
Assuming you add an element host control onto your WinForms called elementHost1:
elementHost1.Child = new MyWPFControl();
Are you using WPF? You could use a ListView after all with an Expander for the ItemTemplate. Blacklight also has a great AnimatedExpander: see Blacklight releases.
Hope that helps!

Non intrusive 'live' help system

I'm searching a C# component or code snipped that does something like that:
I want to inform new users about the most important program functions if he opens a new window for example.
It should be a box showing text (formated if possible) that is of course not modal and has some mechanism to 'go out of the way' if the user enters the textbox area. So that he can access what's underneath it. Alternativly the window could also stick to the border of the window, but there needs to be a way that this also works if the window is maximized.
So I want to present him with a short introduction of what he can do in every corner of my app most painlessly.
Thank you!
I use a "bar" at the top of every window to display some information about the current window/dialog.
Use tooltips. They can be programmatically controlled, and you can have them appear at will. You'll need to add the functionality to your app to keep track of what tooltips have been shown to the user already.
You can add a "balloon" style by setting the IsBalloon property to true.
You can also replace them with smaller descriptions for when the user wants to hover over the control and have them displayed again.
I'm already using tooltips heavily. However, they aren't very practical when displaying bigger amounts of data and they are bound to specific user actions.
Have you considered having a contextual menu for each form / page which contains links to Adobe Captivate style presentations for each available task? That way the user can investigate an example of how to achieve a task relating to what they are trying to achieve from within the application / site.
This approach would require a good deal of maintenance and management if your code changes regularly but coordinating it with a training department can provide rich help features in your application.
See http://www.adobe.com/products/captivate/ for more information.

Categories