Manage a component
- If you want add a new UI component to the project, you can
follow this.
- Fill the component path in the Container and a name in the
Component Name. And then click Finish.
- Right click the project name, select New->C# class.
- Fill the File name and click Finish.
In this section, you will rename a ESL component using Renaming....
Renaming actions change the structure of your code without changing its
behavior.
- In the Project Explorer view, select Demo/Page.xaml.
- From its context menu, select Renaming....
- In the New Name field on the Rename Resource page, type
"TestPage".
- 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.
- The eclipse will pop-up a File Changed dialog, and click Yes
to finish.
- 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.
- Click OK in the confirming dialog. Then the XAML file and
related code behind files are removed physically from the project.