如何在微软表面实现像Iphone srceen一样的应用程序。 [英] How to implement an application just like Iphone srceen in microsoft surface.

查看:87
本文介绍了如何在微软表面实现像Iphone srceen一样的应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gian Paolo

Gian Paolo

首先感谢你的帮助。我下载应用程序"sampleLibraryContainerProject.zip"来自您的网站。

First thanks your help. i download application "sampleLibraryContainerProject.zip" from your website.

但我需要实现一个应用程序就像Iphone srceen使用LibraryBar

but i need implement an application just like Iphone srceen use LibraryBar

所以

1。如何设置图标边距。(我试过,但图标缩小,图标宽度和高度需要固定大小)

1. How to setting the icons margin.( i tried it, but icons diminish, icon width & height needs Fixed-sized)

2.我需要在每个图标下添加文字,并且可以拖拽一起放下图标(我该怎么办?)

2. I need add text under the each icon, and can drag & drop with icon together(how do i do it?)

3。我想交换图标的地方,我可以使用什么?

3. I want swap the icon place, what enevt i can use?

再次感谢。

推荐答案

您好

   如果我的建议对你有帮助,我真的很开心。

    I'm really happy if my advices helped you.

我不相信图书馆酒吧是达到目标的正确控制......如果我在你身边我会在自定义控件中思考......

I'm not convinced that a library bar is the correct control to reach your goal... If I was in you I would think in a custom control...

关于你的问题(而不是讨论nui,ux,最佳实践ecc)你可以使用usercontrol作为datatempalte,这样你就可以修复宽度和高度您可以添加文本,设置边距或任何您想要的内容。

Regarding your questions (and not talking about nui, ux, best practices ecc) you can use a usercontrol as datatempalte so you can fix width and heigh of your imanges and you can also add text, set margins or whatever you want.

如果我们查看MainWindow.xaml上的sampleLibraryContainerProject,您将看到如下内容:

If we look at the sampleLibraryContainerProject on MainWindow.xaml you will have something that would look like this:

            <DataTemplate x:Key="LibraryItemTemplate">
                <Viewbox Stretch="Uniform" HorizontalAlignment="Left">
                    <uc:MyUserControl />
                </Viewbox>
            </DataTemplate>

对于drop questio,你可以参考 microsoft bluletooth connect code sample sdk 2.0 ,看一下你在手机上放置一个项目的代码部分,i
认为它可以帮到你。

For the drop questio you can refer to microsoft bluletooth connect code sample sdk 2.0 and look at the part of the code where you drop an item on the phone, i think it could help you.

你的第三个问题是可以记住一些努力的事情,而且此刻此刻我暂时没有任何建议,我要考虑一下,也许与其他人在一起可以给出它的想法......

Your third question is something that could requeire some effort and also at this moment I don't have any adivice for the moment, I've to think on it, maybe in the meanwhile someone else could give it's idea...

hth


这篇关于如何在微软表面实现像Iphone srceen一样的应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆