大佬教程收集整理的这篇文章主要介绍了xaml – 如何在Windows Phone 8中制作自适应UI?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0"> <StackPanel> <TextBlock Text="Contact" FontSize="30" HorizontalAlignment="Center" Foreground="Black"></TextBlock> <ScrollViewer x:Name="scroll" Height="650"> <StackPanel x:Name="stack"> <Border BACkground="#E66729" Padding="5"> <TextBlock Text="Email" HorizontalAlignment="Center" FontSize="25"></TextBlock> </Border> <HyperlinkButton Margin="0,10,0" Content="xxxxxxxx" Foreground="Blue"></HyperlinkButton> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="Skype ID" HorizontalAlignment="Center" FontSize="25"></TextBlock> </Border> <TextBlock Text="xxxxxxxx" Foreground="Black" HorizontalAlignment="Center" FontWeight="SemiBold" FontSize="22"></TextBlock> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="numbers" HorizontalAlignment="Center" FontSize="25"></TextBlock> </Border> <StackPanel> <StackPanel Orientation="Horizontal" Margin="0,5,0" HorizontalAlignment="Center"> <TextBlock Text="SALEs:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="+91-xxxxxx" Foreground="Blue"></HyperlinkButton> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0" HorizontalAlignment="Center"> <TextBlock Text="Care:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="+91-xxxxxxxx" Foreground="Blue"></HyperlinkButton> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0" HorizontalAlignment="Center"> <TextBlock Text="HR:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="+91-xxxxxxxxxx" Foreground="Blue"></HyperlinkButton> </StackPanel> </StackPanel> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="Support" HorizontalAlignment="Center" FontSize="25"></TextBlock> </Border> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Care:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="xxxxxxx" Margin="0,0" Foreground="Blue"></HyperlinkButton> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Email:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="xxxxxxxxxxxx" Margin="0,0" Foreground="Blue"></HyperlinkButton> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Skype ID:" Margin="0,0" Foreground="Black" FontSize="22" ></TextBlock> <TextBlock Text="xxxxxxxx" FontSize="22" Foreground="Black"></TextBlock> </StackPanel> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="Human resource" HorizontalAlignment="Center" FontSize="25"></TextBlock> </Border> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Hr:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="xxxxxx" Foreground="Blue"></HyperlinkButton> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Email:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="xxxxxxxx" Foreground="Blue"></HyperlinkButton> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Skype ID:" Foreground="Black" FontSize="22" ></TextBlock> <TextBlock Text="orangemantra" Foreground="Black"></TextBlock> </StackPanel> </StackPanel> </ScrollViewer> </StackPanel> </Grid>
请打开图像,因为我没有声誉.
http://i.stack.imgur.com/lLQR7.png
<Grid x:Name="ContactGrid" Margin="0,0"> <Grid.RowDeFinitions> <RowDeFinition Height="*"/> <RowDeFinition Height="12*"/> </Grid.RowDeFinitions> <TextBlock Text="Contact" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" Foreground="Black"/> <ScrollViewer x:Name="scroll" IsEnabled="True" Grid.Row="1"> <Grid x:Name="ContentGrid"> <StackPanel x:Name="stack"> <Border BACkground="#E66729" Padding="5"> <TextBlock Text="Email" HorizontalAlignment="Center" FontSize="25"/> </Border> <HyperlinkButton Margin="0,0" Content="xxxxxxxx" Foreground="Blue"/> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="Skype ID" HorizontalAlignment="Center" FontSize="25"/> </Border> <TextBlock Text="xxxxxxxx" Foreground="Black" HorizontalAlignment="Center" FontWeight="SemiBold" FontSize="22"/> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="numbers" HorizontalAlignment="Center" FontSize="25"/> </Border> <StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0" HorizontalAlignment="Center"> <TextBlock Text="SALEs:" Foreground="Black" FontSize="22" /> <HyperlinkButton Content="+91-xxxxxx" Foreground="Blue"/> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0" HorizontalAlignment="Center"> <TextBlock Text="Care:" Foreground="Black" FontSize="22" /> <HyperlinkButton Content="+91-xxxxxxxx" Foreground="Blue"/> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0" HorizontalAlignment="Center"> <TextBlock Text="HR:" Foreground="Black" FontSize="22" /> <HyperlinkButton Content="+91-xxxxxxxxxx" Foreground="Blue"/> </StackPanel> </StackPanel> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="Support" HorizontalAlignment="Center" FontSize="25"/> </Border> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Care:" Foreground="Black" FontSize="22" ></TextBlock> <HyperlinkButton Content="xxxxxxx" Margin="0,0" Foreground="Blue"/> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Email:" Foreground="Black" FontSize="22" /> <HyperlinkButton Content="xxxxxxxxxxxx" Margin="0,0" Foreground="Blue"/> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Skype ID:" Margin="0,0" Foreground="Black" FontSize="22" /> <TextBlock Text="xxxxxxxx" FontSize="22" Foreground="Black"></TextBlock> </StackPanel> <Border Margin="0,0" BACkground="#E66729" Padding="5"> <TextBlock Text="Human resource" HorizontalAlignment="Center" FontSize="25"/> </Border> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Hr:" Foreground="Black" FontSize="22" /> <HyperlinkButton Content="xxxxxx" Foreground="Blue"/> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Email:" Foreground="Black" FontSize="22" /> <HyperlinkButton Content="xxxxxxxx" Foreground="Blue"/> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="Skype ID:" Foreground="Black" FontSize="22" /> <TextBlock Text="orangemantra" Foreground="Black"/> </StackPanel> </StackPanel> </Grid> </ScrollViewer> </Grid>
以上是大佬教程为你收集整理的xaml – 如何在Windows Phone 8中制作自适应UI?全部内容,希望文章能够帮你解决xaml – 如何在Windows Phone 8中制作自适应UI?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。