1) Create a Database called RIATasks
首先创建一个名为RIATasks数据库
2) Run this script:执行脚本
USE [RIATasks]
GO
CREATE TABLE [dbo].[RIAComments](
[CommentID] [int] IDENTITY(1,1) NOT NULL,
[Comment] [nvarchar](max) NOT NULL,
[CommentUpdateDate] [datetime] NOT NULL,
CONSTRAINT [PK_RIAComments] PRIMARY KEY CLUSTERED
(
[CommentID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[RIAComments] ON
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (2, N'Now is the time for all good men to come to the aid of their country', CAST(0x00009D07006B3BC1 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (3, N'The biggest benefit is that it allows a developer to create an application with no User Interface (UI). A Designer is then able to create the entire UI using Microsoft Expression Blend 4+, without writing a single line of code.', CAST(0x00009D60013F5EDD AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (4, N'The benefits of this include: The UI is easier to create when you can do it visually, in a tool, without having to write code. You may have a better UI when it is designed and implemented by people who may not be programmers. The UI can be created first, or at the same time, as the rest of the code, if needed The UI can be completely changed without the need to change any code ', CAST(0x00009DBC006B0205 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (5, N'The reason for this tutorial, is that I have noticed my friends are getting stuck when trying to learn Silverlight. They spend a lot of time "learning about Silverlight" but have a hard time actually getting started. I also wanted to show them how to use View Model Style programming because I believe that using View Model, you will write LESS CODE (you probably didn''t expect that one!). Don''t believe me? Let me show you...', CAST(0x00009DAA013F7F35 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (6, N'View Model Style allows a programmer to create an application that has absolutely no UI (user interface). The programmer only creates a View Model and a Model. A designer with no programming ability at all, is then able to start with a blank page and completely create the View (UI) in Microsoft Expression Blend 4 (or higher). If you are new to View Model Style it is suggested that you read Silverlight View Model Style : An (Overly) Simplified Explanation for an introduction.', CAST(0x00009D25013ABBD5 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (7, N'When using "View Model Style" programming, you may find a need to dynamically create Views. The challenge is to create them dynamically, while also allowing a Designer to easily design the UI.', CAST(0x00009D420093E075 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (8, N'Hopefully you can see that View Model is not hard at all. It really is not complicated once you see how it is done. Expression Blend was designed to work in "View Model Style", so you should have an easier time using Expression Blend when you use this simple pattern. We also demonstrated View Model Communication that you will hopefully find easy to understand. In addition, we covered dynamically creating Views while allowing a Designer full easy access to completely change the look of the application.', CAST(0x00009DB00093E770 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (9, N'We care about View Model, because we want to allow the Designer the freedom to design the application without code changes, and this example achieves that. Ok perhaps a Value Converter may need to be added is some situations, but, even in this case, the View Model did not need to be changed. If the Developer is wearing both hats, and is also the Designer, it may be easier to just alter the View Model if a property type needs to be added or changed, however, you have options. A Value Converter allows you to bind UI elements to the View Model when the View Model is faced with an unexpected change.', CAST(0x00009D7E013AC1CC AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (10, N'So now the application looks better, but I would like to make a Design change this time rather than simply a Style change. This is where the power of MVVM really shines. With MVVM, you can change the Design of an application without changing any code. In the existing application, you search for a website, then select it from the dropdown. A hyperlink appears and you click on the Hyperlink to navigate to the website.', CAST(0x00009D4B00B5ECE9 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (11, N'This is part 2 to the article Silverlight 4 Video Player. That article focused on the View Model Style (Model-View-ViewModel) pattern, and how it supports Designer / Developer collaboration and workflow. However, when others tried to use that project for a real website, they found they needed the full set of controls that a video player normally provides. I decided to use this as an opportunity to dig deeper into View Model Style and demonstrate how easy it truly is, when using Microsoft Expression Blend 4 (or higher). This time we will cover the "hard stuff". However, implementing this will be surprisingly easy.', CAST(0x00009DBB0171D0C3 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (12, N'This project creates a fully "Designable" Silverlight Video Player. This is not to be confused with a "Skinable" Video Player. A Skinable Video Player allows you to change the look and feel of the existing controls of the Video Player. A Designable player, allows a Designer to use ANY set of controls to implement the Video Player. For example, a Designer could replace all the buttons with a single dial that a user rotated into different positions, or they could change the method a user uses to select from the list of available videos. This can be done in Expression Blend without writing any code.', CAST(0x00009CF500000000 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (13, N'In this tutorial, Michael Washington and Alan Beasley team up to demonstrate the creation of a Windows Phone 7 video player that uses the View Model Style pattern.', CAST(0x00009D1700000000 AS DateTime))
SET IDENTITY_INSERT [dbo].[RIAComments] OFF
3) Update the connection String
修改数据库连接字符串
没有合适的资源?快使用搜索试试~ 我知道了~
silverlight4+mvvm+RIAService
共200个文件
dll:140个
cs:15个
xml:8个
4星 · 超过85%的资源 需积分: 4 22 下载量 15 浏览量
2011-08-25
14:51:39
上传
评论
收藏 1.86MB RAR 举报
温馨提示
silverlight4+mvvm+RIAService搭建的一个小型的学习型demo,方便广大初学者学习和研究!
资源推荐
资源详情
资源评论
收起资源包目录
silverlight4+mvvm+RIAService (200个子文件)
WebService.asmx 103B
Default.aspx 3KB
DesignTimeResolveAssemblyReferences.cache 26KB
DesignTimeResolveAssemblyReferencesInput.cache 8KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
ServiceReferences.ClientConfig 661B
Web.Release.config 1KB
Web.Debug.config 1KB
Web.config 545B
Reference.cs 40KB
MainPageModel.cs 13KB
WebService.asmx.cs 5KB
RIATasksDB.designer.cs 5KB
RIACommentsModel.cs 3KB
MainPage.g.i.cs 2KB
App.xaml.cs 2KB
App.g.i.cs 2KB
Default.aspx.designer.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
DelegateCommand.cs 1KB
MainPage.xaml.cs 525B
Default.aspx.cs 364B
DataBaseParticalClasses.cs 241B
RIADataGrid.csproj 8KB
RIADataGrid.Web.csproj 5KB
RIADataGrid.wsRIARIAComments.UpdateRIACommentResponse.datasource 675B
RIADataGrid.wsRIARIAComments.GetRIACommentsResponse.datasource 671B
RIADataGrid.wsRIARIAComments.GetRIACommentResponse.datasource 669B
RIATasksDB.dbml 994B
WebService.disco 719B
System.Windows.Controls.Theming.BubbleCreme.dll 618KB
System.Windows.Controls.Data.dll 454KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 114KB
System.Windows.Controls.Data.resources.dll 110KB
System.Windows.Controls.Data.resources.dll 110KB
System.Windows.Controls.Data.resources.dll 110KB
System.Windows.Controls.Data.resources.dll 110KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
System.Windows.Controls.Data.resources.dll 106KB
Microsoft.Expression.Interactions.dll 87KB
System.ComponentModel.DataAnnotations.dll 74KB
System.Windows.Controls.Data.Input.dll 70KB
System.Windows.Data.dll 70KB
RIADataGrid.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Controls.Data.Input.resources.dll 38KB
System.Windows.Interactivity.dll 37KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
System.Windows.Controls.Data.Input.resources.dll 25KB
共 200 条
- 1
- 2
jiushiainia2009
- 粉丝: 2
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 南京邮电大学数学实验:熟练掌握 Matlab 软件的基本命令和操作
- 2017校招真题校园招聘真题算法题(37道)Python源码.zip
- 基于单片机protues仿真的多功能自动饮水机系统设计(仿真图、源代码、演示视频)
- 二叉树7-1-1.cpp
- android 9.0 原生模拟器 签名文件
- 技术面试最后反问面试官的话 校招面试非技术问题有哪些 非技术问题如何回答.png
- NB-IOT-BC26全网通模块Altium+ CADENCE +PADS三种格式(原理图SCH+PCB封装库)文件.zip
- 基于微信小程序开发的校园失物招领系统源码毕业设计(优质项目源码).zip
- 词向量是一种将自然语言中的单词转换为数值向量的技术,它能够捕捉词义和上下文信息
- nmap与masscan的简单使用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页