Solved

Windows Mobile 7 - Best way to display 'Properties'

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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