Looping dynamic options in FloatPage c# xamarin - c#

I want to do a menu item with dynamic options which I fill from a list.
I would grateful if someone could help me...
I have tried putting a foreach inside the Menu item as in the photo, however it didn't work.

Related

Drop down list menu

Hi guys i want to make a drop down menu like that on a picture.
But i cant seem to do it. i tried many ways like combo box and drop down buttons but it does not look like that one in the picture. Ill be thankful to anyone who could help me. thanks
this is the picture https://i.stack.imgur.com/1ma28.png
It seems that your are looking for a MenuStrip to add to your form, for more details see the following article: http://www.homeandlearn.co.uk/csharp/csharp_s4p1.html

Conversation-like view in ListBox or ListView

I am trying to get a conversation-like style going with either a ListBox or Listview but so far unsuccessfully. I don't even know where to start in order to achieve this.
I know how to style ListBox and ListView in other ways, but this particular style I have no idea where to start.
Can anyone please help point me in the right direction? Below is the kind of style I am trying to achieve:
Notice how in the image above, list items are left-aligned, but every other list item is right aligned (but the text inside the item is left-aligned), and every second list item also has a different background color.
I would consider using a DataTemplateSelector. Create a different template for each of the styles. The template selector could select one style if it's user A and another for user B or something along those lines.

Can I show hyperlinks in AutoCompleteExtender?

I'm able to create a List<> of strings and show it in a AutoCompleteExtender, but how can I make these suggestions clickable links? I figured, I could create a List of HyperLink objects, but they just show up as [Object] in the list. Any suggestions?
In simple words, I want to be able to click suggestions from the AutoSuggest list.
Will I need to use some kinda client side script?

how to move a listview item up or down with a button click

I have items in a listview and I want to know how to add 2 buttons one that makes the item move up in the list and one that make the item move down in the list. I figure out how to do it with listboxes but I cant figure out or find where to do it for list views and help is appreciated.
Check out the Listview.Items.Remove and Listview.Items.Insert methods:
listView1.Items.Remove(selectedItem);
listView1.Items.Insert(newIndex, selectedItem);
Dealing with the changing index (when you remove a ListViewItem, the indexes of the list items which come after the selected item all change by one) can be a pain. Also, you will need to manage what happens when you promote or demote an item past the top or lower bounds of the item indexes.
Hope that gets you started.

ListView images just not showing up. Why (Drooping my head in shame that I have to ask)

I am trying to display images in a WinForms ListView that is in details view mode, but images are just not showing up.
I have added a SmallImageList (and a large one for good measure, added images to them, added my items to the ListView, but when I set the ImageIndex nothing happens. Images do not show up. I have also tried using the ImageKey.
Edit: I have added columns to the ListView.
I feel like an idiot that I have to ask about this, but I must be doing something wrong. Any steps I am missing?
Thanx much.
Have you added any columns to the listView? I followed your steps and the only extra thing to do was to add a column to the Columns collection of the listView.

Categories

Resources