Manage a component

Creating a new component

Creating an UI component

  1. If you want add a new UI component to the project, you can follow this.
  2. Fill the component path in the Container and a name in the Component Name. And then click Finish.

Creating a C# class

  1. Right click the project name, select New->C# class.
  2. Fill the File name and click Finish.

Renaming a component

In this section, you will rename a ESL component using Renaming.... Renaming actions change the structure of your code without changing its behavior.

  1. In the Project Explorer view, select Demo/Page.xaml.
  2. From its context menu, select Renaming....
  3. In the New Name field on the Rename Resource page, type "TestPage".
  4. Click OK, the new name of the component can be seen in the project explorer. The XAML file, code behind files and the import statements in other compilation units are all changed with the new name.
  5. The eclipse will pop-up a File Changed dialog, and click Yes to finish.

Removing a component

  1. If a component is useless in the project any longer, you can delete it. Right click on the XAML file, in the pop-up menu, select Delete.
  2. Click OK in the confirming dialog. Then the XAML file and related code behind files are removed physically from the project.