基本プロパティと詳細プロパティ

スクリーンショット: 基本モードのプロパティパネル

スクリーンショット: 詳細モードのプロパティパネル

BasicAdvPropertiesPanel - 2 つのモードを持つプロパティパネルです。基本モードでは必須項目の短い一覧を、詳細モードではオブジェクトの全プロパティをカテゴリ別に表示します。

主なプロパティ

2 つのモードはコネクタ設定によくある問題を解決します。必須項目は 3、4 個なのに、プロパティ全体は数十個あるからです。基本モードには接続に不可欠なものだけを表示し、それ以外は詳細モードで利用できます。

以下は使用例のコード断片です:

<Window x:Class="Sample.SettingsWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:pg="clr-namespace:StockSharp.Xaml.PropertyGrid;assembly=StockSharp.Xaml"
	Height="500" Width="400">
	<pg:BasicAdvPropertiesPanel x:Name="PropertiesPanel" />
</Window>
// アダプタのプロパティを表示します
PropertiesPanel.SelectedObject = _adapter;

// 詳細モードに切り替えます
PropertiesPanel.IsAdvancedMode = true;

// 設定が変更されたことを記録します
PropertiesPanel.CellValueChanged += (sender, e) => _isModified = true;

関連項目

値エディタ