- [C#] Hướng dẫn fix lỗi Visual Studio 2022 not Support Target Net Framework 4.5.2
- [C#] Giới thiệu thư viện Sunny UI thiết kế giao diện trên Winform
- [DATABASE] Hướng dẫn thêm và cập nhật Extended Property Column trong Table Sqlserver
- [DEVEXPRESS] Hướng dẫn sử dụng Vertical Gridview để hiển thị thông tin sản phẩm
- [C#] Hướng dẫn sử dụng Json Schema để Validate chuỗi string có phải json
- [C#] Hướng dẫn sử dụng công cụ Clean Code trên Visual Studio
- [C#] Hướng dẫn Drag and Drop File vào RichTextBox
- [C#] Hướng dẫn tạo hiệu ứng Karaoke Text Effect Winform
- [C#] Sử dụng thư viện ZedGraph vẽ biểu đồ Line, Bar, Pie trên Winform
- [DATABASE] Hướng dẫn sort sắp xếp địa chỉ IP trên sqlserver sử dụng hàm PARSENAME
- [C#] Theo dõi sử kiện process Start hay Stop trên Winform
- [ASP.NET] Chia sẻ source code chụp hình sử dụng camera trên website
- [C#] Chạy ứng dụng trên Virtual Desktop (màn hình ảo) Winform
- [C#] Mã hóa và giải mã Data Protection API trên winform
- [C#] Hướng dẫn tạo Gradient Background trên Winform
- [DATABASE] Hướng dẫn convert Epoch to DateTime trong sqlserver
- [DATABASE] Hướng dẫn sử dụng STRING_AGG và CONCAT_WS trong sqlserver 2017
- [C#] Hướng dẫn Copy With All Property in Class Object
- [DEVEXPRESS] Hướng dẫn load Json DataSource vào GridView
- [C#] Hướng dẫn tạo chữ ký trên winform Signature Pad
[DEVEXPRESS] Hướng dẫn sử dụng Popup Gallery Edit trong C#
Xin chào các bạn, bài viết hôm nay mình sẽ tiếp tục hướng dẫn đến các bạn control Popup Gallery Edit Devexpress trong lập trình C#.
[DEVEXPRESS] Sử dụng Popup Gallery Edit C#
Trong bài này, mình sẽ demo load toàn bộ skin của Devexpress để nhúng vào Gallery Combobox Control.
Và khi chúng ta, chọn sẽ thay đổi giao diện Skin hiện tại của Winform.
Dưới đây là hình ảnh demo ứng dụng thay đổi skin giao diện với Gallery Popup Edit control C#:
Đầu tiên, từ thanh công cụ toolbox các bạn lấy ra công cụ Popup Gallery Edit như hình bên dưới:
Và tiếp theo chúng ta sẽ code cho popup Edit này load dữ liệu tất cả các skin của Devexpress c# vào:
using DevExpress.XtraBars.Helpers;
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Gallery_Combobox
{
public partial class Form1 : DevExpress.XtraEditors.XtraForm
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
SkinHelper.InitSkinGallery(popupGalleryEdit1);
popupGalleryEdit1.Properties.Gallery.ColumnCount = 10;
popupGalleryEdit1.Properties.Gallery.ColumnCount = 6;
popupGalleryEdit1.Properties.Gallery.ShowItemText = true;
popupGalleryEdit1.Properties.Gallery.DistanceItemImageToText = 25;
popupGalleryEdit1.Properties.Gallery.ImageSize = new Size(32, 32);
}
}
}
Các bạn có thể download đoạn source code này ở bên dưới về để tích hợp vào thay đổi giao diện cho ứng dụng của mình.
Thanks for watching!