1 - Microsoft

Download Report

Transcript 1 - Microsoft

T2-305
大野 元久
デベロッパー エバンジェリスト
マイクロソフト株式会社
※本資料に掲載されている情報は発表時点に予定されているものであり、
予告なく変更される可能性があります。
2008.10 正式版リリース
RIA
.NET Framework を基盤
豊富なコントロール
カスタマイズと再利用
データ操作とネットワーク処理
メディア配信
PlayReady を基盤とする DRM を実装
DeepZoom
Visual Studio による開発
Expression Blend によるビジュアル設計
エス・エス・ジェイ株式会社
NECビッグローブ株式会社
中部国際空港株式会社 セントレア
日本デジタルオフィス株式会社
TDKラムダ株式会社
ヤフー株式会社
楽天株式会社
MSN
microsoft.com
評価、確認用にソースコードを公開
対象
ButtonBase, Button, HyperlinkButton,
CheckBox, RadioButton, CheckBox,
ToggleButton, RepeatButton, RangeBase,
Slider, ScrollBar, ProgressBar, Calendar,
DataGrid, DatePicker, GridSplitter,
TabControl
http://www.microsoft.com/downloads/details.aspx?FamilyID=EB83ED4
C-AC85-4DE9-8395-285628EE2254&displaylang=en
メディア対応の拡張
H.264、AAC
グラフィック描画の強化
3D や GPU アクセラレーションのサポート
アプリケーション開発
よりリッチなデータバインディング
コントロールの拡充
Visual Studio によるビジュアル開発
Linux 対応(Moonlight)
http://www.microsoft.com/presspass/features/2008/sep08/0909silverlight.mspx
http://weblogs.asp.net/scottgu/archive/2008/11/16/update-onsilverlight-2-and-a-glimpse-of-silverlight-3.aspx
Silverlight 2 ベース
JavaScript & .NET Framework をサポート
デスクトップ版と同等が目標(例外あり)
対象デバイス
Windows Mobile と Nokia S60(当初予定)
Public CTP: 2009年 第一四半期
正式版: 2009年中(予定)
http://silverlight.net/learn/mobile.aspx
コントロール開発チームは、WPFと
Silverlight コントロールに専念している
“Silverlight Toolkit”と“WPF Toolkit”を配布中
http://www.codeplex.com/silverlight
http://www.codeplex.com/wpf
正式リリースまでに、何度かコントロール
を出荷
ソース、ユニットテスト、サンプルも出荷
よく使われるコントロールをプラット
フォームに組み込む
定期的なリリース (6~8週ごと)
新しい
コントロール
CodePlex
プロジェクト※
• 顧客フィードバック
• 新しい部品の提供
• 容易なアップグレード
“品質別”の部品
実験目的
プレビュー版
安定版
成熟版
•
•
“成熟版” に分類された
コントロールは、
SDK/Toolsとともに配布
される
顧客は、CodePlex版を
最終版のコントロール
パッケージに置き換える
ことができる
コアランタイム
SDK/Tools
リリース
いくつかのコント
ロールは、コアラ
ンタイムに移動
※http://www.codeplex.com/Silverlight/
※http://develop.net/techdays2009/
Silverlight Toolkit
DockPanel
WrapPanel
TreeView
Expander
Label
ViewBox
HeaderedContentControl
HeaderedItemsControl
DockPanel は、添付プロパティを通じ
て特定の側に子を張り付ける
IsLastChildFill プロパティは、最後の
子に残りの領域を埋めさせる
Top
Right
<controls:DockPanel LastChildFill=“False” >
<Border controls:DockPanel.Dock="Left"
Background="Yellow" Width="100"/>
<Border controls:DockPanel.Dock="Top"
Background="Green" Height="100"/>
<Border controls:DockPanel.Dock="Right"
Background="Purple" Width="100" />
</controls:DockPanel>
上記の場合
逆順
Expander では、4方向のいずれかにコ
ンテンツを展開/収納できる
Header と Content エリアがある
<controls:Expander ExpandDirection="Down" Header="Tasks">
<Border Width="100" Background="#BFFFFFFF"
BorderBrush="#FF000000" CornerRadius="3,3,3,3"
BorderThickness="1,1,1,1">
<StackPanel>
<HyperlinkButton Content="Do this" FontSize="14"/>
<HyperlinkButton Content="Do that" FontSize="14"/>
<HyperlinkButton Content="Do it all" FontSize="14"/>
</StackPanel>
</Border>
</controls:Expander>
TreeView はネストされた階層をテン
プレートベースで表示できる
各ノードは HeaderedItemsControl 型
<controls:TreeView SelectedValuePath="Classification”>
<controls:TreeView.ItemTemplate>
<controls:HierarchicalDataTemplate
ItemsSource="{Binding Subclasses}">
<StackPanel>
<TextBlock Text="{Binding Rank}“
Foreground="Gray" Margin="0 0 0 -5" />
<TextBlock Text="{Binding Classification}" />
</StackPanel>
</controls:HierarchicalDataTemplate>
</controls:TreeView.ItemTemplate>
</controls:TreeView>
新しいコントロール
AutoComplete
Charting
NumericUpDown
これらのコントロールは WPF 対応版
も用意される(予定)
WPF バージョンは、WPF の適切な機能を
利用する
Standard AutoComplete
ItemsSource は文字列リストに
IsTextCompletionEnabled は True に
高いカスタマイズ性
ドロップダウンの中には、
DataGrid を含めどんなものでも
配置できるアダプタ
データテンプレートを使うスタイル
ItemsSource は Photograph オブジェ 上記の例: AutoComplete
クトの集合
ComboBox コントロール(カス
タムテンプレート使用)
カスタム DataTemplate
<controls:AutoComplete
MinWidth="300"
MinimumPrefixLength="1"
MinimumPopulateDelay="0"
ItemsSource="{StaticResource MonthsObjectCollection}"/>
折れ線、円、棒、散布図をサポート
新しいチャート型の追加を用意するアーキ
テクチャを重視
チャートの種類を拡張、テンプレート化
<controls:ObjectCollection x:Key=“AssetValues">
<local:Assets Type="Stocks" Value="10000“/>
<local:Assets Type="Bonds" Value="2124“/>
<local:Assets
Type="Cash" Value="22000“/>
</controls:ObjectCollection>
<charting:Chart>
<charting:Chart.Series>
<charting:ColumnSeries
ItemsSource="{StaticResource AssetValues}"
DependentValueBinding="{Binding Value}"
IndependentValueBinding="{Binding Type}"
Title="Portfolio“>
</charting:ColumnSeries>
</charting:Chart.Series>
</charting:Chart>
<charting:Chart ><charting:Chart.Series>
<charting:PieSeries ItemsSource="{StaticResource BasicValues}“
DependentValueBinding="{Binding Value}"
IndependentValueBinding="{Binding Type}" Title="Portfolio“>
</charting:PieSeries>
</charting:Chart.Series></charting:Chart>
コントロールの動作
目標: アプリケーションに対するテー
マの適用を容易にすること
現在、9種類のテーマを提供中
適用前:
適用後:
<UserControl
xmlns:barberred="clr-namespace:Microsoft.Windows.Controls;
assembly=Microsoft.Windows.Controls.Theming.BarberRed“/>
<barberred:BarberRedTheme>
<StackPanel Grid.Row="0" Orientation="Horizontal">
<CheckBox Content="CheckBox"/>
<Button Content="Button" Height="22" Width="43"/>
<ComboBox Height="22"
ItemsSource="{StaticResource stuff}“/>
<RadioButton Content="RadioButton"/>
</StackPanel>
< … />
</barberred:BarberRedTheme>
</UserControl>
Barbara Ballard
『Designing the Mobile User Experience』の著者
Reach
Web
Desktop
Rich
多目的

膨大のデバイスを
またぐ、均質な
アプリケーション
プラットフォーム


ユビキタス

現代的なユーザー
インターフェース
を持つ RIA
モバイルに最適化
された体験

デスクトップと
モバイルの連続

強力な .NET プログ
ラミングモデル
生産性
Silverlight for Mobile
関連セッション
T2-304: WPFロードマップ(本日17:30~)
T3-308: C# 4.0(明日13:15~)
BOF 6: 魅せます、Monoの実力(明日16:05~)
Silverlight 情報
http://msdn.microsoft.com/ja-jp/silverlight/
http://silverlight.net/internationallearn/default.
aspx
http://www.codeplex.com/Silverlight(英語)
http://silverlight.net/learn/mobile.aspx(英語)
講師のブログ
http://blogs.msdn.com/mohno/
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.