Windows Phone - Display control in front of other controls - c#

I am coding a Windows phone application. In one of my pages, I have a list picker which is populated from the database, therefore its size depends on how many records there are in the database.
My main issue is that if there are records more than a certain amount, the "extra records" are displayed behind the next control in the page and cannot be accessed.
How can I give the list picker precedence over other controls such that it is displayed in front? To give you an idea of what I want, imagine having multiple pictures in Microsoft Word and setting one picture as 'Bring to Front'.
As you can see, the entry "tommy_shaw" is greyed out. This is because it is overlapping the Transaction ID textbox. Attempting to click on "tommy_shaw" would only load up the keyboard to enter text in the Transaction ID textbox.

I believe you can fix it with grouping; which ever one you have in the code first will be displayed first. If you have two images grouped together, then it is going to try and display both of them at the sametime.

I solved it using Canvas.zIndex = 1 in the xaml file

Related

How can the tab index on a WinForms app be reset?

I have a single page WinForms app with dozens of 'tab-able' labels, textboxes, sliders, combo-boxes and other controls.
This is my first real app so the tab index is out of control. I want to reset it and essentially start over.
There are many items that I don't even want tab-able (such as labels).
I know this can be done manually, but I assume there must be a way to batch process this change besides creating code during initialization to modify the tab-index.
I'd prefer to do it in the design screen. My code is boated enough and this is one of the final steps I need to take.
I've tried highlighting everything and change the tab-index to 0 on everything but it appears that something in my app doesn't have a tab-index which seems to disable that option.
My app contains:
month calendars
buttons
labels
comboboxes
text boxes
sliders
checkboxes
rich text boxes
panels
toolstrip
data grid
I only want the text boxes and combo boxes and buttons to be tab-able.
Well, to set it you could use the Tab Order tool (View > Tab Order):
If you need to remove every TabIndex property (which is set in the same order that you add the controls to the Form), you can go to the Designer.cs/vb and replace every assignment with nothing, or with a neutral TabIndex, like 0. Here's an example using a regular expression to do the replacement:
Forgive me if this isn't what you were looking for, but have you tried using the Tab Order option under View -> Tab Order?
From there you click on where you want the tab order to start and click the next until you are done. This is the simplest way to do it anyway.

How do I display the value in the Textbox

How do I display Price value($) in textbox next to a label when user checks the radio button, select one of item from listBox, and then clicks the button?
Is there way to do it on the form1.cs[Design] using the properties? Or do I need to set them up in code level?
listBox item example
EDIT: Solved this in Code-level.
I don't think you can do it without any code.
Also I'd recommend you to check out this page - just a few simple rules can make your chances to get a good answer on this site much better.
And there is not much of coding needed to solve your problem. Take a look on the Events tab in Property view in form designer. A few event handlers to process user input and some fields inside your class to store the data - I assume it is not some serious business app you're dealing with, so all the code you need for this to work would be like 20 lines tops -)

Why Drop down list box in a cell of grid data bound grid is not properly displaying

I am developing a windows application using c#. I use syncfusion's controls instead of visual studios default controls. In my application I am using data bound grid. In this grid I have a cell which has another grid as drop down list. It works fine, but in one situation it is not properly displaying. Situation is:
click in a cell which has grid as list and select its content
instead of clearing content in it directly type a character
list of 4 items get displayed which matched the typed character
now clear content in a cell
now list of all the records get displayed but I can see only one record at a time
It is like list id hiding behind something, I am not getting actually what is happening. Please reply me if you have solution to it. I will provide my code and screen shots if anybody need it.
Thanks
To solve this problem, close and open drop down list

Windows Phone 7, creating temporary pages with data?

My project involves a panorama page with a panorama item. In that panorama item is a listbox containing a stackpanel of buttons. When each button is clicked, it opens up a new page with info pertaining to that button they clicked on.
Now my question is this -- I have about 100 unique buttons in this listbox stackpanel.
Do I have to go through and create 100 pages for these buttons? I am concerned that this might tax on the application size, but wanted to know if there was a way where I can only use 1 page, and all the buttons reference that page, but depending on the button they click that one page will be populated with the specific information.
Is this doable, and if so, could I be pointed in the direction of a tutorial for it or someone very nicely provide some code to accomplish this?
Sincerely,
Tom
Create an instance of PanoramaItem and add it to the Items collection of your Panorama object.
Since you will need to refer to your Panorama object in code, you should give it a name. (You don't have to, but that's the least mucking about.)
How you get content into this PanoramaItem is another matter for which several approaches spring to mind, but more interesting is the question of how you cause this new PanoramaItem to be the selected item. Fast forward through much debugging and heartache: you can't.
Use a Pivot control and PivotItem and you will be able to set the SelectedItem of the Pivot to the freshly minted PivotItem.

Paged Custom ComboBox

I would like to have some sample code on how to do a paginated ComboBox.
My data consist on 1300+ items. When the user clicks the combo box arrow, the combobox will display display 25 (page size configurable) items at the time with arrows up/down (depending on page location) so that the user can request the previous/next page.
The data is coming from a generic list.(List)
Thus, the idea is to display only a subset of the data at the time.The user can scroll and select from the list as per normal combobox. At the top and bottom of the list should be a new button to request the previous or next page of navigator values.
Note: All data is read only. For legacy issues I can only use Winforms (.net 2.0) and C# but VB.net code will do as well
you might want to consider using a treeview as a dropdown control for your combobox, smth like is done here:
you can get source code for this control here: ComboBox control with a TreeView I guess it should give an idea on how to proceed with your task
regards

Categories