public MainWindow()
        {
            ExpressionBindingDescriptor.SetPropertyDescription(typeof(XRProgressBar), "Progress", new ExpressionBindingDescription(new[] { "BeforePrint" }, -1, new string[0], null));
            InitializeComponent();

            var icon = BitmapFrame.Create(AssemblyHelper.GetResourceUri(GetType().Assembly, "progress.png"));

            DevExpress.Xpf.Reports.UserDesigner.ReportDesigner.RegisterControl <XRProgressBar>(() => new XRProgressBarDiagramItem(false), icon);
            reportDesigner.OpenDocument(new XtraReport1());
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Handle the static FilterComponentProperties event to filter the Property Grid.
            XtraReport.FilterComponentProperties += XtraReport_FilterComponentProperties;

            // For the XRLabel control, hide the Background Color and Tag properties from the Expressions tab.
            ExpressionBindingDescriptor.HidePropertyDescriptions(typeof(XRLabel), "BackColor", "Tag");
            Application.Run(new Form1());
        }
コード例 #3
0
 protected override void OnStartup(StartupEventArgs e)
 {
     // For XRLabel controls, hide the Background Color and Tag properties from the Expressions tab.
     ExpressionBindingDescriptor.HidePropertyDescriptions(typeof(XRLabel), "BackColor", "Tag");
     base.OnStartup(e);
 }