Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2011-02-01から1ヶ月間の記事一覧

ListViewに項目を表示する

エッセンシャル WPF P.124より引用 列の数、ヘッダの内容、およびビューに関するその他の事項を制御するためのプロパティは、ListViewにはありません。代わりに、ListView.ViewプロパティをGridViewに設定し、このオブジェクトのプロパティを設定する必要が…

ListBoxをさらにカスタマイズする

ItemsPanelTemplateは、項目のレイアウトに使用されるパネルを指定します。それ以上のカスタマイズにはControlTemplateを使用します。 アプリ実行 ソースコード App.xaml <Application x:Class="HelloWorld.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Page1.xaml"> </Application>…

ListBoxのアイテムを2列に並べる

通常のControlTemplateではなく、ItemsPanelTemplateを使用します。 アプリ実行 ソースコード App.xaml <Application x:Class="HelloWorld.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Page1.xaml"> </Application> Page1.xaml

「あなたのBlog術教えてください」の企画にのってみました

「あなたのBlog術教えてください」の企画にのってみました。 R-style » 【企画】「あなたのBlog術教えてください!」企画第二回先週も告知した通り、今週は「「あなたのBlog術教えてください!」企画第二回」です。 本企画は簡単に言うと、・これからブログ…

コントロールにアクセスキーを設定する

アプリ実行 起動 [Alt + B]押下 ソースコード App.xaml <Application x:Class="HelloWorld.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Button.xaml"> </Application> Button.xaml

テンプレートバインディングを適用する(その2)

プロパティ名が一致していなくてもテンプレートバインディングを使用することができます。 アプリ実行 ソースコード App.xaml <Application x:Class="HelloWorld.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml"> </Application> MainWindow.xaml