Feeds:
文章
评论

Archive for the ‘Silverlight’ Category

微软宣布 2010 年 12 月 2 日将会举办由微软企业副总裁 Scott Guthrie 主旨演讲的 Silverlight Firestarter 发布会,主题为“Silverlight 的未来”。

Keynote Starts December 2, 2010 at 9:00 pacific time
Hear what’s coming next from Microsoft’s Scott Guthrie
Training, labs & swag
Online or in-person at Microsoft HQ, December 2nd 2010
It’s just like an extra day of PDC, dedicated to Silverlight

Firestarter Live Agenda
Time Presenter Session Details

8:00 am Breakfast

9:00 am Scott Guthrie The Future of Silverlight

10:45 am Jesse Liberty Data Binding Strategies with Silverlight and WP7

11:30 am Yavor Georgiev Building Compelling Apps with WCF using REST and LINQ

12:15 pm Lunch

1:00 pm Dan Wahlin Building Feature Rich Business Apps Today with RIA Services

1:45 pm John Papa MVVM: Why and How? Tips and Patterns using MVVM and Service Patterns with Silverlight and WP7

2:45 pm Tim Heuer Tips and Tricks for a Great Installation Experience

3:30 pm Mike Cook & Jossef Goldberg Tune Your Application: Profiling and Performance Tips

4:30 pm Jaime Rodriguez Performance Tips for Silverlight Windows Phone 7

5:15 pm After Party!

Keynote : The Future of Silverlight
Be first to hear the official news about what’s coming up next for Silverlight from Scott Guthrie, Microsoft Corporate Vice President.

Data Binding In Silverlight and Windows Phone
Jesse Liberty walks us through the fundamentals of data binding, including binding to traditional and non-traditional data sources, binding to elements, binding in both Visual Studio and Blend, binding in code, data conversion and much more.

Building Compelling Apps with WCF using REST and LINQ
In this session we will cover how to build a WCF-based backend web service to provide data to the Silverlight application. We will demonstrate the use of LINQ in the service to retrieve objects from our database, and cover some details of how those objects are serialized to Silverlight. We will cover the use of faults for debugging and for driving production logic, as well as authentication strategies for internet and intranet deployment. We will finish with a look at how to access third-party REST/HTTP-based services from Silverlight.

Building Feature Rich Business Apps Today with RIA Services
Silverlight provides many different options for accessing distributed data including Web Services, REST APIs, sockets and more. This talk will walk you through the benefits that WCF RIA Services offers and demonstrate how it can be used to simplify n-tier programming and provide a flexible and productive way to access, validate and modify data in Silverlight applications. Topics covered include creating a domain service, simplifying asynchronous programming with the domain context, leveraging object tracking features, sharing data validation code between the client and server and writing domain services that can be used with any backend data access technology.

MVVM: Why and How? Tips and Patterns using MVVM and Service Patterns
See how good patterns and practices apply to Silverlight applications on the desktop, in the browser or on the phone. Learn how to integrate MVVM, Service Providers, design time data (aka Blendability), into your Silverlight applications to promote code reuse and create a highly maintainable application.

Tips and Tricks for a Great Installation Experience
Tired of seeing the spinning blue balls from Silverlight as the application loads? Your users probably are as well. The simple fact is that it is very easy to customize your complete application installation experience down to the plugin level. During this session you’ll see understand how Silverlight works with install/upgrade scenarios and how you can completely customize the installation experience. Additionally you’ll see custom ‘splash screen’ demonstrations on what you can do to further brand your application. If you are building an out-of-browser application with Silverlight we’ll discuss and demonstrate some of the tips/tricks to provide a good acquisition experience there as well and some tricks on automatically installing applications.

Tune Your Application: Profiling and Performance Tips
There are some common pitfalls that can negatively impact your Silverlight application’s performance. In this session we’ll demonstrate how to use some of the tools that are available to profile and identify performance issues. We’ll cover the available techniques with the performance tools that can help you to analyze your Silverlight application memory usage, rendering and CPU usage to help improve performance and avoid those common pitfalls.

Performance Tips for Silverlight Windows Phone 7
This will be a comprehensive deep-dive into Windows Phone performance. We will begin with the threading model changes and optimizations made to Silverlight run-time to take advantage of the GPU on the phone; we will then cover the most common pitfalls, the troubleshooting techniques, and close with the workarounds to create snappy Windows phone applications.

PDC后关于Silverlight的讨论很多额

让我们期待下微软企业副总裁 Scott Guthrie 会不会给我们透漏Silverlight 5 的内容,并能介绍“已调整的”微软 Silverlight 战略吧。

Advertisements

Read Full Post »

http://www.bl.uk/onlinegallery/virtualbooks/index.html

 

http://msdn.microsoft.com/zh-cn/magazine/cc163368.aspx

Read Full Post »

PivotViewer控件可在较短时间内载入近千条数据,并将其进行可视化处理,在使用过程中,结合Deep Zoom技术,可以轻松阅览高分辨率的数据内容。

image

 

看效果图很带劲啊

那么就自己动手实验下效果吧

 

首先要收集数据,Pivot 为我们提供了3种收集方法

1. Pivot Collection Tool for Microsoft Excel

2. Pivot Collection Tools for the Command Line

3. Sample Code for Creating Just in Time Pivot Collections

比较习惯excel,这里我们用excel来做演示。

 

安装完Pivot Collection Tool for Microsoft Excel后,可以在excel上看到加载项:

image

 

我们首先新建一个Collection :

image

 

Pivot 给我们提供了一个标准的数据模板

image

Image Location:图片的地址(绝对路径,只要填入图片的地址,自动就能出图片的预览图)

Preview:图片预览

Name:数据名称

Href:链接(Pivot每条数据可以跟一个页面链接 )

Description:内容介绍

根据我们的需要,我们还可以再添加(支持中文哦)

 

然后整理下数据

image

复制到模板里去:

image

最后再配置下输出的标题等信息

image

然后输出就可以了:

image

 

输出后我们的数据收集就结束了

image

 

然后打开VS2010,添加一个Silverlight4项目

首先添加引用“System.Windows.Pivot.dll”(在C:Program Files (x86)Microsoft SDKsSilverlightv4.0PivotViewerJun10Bin下)

image

然后在xaml里添加:

 

xmlns:pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"

 

下面我们就可以使用PivotViewer了,添加一个PivotViewer:

 

            <pivot:PivotViewer Name="PivotViewerControl"
                               Grid.Column="0"
                               ItemDoubleClicked="PivotViewerControl_ItemDoubleClicked">
            </pivot:PivotViewer>

 

这里我们定义了一个双击事件,在双击事件中,我们要弹出之前我们设置的链接

        private void PivotViewerControl_ItemDoubleClicked(object sender, ItemEventArgs e)
        {
            PivotItem piv_item = PivotViewerControl.GetItem(e.ItemId);

            if (!string.IsNullOrWhiteSpace(piv_item.Href))
            {
                PivotViewerControl.CurrentItemId = e.ItemId;
                HtmlPage.Window.Navigate(new Uri(piv_item.Href, UriKind.RelativeOrAbsolute), "NewPage");
            }
            else
            {
                MessageBox.Show("No Web Page...");
            }
        }

 

当然最后我们不能忘了关键的一条,还没有把 PivotViewer指定到我们刚才收集的数据上呢(我放到了站点的根目录下)

        public MainPage()
        {
            InitializeComponent();
            PivotViewerControl.LoadCollection("http://127.0.0.1/New Collection1.cxml", "");
        }

 

然后编译运行,看看效果

为啥不显示呢…

我们还要添加MIME类型到Web服务器

    .cxml – text/xml

    .dzc  – text/xml

    .dzi   – text/xml

image

 

 

然后就能看效果了:

image

image

image

看看还凑合…

 

 

 

参考:http://10rem.net/blog/2010/06/29/introducing-the-pivotviewer-control-for-silverlight

http://www.cnblogs.com/jv9/archive/2010/06/30/1767989.html

http://www.codeproject.com/KB/grid/PivotViewer.aspx

http://blogs.microsoft.co.il/blogs/shair/archive/2010/07/03/silverlight-pivotviewer-the-full-guide.aspx

Read Full Post »

最近开始熟悉VS2010

等以后用东西尽量往2010上靠吧,虽然感觉比08卡了点…

想玩PivotViewer,所以要安装Silverlight 4 tools

下载,双击,杯具了…

image

看提示是语言的问题,等SL4的中文版不知道猴年马月呢…
bing下解决方法吧

需要改下注册表

HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio10.0SetupVSBuildNumber
在此处增加一个"字符串值",输入名称为“1033”,设置它的值为“10.0.30319”

 

再安装,一切顺利…

 

下篇写下PivotViewer…

Read Full Post »