Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam using textbox and listbox when i type "a" in textbox it shows "a" based words in listbox but down that list box i have other controls too.i made listbox to be visible only when data is binded to it from database .but the problem is its size is getting increased.i want to show it above the controls .is it possible using wpf.

What I have tried:

<wrappanel panel.zindex=1>
<textbox name=z width=20>
<listbox width=20 visibility=hidden>
<textbox name=x width=20>




when i enter letter in textbox it binds data to listbox and makes listbox to be visible.and its getting extended means its size .this leading textbox named as x also going down .i want to make this listbox to be front of x textbox .i dont want to get it extended.

if anyones know this ,can you please help me over this issue
Posted
Updated 24-Aug-17 2:59am
v2

1 solution

A WrapPanel does just what it's name would suggest - it wraps objects around to fill available space. I suspect what you are thinking of is a StackPanel - this "stacks" the items either horizontally or vertically depending on how you set its Orientation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900