LongListSelector in WP8 - xaml

I am trying to create my first WP8 application. I have good experience on Silverlight & WPF however this is not a cake for me which I expected :(.
I am making a Create Employ Form in which user entered different information of the employ. I need to show Country List Combobox. I noticed that in WP8, I will have to use LongListSelector but I am confused that how will I display it with my other textboxes etc control into the FORM. LongListSelector work on the full page but I want to show it like a ComboBox in simple window form application.
I know this is very basic question but I will appreciate for your help.

you cant use combobox in wp8 ...
you can use ListPicker it is a new control introduced in wp8 toolkit...
in this if your list contains less than 5 members than it will show it as dropdown otherwise it will show it as a list on a different page.

Set the Height and Width properties for Lonlistselector or otherwise change the control ListPicker simmler to CombooBox.

Related

ListViewGroups vanish when used in WinForms ToolStripControlHost

Windows 10, VS 2019 Community, VB.Net...
I'm wanting to use a listview control as a custom menu. Created a usercontrol, added a listview and populated it with groups and items in each group. I then added it to a ToolStripControlHost, and this was in turn added to a ContextMenuStrip which serves as the dropdown for a menu item on my form. Works fine except that the groups don't show up. The listview items are there but no groups. What might cause this? This image:
shows the usercontrol in the designer and also at runtime. Thanks in advance.

VB.NET - How to Create Information Box

I'm creating a form that will display a long list of properties and their associated value. I'd like to display them in a sort of table-like control. Something with heading values at the top and a list of organized data underneath it. Something like these:
I realize those 2 examples aren't exactly the same but I'm flexible on what I produce as long as it gives a similar effect. My question is, how do I create a list like that? Is there a control in the Visual Studio toolbox that will produce this effect?
I'm sure there's something similar that easy to find but I can't figure out what to call that control so my searches haven't turned up anything useful.
Any help would be greatly appreciated. Thanks!
A combination of ListView and TabControl controls could be used to emulate what you're showing above. See the links for ListView and TabControl to help you get started.
Yes, there are windows form controls that provides this functionality.
For the tabbed windows use the TabControl:
For the different lists use a ListView control in the mode Details - which means a list with columns:
For the second feature, the ListView control has the Group features:
In order to group items togheter set the group for the chosen item(s):
All of this can be of course done programatically. There are good tutorials on MSDN and Channel9.

How to set the amount of fields defined by user in VB

How do I set a number in a up/down box then press a button to show me a second form with the amount of fields (like labels with text boxes) defined in the up/down box? I'm new to programming so try to explain in really simple terms if you can. Thanks
Code based solution you can implement now
Container controls in VB.Net inherit usually inherit from Panel control which owns a collection by name Children.
You can add dynamically created controls to this collection to create the second form.
Complex but technically sound solution
Invest sometime to learn XAML and create XAML templates to this job for you. Refer the link here which solves same problem in C#.

Windows 8 GridView - show two items per time

I need to implement a sort of book using the GridView Control.
In particular I'm looking for a way to display only 2 items per time and still to be able to scroll the whole list using scrollbars.
Your question isn't very clear, but I'm assuming you are asking how to ask 2 rows or columns of blocks to your application.
Have a look at the default new Metro app template. It's hub page has a multi-line gridview. The key is to use a WrapGrid, or VariableSizedWrapGrid to display your items. In the example, a gridview is used, but then the wrapgrid is used as the item template (used for each group of items).

how to place the imagekey to the right side of the listview

I am trying to add an imagekey to my items and it works fine except that the image
appears on the leftside of the listview in vb.net.
What I am trying to do is have it appear on the right side or in another column,
but I can't seem to do that.
can anyone help?
Thanks
Gibit
I assume you want to have an image in some other column when the listview is in Detail mode. You can't do that in the standard .NET listview control by default. I believe you would need to override a bunch of drawing-related events and possibly deal with some Win32 calls to have images show in subitems.
However, there is an open source custom listview control for .NET called ObjectListView that supports this feature. You could use that instead of the built-in one.