OrgChart for UWP/WinRT
IsCollapsed プロパティ

現在ノードが子を表示しているかどうかを決定する値を取得または設定します。
構文
'宣言
 
Public Property IsCollapsed As System.Boolean
public System.bool IsCollapsed {get; set;}
解説
このプロパティを使用して、ユーザーが折りたたみ/展開することができるノードを含む組織図を作成できます。簡単な例として、項目テンプレートに Windows.UI.Xaml.Controls.CheckBox 要素を追加し、その CheckBox.IsChecked プロパティを、その特定の項目を表す C1OrgChartIsCollapsed プロパティに連結する方法があります。次に例を示します。 <c1:C1OrgChart> <c1:C1OrgChart.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Name}" /> <CheckBox Margin="4 0" IsChecked="{Binding IsCollapsed, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=c1:C1OrgChart}}" /> </StackPanel> </DataTemplate> </c1:C1OrgChart.ItemTemplate> </c1:C1OrgChart> この XAML は、CheckBoxIsChecked プロパティを、その項目を含む C1OrgChart コントロールの IsCollapsed プロパティに連結します。これで、ユーザーは、CheckBox をオンにすることで、グラフを折りたたむ/展開することができます。
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

C1OrgChart クラス
C1OrgChart メンバ

Send Feedback