Giter VIP home page Giter VIP logo

how-to-create-a-custom-xtramessagebox-with-the-extended-functionality-t229906's Introduction

How to create a custom XtraMessageBox with the extended functionality

This example demonstrates how to create a MessageBox with an extended functionality. For this, create MyXtraMessageBox class descendant that is inherited from the XtraMessageBox class and uses the XtraMessageBoxArgs class - a MyXtraMessageArgs descendant which contains properties to customize the XtraMessageBox behavior. 
- ShowCountDown. If this property is true, the message box title will show you how many seconds are left before the timeout. When the countdown is over, the title will show its usual value.
- ShowNextTime. This property allows you to show a CheckBox on your message form. When you close the form, the result will be saved in the ShowMessageNextTime property of MyXtraMessageArgs and you can use this value later.
- DisableButtons. If this property value is true, all buttons except for "Cancel" will be disabled on the form.
- DisableCancel. This property gives you an opportunity to disable the "Cancel" button on the form.
- AutoClose. If you want to close your form, after the countdown is over, set this property to true. Also, you need to define the value of the AutoCloseResult property. This property shows what value will be received from the MyXtraMessageBox.Show method if the form is automatically closed.
- Center. If this property value is true, the MessageBox will be center aligned against its parent form.
- Timeout. This property sets the timer for the AutoClose and ShowCountDown properties in seconds. Its value should be greater than 0, otherwise, these properties will be unavailable.
- Buttons. This property specifies what buttons will be available on the form.
- Icon. This property specifies the MessageBox icon.


how-to-create-a-custom-xtramessagebox-with-the-extended-functionality-t229906's People

Contributors

devexpressexamplebot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.