Arrange the layout of the text of label and radio buttons in wpf as there is no flowlayout
-
Thursday, March 24, 2011 6:40 AM
Hello guys,
I am a newbie to WPF. I am developing a quiz application in WPF. In that quiz app there will be a question and four options. I dont know the exact length of question's text and their answers too as i will pick them randomly from the database. I want to create an interface which could automatically format the layout according to the length of question which will be hold by a label and their answers which will be hold by radio buttons. Please help me how to do it.
Vishal Kumar Singh
All Replies
-
Thursday, March 24, 2011 3:57 PM
You can try with Grid. And setting the GridColumn width and GridRow height to Auto.
Ajosh Jose- Proposed As Answer by Sheldon _XiaoModerator Thursday, March 31, 2011 2:08 PM
-
Friday, March 25, 2011 7:17 AMModerator
Hi sentimental37,
Yes, follow Ajosh Jose's direction, you could resolve your issue perfectly.
Learn the Grid, this panel will achieve what you need, refer to below links:
http://www.c-sharpcorner.com/UploadFile/mahesh/49/
http://wpftutorial.net/GridLayout.html
Additional, I think you could also refer to the WPF layout system, the link is:
http://msdn.microsoft.com/en-us/library/ms745058.aspx
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Sheldon _XiaoModerator Thursday, March 31, 2011 2:08 PM
-
Thursday, March 31, 2011 2:07 PMModerator
Hi Hi sentimental37,
I am marking your issue as "Answered", if you have new findings about your issue, please let me know.
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

