Metro
CustomGridSplitter
- Gridの行列の大きさをユーザが変更できるようにしたい。
- WPFにはGridSplitterというのがあるが、Metroでは使えないらしい。
- gridsplitter replacement?
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/ae4a798a-f3c1-423c-8d36-01254e7aa8e6 - Fixing WPF GridSplitter | Xyzzer's Dev Blog
http://blog.xyzzer.me/2011/12/11/fixing-wpf-gridsplitter/
- gridsplitter replacement?
- WinRT XAML ToolkitにあるCustomGridSplitterを使うとできる。
- WinRT XAML Toolkit
http://winrtxamltoolkit.codeplex.com/
- WinRT XAML Toolkit
- カスタムコントロールの組み入れ方は以下を参照
- generic.xamlを使用したシンプルなWindows Phone 7用カスタムコントロールの作成 - Neutral Scent
http://d.hatena.ne.jp/kaorun/20110323/1300874396
- generic.xamlを使用したシンプルなWindows Phone 7用カスタムコントロールの作成 - Neutral Scent
WinRT XAML ToolkitからCustomGridSplitterだけ抜き出して利用するには
- CustomGridSplitter.cs とそれが参照している ControlExtensions.cs をプロジェクトに追加する。
- Themes/Generic.xaml というファイルを作成。XAML ToolkitのGeneric.xamlをエディタで開いてCustomGridSplitter関連の定義をコピーする。
- 後は自分の画面定義のXAML内で、全体をGridで囲んで、CustomGridSplitter用のColumn/Rowを追加すればOK。
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition Width="22" /> <!-- ここ --> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid Grid.Column="0"></Grid> <xyzc:CustomGridSplitter Grid.Column="1" /> <!-- ここ --> <Grid Grid.Column="2"></Grid> </Grid>
Gridの結合
- 左右や上下に隣り合ったGridをくっつける。Excelのセルの結合みたいなの。
- ColumnSpanとかRowSpanを指定する。
- GridView Metro Different Sizes of Items...
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/21d227cf-feec-4c32-a01e-257ac1e81643 - Diederik Krols
http://blogs.u2u.be/diederik/post/2012/03/07/Databinding-to-the-VariableSizedWrapGrid-in-Windows-8-Metro.aspx - How To: Create a Variable Sized Grouped GridView (like the store)
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/966aa897-1413-46f0-bef7-663de36f9423
スプラッシュスクリーン時間延長
起動に時間がかかる場合、スプラッシュスクリーンが表示されたままのように見せる。
- 高速で滑らかな起動エクスペリエンスを作り上げる - Windows 8 アプリ開発者ブログ - Site Home - MSDN Blogs
http://blogs.msdn.com/b/windowsappdev_ja/archive/2012/05/30/fast-and-fluid.aspx
Metro アプリからストア画面を開く。
以下のようなリンクで Store が開ける。
- Windows ストアのプロトコルを使ったリンクの作成
http://msdn.microsoft.com/ja-jp/library/windows/apps/hh974767.aspx - Creating links with the Windows Store protocol
http://msdn.microsoft.com/en-us/library/windows/apps/hh974767.aspx
ハンドルされていない例外の処理
- How to: Define and Install a Global Exception Handler
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/171ezxzc(v=vs.85).aspx - Application.UnhandledException event
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.application.unhandledexception.aspx