C# 如何在Windows Phone中伪造自己的应用程序内磁贴
我正在考虑我的启动屏幕/仪表板屏幕有瓷砖(上面有几行信息的正方形)。我知道tiles不是在Windows Phone应用程序中使用的UI对象,但我看到一些人不知何故伪造了它们 有谁能给我一些提示和指导如何实现这一点?我在使用Win Mobile的头两天中看到的印象是,视图对象不能相互叠加。例如,绘制一个正方形对象,然后在其上绘制3行文本以制作平铺 非常感谢,,C# 如何在Windows Phone中伪造自己的应用程序内磁贴,c#,windows-phone-7,xaml,C#,Windows Phone 7,Xaml,我正在考虑我的启动屏幕/仪表板屏幕有瓷砖(上面有几行信息的正方形)。我知道tiles不是在Windows Phone应用程序中使用的UI对象,但我看到一些人不知何故伪造了它们 有谁能给我一些提示和指导如何实现这一点?我在使用Win Mobile的头两天中看到的印象是,视图对象不能相互叠加。例如,绘制一个正方形对象,然后在其上绘制3行文本以制作平铺 非常感谢,, -代码是您看到的吗?Telerik Radhubbile控件可以为您执行此操作。请查看这篇文章: 注:我想这个图书馆大约要99美元 以
-代码是您看到的吗?Telerik Radhubbile控件可以为您执行此操作。请查看这篇文章:
注:我想这个图书馆大约要99美元 以下是我在应用程序中为仪表板页面所做的操作。它只是一个内部有两个文本块的StackPanel。然后,这些StackPanel位于列表框中Silverlight Toolkit for Windows Phone的包装内,您不必使用它
<ListBox Name="lstTiles" Margin="0,0,-12,0">
<ListBoxItem>
<StackPanel Background="{StaticResource PhoneAccentBrush}" Width="173" Height="173" Margin="12,12,0,0" Tap="stkSignIn_Tap">
<TextBlock Text="Tile Title" Style="{StaticResource PhoneTextTitle2Style}" Foreground="White" TextWrapping="Wrap" Margin="12,6,12,12" Height="106" />
<TextBlock Text="Your subtitle here" Style="{StaticResource PhoneTextNormalStyle}" Foreground="White" Margin="12,12,12,12" VerticalAlignment="Bottom" />
</StackPanel>
</ListBoxItem>
<ListBoxItem>
<StackPanel Background="{StaticResource PhoneAccentBrush}" Width="173" Height="173" Margin="12,12,0,0" Tap="stkSignIn_Tap">
<TextBlock Text="Tile Title" Style="{StaticResource PhoneTextTitle2Style}" Foreground="White" TextWrapping="Wrap" Margin="12,6,12,12" Height="106" />
<TextBlock Text="Your subtitle here" Style="{StaticResource PhoneTextNormalStyle}" Foreground="White" Margin="12,12,12,12" VerticalAlignment="Bottom" />
</StackPanel>
</ListBoxItem>
<ListBoxItem>
<StackPanel Background="{StaticResource PhoneAccentBrush}" Width="173" Height="173" Margin="12,12,0,0" Tap="stkSignIn_Tap">
<TextBlock Text="Tile Title" Style="{StaticResource PhoneTextTitle2Style}" Foreground="White" TextWrapping="Wrap" Margin="12,6,12,12" Height="106" />
<TextBlock Text="Your subtitle here" Style="{StaticResource PhoneTextNormalStyle}" Foreground="White" Margin="12,12,12,12" VerticalAlignment="Bottom" />
</StackPanel>
</ListBoxItem>
</ListBox>
现在有很多瓷砖控件可用,但是为了让其他人搜索,你可以在这里找到我非常简单的“土生土长”瓷砖控件:你想在自己的应用程序中伪造瓷砖,还是想将瓷砖放到Windows Phone 7的主屏幕上?