tailieunhanh - Bài giảng Công nghệ lập trình tiên tiến: Chương 1 - ĐH Công nghệ Đồng Nai

Bài giảng Công nghệ lập trình tiên tiến: Chương 1 trình bày các nội dung kiến thức về thiết kế giao diện với Custom Component. Tham khảo nội dung bài giảng để hiểu rõ hơn về các nội dung trên. | Metro 1 Creating User Interface Using custom components Creating your own control Using 3rd controls 2 1. User control vs Custom control "Custom" Controls: (Extending an existing control) – Extends an existing control with additional features – Typically derive from RichControl – The best approach to build a control library – This example of a "Numeric up/down" control is an extension of a textbox. 1. User control vs Custom control "User" or Composite Controls: – Composes multiple existing controls into a reusable "group" – Derives from UserControl – This example of an "RGB user control" composes three labels and textboxes. Example : custom control Create simple textbox – Input data • If user enter not number show message and set focus • Change BackColor to Red if user enter value is Negative number 1. User control vs Custom control public partial class MyTextBox : TextBox { private void MyTextBox_Validating (object sender, CancelEventArgs e) { double v=0; if . | Metro 1 Creating User Interface Using custom components Creating your own control Using 3rd controls 2 1. User control vs Custom control "Custom" Controls: (Extending an existing control) – Extends an existing control with additional features – Typically derive from RichControl – The best approach to build a control library – This example of a "Numeric up/down" control is an extension of a textbox. 1. User control vs Custom control "User" or Composite Controls: – Composes multiple existing controls into a reusable "group" – Derives from UserControl – This example of an "RGB user control" composes three labels and textboxes. Example : custom control Create simple textbox – Input data • If user enter not number show message and set focus • Change BackColor to Red if user enter value is Negative number 1. User control vs Custom control public partial class MyTextBox : TextBox { private void MyTextBox_Validating (object sender, CancelEventArgs e) { double v=0; if (!(, out v)){ ("Not valid Number"); (); } else{ if (v < 0) = ; else = ; } } } 2. Third party component Introduce some common .NET Components . DotNetBar . Grid .NET Component . Skin .Net Component 7 Introduce some common .NET Components DotNetBar Infragistics Xceed Studio PureComponent Componentone Studio – Grid .Net component – Skin .Net Component Infragistics 10 Syncfusion Essential Grid for Windows Forms Add, grid, scheduling, toolbars, menus, list bars, tree, UI and editing functionality to your .NET, Visual Studio 2010, and Tablet PC applications. Infragistics NetAdvantage is a comprehensive presentation layer tool set for designing commercial class user interfaces for all Microsoft development environments - Windows Forms (including Visual Studio 2010), .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.