Solved

Windows Mobile 7 - Best way to display 'Properties'

Posted on 2011-09-27
1
207 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to sync Samsung 6 to Windows 7 3 47
CIM card copy 11 91
Contraction monitoring App 2 56
Migrating From Parse To Back4App 7 69
This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now