简体   繁体   English

如何在Windows Phone的App Tile中伪造自己的

[英]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.

相关问题 如何在Windows Phone中控制自己的登录页面/应用程序? - How can I give control to my own login page/app in windows phone? 应用中的Windows Phone磁贴 - Windows Phone tiles in app 如何从Windows Phone 8.1中自己的应用程序启动其他应用程序? - How do I launch other app from my own app in Windows Phone 8.1? 如何在Windows Phone中读取和查询自己的sqlite文件? - How can i read and query my own sqlite file in windows phone? 如何在Windows 8中在后台更新我的磁贴? - How can I update my tiles in the background in Windows 8? 我可以在Windows RT设备上测试Windows Phone应用程序吗? - Can I test a Windows Phone app on my Windows RT device? Windows Phone 7,我可以将参数传递给ScheduledTaskAgent进行实时磁贴更新吗? - Windows Phone 7, can I pass a parameter to ScheduledTaskAgent for a live tiles update? Windows Phone 8.1运行时:如何从我自己的应用程序中启动相册应用程序? - Windows Phone 8.1 runtime: How to launch the photo gallery app from my own app? 如果不使用MVVM,如何为Windows(电话)8.1应用编写测试 - How can I write tests for my Windows (phone) 8.1 app if I am not using MVVM 我可以覆盖模拟器并直接在Windows Phone 8上调试应用程序吗? - Can I override the emulator and directly debug the app on my Windows Phone 8?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM