彩票走势图

[干货]DevExpress WPF 常用代码集锦

转帖|使用教程|编辑:龚雪|2016-12-28 10:50:21.000|阅读 303 次

概述:

# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>

1. 在创建的组中实现只能选中一个项目

<Window
        xmlns="//schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="//schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxb="//schemas.devexpress.com/winfx/2008/xaml/bars" 
        xmlns:dxe="//schemas.devexpress.com/winfx/2008/xaml/editors"
        xmlns:dx="//schemas.devexpress.com/winfx/2008/xaml/core" x:Class="WpfApplication302.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <DockPanel>
            <dxb:ToolBarControl Caption="Edit" DockPanel.Dock="Top">
                <dxb:BarItemSelector>
                    <dxb:BarCheckItem Glyph="{dx:DXImage Image=3DColumn_16x16.png}"/>
                    <dxb:BarCheckItem Glyph="{dx:DXImage Image=3DFullStackedArea_32x32.png}"/>
                    <dxb:BarCheckItem Glyph="{dx:DXImage 

2. 报表打印

using System;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;

namespace PrintReport {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {
            // Create a report instance, assigned to a Print Tool.
            ReportPrintTool pt = new ReportPrintTool(new XtraReport1());

3. 手动添加DXSplashScreen控件

// Developer Express Code Central Example:
// How to manually invoke and close DXSplashScreen
// 
// This example shows how to manually invoke and close DXSplashScreen. By default,
// DXSplashScreen contains a progress bar, indicating the progress of the
// application load. This example also shows how you can manually change the
// progress in code.
// 
// You can find sample updates and versions for different programming languages here:
// //www.devexpress.com/example=E3243

 

素材来源:DevExpress控件中文网 [//www.devexpresscn.com/]

想要了解更多DevExpress使用技巧?海量视频课程以及最专业的DevExpress培训尽在。


标签:DevExpress

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@pclwef.cn


为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP