I am trying to figure out what good stackpanel can bring to the table. Haven't been able to do much with it yet. I figured, you can define some stack panels on top of each other and define them as levels as seen below. I am not sure where to go from there but this looks like an OK way to align text etc
<phone:PhoneApplicationPage
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:es="clr-namespace:Microsoft.Expression.Shapes;assembly=Microsoft.Expression.Drawing"
x:Class="BasicLayout03StackP01.MainPage"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
shell:SystemTray.IsVisible="True">
<Grid HorizontalAlignment="Left" Height="768" VerticalAlignment="Top" Width="480">
<Grid HorizontalAlignment="Left" Height="470" Margin="0,10,0,0" VerticalAlignment="Top" Width="480" Background="#FFBD6464">
<StackPanel HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="480" Background="#FF4C8BCB">
<TextBlock TextWrapping="Wrap" Text="TextBlock" Margin="10,0,10,0"/>
</StackPanel>
<StackPanel HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="480" Margin="0,50,0,0" Background="#FF6DAA15">
<TextBlock TextWrapping="Wrap" Text="TextBlock"/>
</StackPanel>
<StackPanel HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="480" Margin="0,100,0,0" Background="#FFC32424">
<TextBlock TextWrapping="Wrap" Text="TextBlock"/>
</StackPanel>
<StackPanel HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="480" Margin="0,150,0,0" Background="#FF092729"/>
<StackPanel HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="480" Margin="0,200,0,0" Background="#FF4DAE8F"/>
</Grid>
<Grid HorizontalAlignment="Left" Height="288" Margin="0,480,0,0" VerticalAlignment="Top" Width="480" Background="#FF03135B"/>
</Grid>
</phone:PhoneApplicationPage>
Monday, January 20, 2014
Subscribe to:
Post Comments (Atom)
Categories
Blog Archive
-
▼
2014
(22)
-
▼
January
(22)
- What is Asynchronous Programming?
- Quality C# (C sharp) Code Examples
- Windows phone emulator not connected to internet
- Using ListBoxes with Buttons and Adding Many Buttons
- Data Binding with a Slider
- Data Binding with Radio Buttons and Two Way Binding
- Data Binding to Control Multiple Objects - Part 1
- High End Windows 8 Phones
- Adding Event Handlers to Controls
- Stack Panel Experiments Part 1
- Using Grid in Windows Phone 8 Development Part 3
- Using Grid in Windows Phone 8 Development Part 2
- Using Grid in Windows Phone 8 Development Part 1
- Simplest Data Binding for Windows Phone 8
- Very simple code using generics
- Casting nedir?
- Generics nedir? Basitce ne ise yariyor
- Windows Store trends, interesting data showing wha...
- How to submit your app to windows app store
- Boxing and Unboxing
- Using Indexers
- Setting logo, publisher name, tile image and some ...
-
▼
January
(22)
Popular Posts
Powered by Blogger.
0 comments:
Post a Comment