- [DEVEXPRESS] Hướng dẫn bật tính năng Scroll Pixcel in Touch trên GridView
- [DEVEXPRESS] Hướng dẫn sử dụng TileBar viết ứng dụng duyệt hình ảnh Winform
- [DEVEXPRESS] Tô màu border TextEdit trên Winform
- [C#] Lấy dữ liệu từ Console Write hiển thị lên textbox Winform
- [C#] Hiển thị Progress bar trên Window Console
- [C#] Di chuyển control Runtime và lưu layout trên winform
- [SQLSERVER] Sử dụng hàm NULL IF
- [C#] Chia sẽ source code mã đi tuần bằng giao diện Winform
- [C#] Flash Window in Taskbar Winform
- Download và Giải nén tập tin File sử dụng Powershell
- [C#] Hướng dẫn cách lấy thông tin đăng nhập tài khoản và mật khẩu web browser trên windows
- [VB.NET] CRUD Thêm xóa sửa tìm kiếm Realtime FireBase
- [C#] Hiển thị thông báo Toast Message trong lập trình Winform
- [C#] Cấu hình định dạng ngày tháng, thời gian trên Windows cho ứng dụng Winform
- [C#] Rút gọn đường dẫn link url với TinyURL API
- [C#] Hướng dẫn cách bo tròn winform with Radius
- [C#] Chia sẽ class BackGroundOverlay Show Modal cho Winform
- [C#] Hướng dẫn Flip Image Winform
- [C#] Invoke là gì? cách sử dụng phương thức Invoke()
- [C#] Hướng dẫn chia sẽ file, folder từ ứng dụng sang Zalo Chat
[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!