バージョン

UseNestedPanels プロパティ

階層データを表示するために項目パネルを使用する方法を決定します。
シンタックス
'宣言
 
Public Property UseNestedPanels As Boolean
public bool UseNestedPanels {get; set;}
解説

注: このプロパティを「False」に設定すると、RecordPresenter を配置するために単一の GridViewPanelFlat を使用するので、ネスト構造が深くなりパフォーマンスを向上します。ただし、各 RecordPresenterRecordPresenter.NestedContent を使用できないため、ネストされたコンテンツのクロームまたはアニメーションは含まれません。

使用例

    
<!-- Setting UseNestedPanels to true on a XamDataGrid will
         cause nested content to become active. This will enable
         any chrome, animations and triggers relating to
         RecordPresenters' nested content.
-->
    
<igDP:XamDataGrid x:Name="xamDataGrid1">
        
<igDP:XamDataGrid.ViewSettings>
            
<igDP:GridViewSettings UseNestedPanels="True" Orientation="Vertical"/>
        
</igDP:XamDataGrid.ViewSettings>
    
</igDP:XamDataGrid>

    
<!-- Here is how you would set UseNestedPanels properties
         on a XamDataPresenter.
         Note: the default value for UseNestedPanels is false and
               the default value for Orientation is Vertical.
-->
    
<igDP:XamDataPresenter x:Name="xamDataPresenter1">
        
<igDP:XamDataPresenter.View>
            
<igDP:GridView>
                
<igDP:GridView.ViewSettings>
                    
<igDP:GridViewSettings UseNestedPanels="True" Orientation="Vertical"/>
                
</igDP:GridView.ViewSettings>
            
</igDP:GridView>
        
</igDP:XamDataPresenter.View>
    
</igDP:XamDataPresenter>

' Setting UseNestedPanels to true on a XamDataGrid will
' cause nested content to become active. This will enable
' any chrome, animations and triggers relating to
' RecordPresenters' nested content.
Me.xamDataGrid1.ViewSettings.UseNestedPanels = True
Me.xamDataGrid1.ViewSettings.Orientation = Orientation.Vertical

' Here is how you would set ViewSettings properties
' on a XamDataPresenter.
' Note: the default value for UseNestedPanels is false and
'       the default value for Orientation is Vertical.
Dim gv As New Infragistics.Windows.DataPresenter.GridView
gv.ViewSettings.UseNestedPanels = True
gv.ViewSettings.Orientation = Orientation.Vertical
Me.xamDataPresenter1.View = gv
// Setting UseNestedPanels to true on a XamDataGrid will
     // cause nested content to become active. This will enable
     // any chrome, animations and triggers relating to
     // RecordPresenters' nested content.
     this.xamDataGrid1.ViewSettings.UseNestedPanels = true;
     this.xamDataGrid1.ViewSettings.Orientation = Orientation.Vertical;

     // Here is how you would set ViewSettings properties
     // on a XamDataPresenter.
     // Note: the default value for UseNestedPanels is false and
     //       the default value for Orientation is Vertical.
     Infragistics.Windows.DataPresenter.GridView gv 
         = new Infragistics.Windows.DataPresenter.GridView();
     gv.ViewSettings.UseNestedPanels = true;
     gv.ViewSettings.Orientation = Orientation.Vertical;
     this.xamDataPresenter1.View = gv;
参照