'宣言 Public Property FooterTemplate As DataTemplate
public DataTemplate FooterTemplate {get; set;}
注: このプロパティを設定するには、Infragistics.Windows.Reporting.ReportSection はその Infragistics.Windows.Reporting.ReportSection.PageFooterTemplate プロパティを使用します。それが Null の場合、Report の Infragistics.Windows.Reporting.ReportBase.PageFooterTemplate プロパティの値を使用します。
Private Sub SetPageFooterTemplate() Dim reportObj As Report = New Report() ..... Dim borderFactory As FrameworkElementFactory = New FrameworkElementFactory(Type.GetType(Border)) Dim buttonFactory As FrameworkElementFactory = New FrameworkElementFactory(Type.GetType(Button)) borderFactory.AppendChild(buttonFactory) Dim dt As DataTemplate = New DataTemplate() dt.VisualTree = borderFactory reportObj.PageFooterTemplate = dt End Sub
private void SetPageFooterTemplate() { Report reportObj = new Report(); ..... FrameworkElementFactory borderFactory = new FrameworkElementFactory(typeof(Border)); FrameworkElementFactory buttonFactory = new FrameworkElementFactory(typeof(Button)); borderFactory.AppendChild(buttonFactory); DataTemplate dt = new DataTemplate(); dt.VisualTree = borderFactory; reportObj.PageFooterTemplate = dt; }