Archive

Archive for the ‘DXCore’ Category

How to load stored settings from an Options page inside of a plug-in

February 25th, 2011 Comments off

This is the third and the latest part of a topic about adding an options page into your DXCore plug-in. See the other parts, to learn more:

  1. Adding and designing an options page
  2. Implementing the options page settings storing logic
  3. Using settings from an options page inside a plug-in (this post)

In this post, we are going to read plug-in settings from the decoupled storage and update them when they are changed on the options page.

Read more…

How to implement the Options page logic for storing settings

February 25th, 2011 Comments off

Here’s the second part of the post about adding an options page into your DXCore plug-in. See the other parts, to learn more:

  1. Adding and designing an options page
  2. Implementing the options page settings storing logic (this post)
  3. Using settings from an options page inside a plug-in

Read more…

How to create a new plug-in Options page

February 25th, 2011 Comments off

This topic is about adding a DXCore Options page. It has three parts to make it easier to read and follow:

  1. Adding and designing an options page (this post)
  2. Implementing the options page settings storing logic
  3. Using settings from an options page inside a plug-in

Here’s the first part of the topic, and the steps we need to accomplish, to add an options page to your plug-in, and make it work:

  1. Run the options page wizard
  2. Layout controls on the page
  3. Add runtime behavior code for controls, if necessary

Read more…

DXCore Services – Resources

February 19th, 2011 2 comments

Resources service of DXCore contains shared resource images and drawing methods for use in plug-ins.

Methods of this service:

Read more…

DXCore Services – File

February 19th, 2011 Comments off

File service provides methods for file reading, writing, and editing.

Methods of this service:

Read more…

How to add new contracts for the Add Contract code provider

February 18th, 2011 Comments off

Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.

The Add Contract code provider adds conditions for validation of the active method parameters. The Extensible architecture of the DXCore allows you to add new contracts to the list of available contracts using the ContractProvider component inside your plug-in.

The sample below is a rough implementation for the suggestions registered in the DevExpress Support Center database:

  • S133903 Add Contract – Use IsNullOrWhiteSpace on contracts
  • S136474 Add Contract – Allow it to generate code for single parameter

Read more…

DXCore Components – ContractProvider

February 8th, 2011 Comments off

The ContractProvider DXCore component is used to extend the available contracts list for the Add Contract code provider shipped with Refactor! Pro and CodeRush Xpress.

The control doesn’t exist on the Visual Studio toolbox by default. You have to manually add it by selecting the “Choose Items…” in the context menu of the Visual Studio toolbox:

Read more…

DXCore Services – Options

February 5th, 2011 Comments off

This DXCore service provides methods and properties for manipulation of options pages and decoupled storages for persisting plug-in settings.

Read more…