c# UWP Listview/Scrollviewer indicate more items - c#

i have a Listview with big ListViewItems. I can show two items at the most and if the user wants to see more he has to scroll/swipe. However, this is a rare case.
The problem is, the user has no hint if there are more items and has to swipe for trial. I wonder if there is a best practice to indicate that there is more (hidden) content. My first simple approach would be a Textbox and show it if the ObservableCollection consists of more than two items but i doubt that this is the best way to do it.
What would be your approach?
Regards,
Nils

Related

Creating a MessageBox with multiple Checkboxes

In a recent project I'm planning to allow the user to make certain configuration using a MessageBox with various CheckBoxes. The number of these CheckBoxes is variable and depending on the amount of entries the User made beforehand, so I don't know how big of a Box I need and how many CheckBoxes there will be inside it.
When the user is done checking and unchecking, he will press the "OK" Button and the values should be returned and saved.
Multiple questions to this whole thing:
1. Is this a good/logical way to approach this whole thing? (Having the user make yes/no configurations to an unknown amount of options)
2. How would I create a MessageBox/Pop-Up with an uncertain amount of CheckBoxes?
3. Is there any smart way to design that box, so that it is not to big or to small and fits every option evenly spaced?
Is this a good/logical way to approach this whole thing? (Having the user make yes/no configurations to an unknown amount of options)
Yes, what else could u do if the options to agree with depend on previous settings. So yes this design is ok.
How would I create a MessageBox/Pop-Up with an uncertain amount of CheckBoxes?
In general, i highly suggest to not use the standard MessageBox of the .NET Framework. I would make my own window, and place all in with an yes/no button.
Is there any smart way to design that box, so that it is not to big or to small and fits every option evenly spaced?
Design ur window based on a Grid. Then pick a place that can be ur viewing area. In this place add some kind of stack control ae StackPanel. Then just load dynamically ur controls into this stack and ur done.

Multi-level Combo Box in Windows Forms

I would like to use Combo Box in my WinForms application to select only one option out of many. This choice affects the whole application and is pretty important, so I don't want to use Menu Strip for this. Therefore Combo Box is the obvious choice.
There is one problem though, I have a two-level hierarchy of these choices and I need to select and display options from the second level. Put simply, I would like to obtain something like this:
Is there a way to do this or something similar easily using WinForms tools? Or some easy way to implement this? I haven't really implemented any visual controls in WinForms before and I don't want to waste a lot of time by learning how to. Thanks for any answer.
For anybody that still needs this, you can use the ToolStrip with menu items to represent multilevel combo-boxes.
Attach click listeners to the ToolStripMenuItems and use OwnerItem to read the text of the parent.

How to increase the number of contents to be stored on a listbox in c#

I'm trying to store huge amount of data on a listbox. For example, i was about to store more than thousand of words on a listbox, suddenly it stopped accepting inputs on the collection.
Is there any way to increase the limit of contents to be stored on a listbox in c#?
Virtualizing listbox is the correct technical answer. However, I think the more important question is Why, not How. IMHO, in a practical sense, a listbox with 1000+ items is unusable in almost all cases. How will a user remember the choices they have seen or selected as they scroll further into the 1000+ items?
You and your users might be better served by posting a question on the sibling site here at StackExchange, User Experience. There you might ask for the best way to present a very large number of choices to a user.
In WPF the ListBox control is a virtualizing listbox - in that it only holds in memory whats currently in view in the control. That makes it able to handle very large backing data collections. Its not clear whether your in WPF or forms - if in forms maybe you need to look at a virtualizing listbox.
You might try something like: this that appears to be a winforms compatible listbox built using wpf (so will probably be virtualizaing) - why not ask them about large data sets.

Selecting multiple check edit boxes in a grid control

I'm trying selecting multiple check edit boxes when added as a repository item in a grid control, but at the moment it only allows me to select one at a time. So far I've seen that one need to unbound the checkedit's. But I don't know how to do this.
Does anyone have good examples or links of how I can get this working.
Because what I need to do is select certain option in the beginning of a process and then late display the exact same selections but still with the unselected ones
Thanks
The functionality you are asking about is the default one for XtraGrid, DXGrid (WPF). I believe that you are using XtraGrid and do not understand the problem you ran into. Everything should work properly and should not require additional adjustments. Could you please explain the problem in greater details. If the XtraGrid does not allow the end-user to edit its data, we need to know which DataSource you are using.

Free advanced dropdown list control (Windows Forms .Net)

I'm looking for a free advanced dropdown list control. Basically something that provides a dropdown list which can have icons, and multiple bits of text per entry (preferably one large bit of text and then a smaller bit of text underneath).
Anyone know of such a control? I've had a look but can't seem to find one.
If I can't find it I spose I'll have to create it myself. I've done a bit with custom controls but I'm not really sure how I'd go about this...how would one take a ComboBox or something but make each entry completely graphically customisable?
Any links to controls, or hints on how to create one would be greatly appreciated.
it's not a drop down list, but I think you can use the knowledge here to do the same thing
I haven't found anything on the free side of WinForms that lets you do this. If you have green fields, however, WPF gives you what you're looking for out of the box.
Check out Krypton Toolkit which is free.

Categories

Resources