[英]How can I fake my own in App Tiles in Windows Phone
I am considering my Launch Screen/Dashboard screen having tiles(Squares with a few lines of information on them). 我正在考虑将我的“启动屏幕” /“仪表盘”屏幕上包含图块(方格上有几行信息)。 I understand that tiles are not a UI object for use inside Windows Phone apps, but I've seen some people fake them somehow.
我了解磁贴不是Windows Phone应用程序内使用的UI对象,但是我看到有些人以某种方式伪造了它们。
Can anybody gimme and some tips and guidance as to how this is achieved? 任何人都可以给我一些方法以及有关如何实现的一些提示和指导吗? I am under the impression of what I have seen in my first 2 days working on Win-Mobile that you cannot stack view objects on top of each other.
我对在Win-Mobile上工作的头两天所看到的印象是,您不能将视图对象彼此堆叠。 For example drawing a square object and then drawing 3 lines of text on top of that to make a tile.
例如,绘制一个正方形对象,然后在其上方绘制3行文本以创建一个图块。
Many Thanks, -Code 非常感谢,-Code
您看到的是HubTile控件吗?
The Telerik RADHubTile control can do this for you. Telerik RADHubTile控件可以为您完成此操作。 Please, check out this article:
请查看这篇文章:
New Hub Tile Control for Your Windows Phone Apps Windows Phone应用程序的新集线器磁贴控件
Note: the library cost around $99 I think. 注意:我认为该图书馆的费用约为$ 99。
Here is what I am doing for my Dashboard page in my application. 这是我在应用程序中为“仪表板”页面所做的工作。 It is simply a StackPanel with two TextBlocks inside.
它只是一个内部有两个TextBlocks的StackPanel。 These StackPanels are then inside of a WrapPanel from the Silverlight Toolkit for Windows Phone inside of a ListBox, which you don't have to use.
然后,这些StackPanel放在ListBox内的Windows Phone的Silverlight Toolkit的WrapPanel内,而不必使用。
<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>
现在有许多磁贴控件可用,但是为了让其他任何人都可以寻找,您可以在这里找到我非常简单的“自家”磁贴控件: http : //www.crisrowlands.com/wpdev-tips-4 /
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.