Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows Mobile 7 - Best way to display 'Properties'

Posted on 2011-09-27
1
Medium Priority
?
224 Views
Last Modified: 2013-12-27
Hi - just wanting some advice as to how best to display a simple 'Properties' style page.  I thought that a Grid would be the best way to display this but opinions please.  Coming from a Windows Forms background I did try :-

 
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
  <Grid.ColumnDefinitions>
	<ColumnDefinition Width="150" />
	<ColumnDefinition Width="300" />
</Grid.ColumnDefinitions>
			
<Grid HorizontalAlignment="Left" Margin="7,13,0,0" Name="gridJobDetails" VerticalAlignment="Top" Width="450" />
<TextBlock Grid.Row="0" Grid.Column="0" Text="Job ID:"></TextBlock>
<TextBox Grid.Row="0" Grid.Column="1" Name="tbJobID"></TextBox>
		
<TextBlock Grid.Row="1" Grid.Column="0" Text="Address:"></TextBlock>
<TextBox Grid.Row="1" Grid.Column="1" Name="tbAddress"></TextBox>

Open in new window


But this doesn't give the effect I am after of a 2 column grid with 2 rows.
0
Comment
Question by:ChrisMDrew
1 Comment
 
LVL 48

Accepted Solution

by:
Mikal613 earned 2000 total points
ID: 36911042
Why create grids??  Just create a StackPanel with labels
<StackPanel>
   <TextBlock Text="Job ID:"></TextBlock>
    <TextBox Name="tbJobID"></TextBox>
</StackPanel>

Although one advantage of the grid is when the devices orientation changes the grid should handle that.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question