Coding4Fun.Phone.Controls的使用

Coding4Fun.Phone.Controls的使用:

windows phone的应用一直有一个特色,那就是方块(磁贴)。之前的应用中,我一直都XXXX 来实现,原来其实一直有一个更加好的方法,那就是使用Coding4Fun.Phone.Controls.dll这个文件集,好举个例子吧

先应用命名空间

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
<controls:PanoramaItem Header="吕氏春秋">
                <Grid  Grid.Row="1" Margin="12,0,12,0">
                    <toolkit:WrapPanel toolkit:TiltEffect.IsTiltEnabled="True" Margin="12,0,-43,0">
                        <StackPanel Orientation="Horizontal" Margin="0,0,0,0" Grid.Row="1" >
                            <c4f:Tile Margin="0, 0, 12, 0" Width="170" Background="#99CC00" Height="170" Title="励志师" Click="Tile_Click" >
                                <Image Source="/icon/icon3.png" Height="120" Width="120" />
                            </c4f:Tile>
                            <c4f:Tile  Margin="0, 0, 12, 0" Width="170" Background="#99CC00" Height="170" Title="光环" Click="Tile_Click_1">
                                <Image Source="/icon/icon1.png" Height="130" Width="130" />
                            </c4f:Tile>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,20,10,0" Grid.Row="1" >
                            <c4f:Tile Margin="0, 0, 12, 0" Background="#99CC00" Width="170" Height="170" Title="经典语录" Click="Tile_Click_2">
                                <Image Source="/icon/icon2.png" Height="140" Width="140" />
                            </c4f:Tile>
                           
                        </StackPanel>
                    </toolkit:WrapPanel>
                </Grid>
            </controls:PanoramaItem>



接下来,我将先把windows phone放置一下,学下asp.net的MVC后,做一两个成品后再继续回到windows phone的MVVM模式的开发中。欢迎大家和我继续讨论windows phone方面的知识,我相信windows phone有很大的发展前景,接下来我会学好服务器的搭建,然后开发的软件都带上网络连接更新数据的功能(异步事件和响应式编程),这方面之前有做过类似的,但服务器用的是别人,略懂,还不熟练,我觉得手机软件网络连接和对数据的处理才是真髓!!大家一起共勉吧,最后附上我在博客园中一些不错的博客,我经常上去吸取精华,感谢他们辛勤付出,在这里与大家一起共享了。:

 http://www.cnblogs.com/linzheng    林政(深入浅出windows phone8开发的作者)

http://www.cnblogs.com/tcjiaan/  老周——易之道

http://www.cnblogs.com/insus/  Inses.NET

这三个是我目前觉得非常不错的博客,其中前面两个是主打windows phone、Silverlight开发,后面那个是主打网站asp.net(包括MVC)开发的。

 

原文地址:https://www.cnblogs.com/xmfdsh/p/Coding4Fun_Phone_Controls.html