Solved

Windows Mobile 7 - Best way to display 'Properties'

Posted on 2011-09-27
1
211 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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sprint Iphone 5s ringer issue 4 37
Mobile phone 15 123
moto 4g plus silence 65 133
Way to create an iPhone app for my customers 8 41
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…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

740 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