Reuse sample data in other projects
The easiest ways to reuse sample data in multiple projects are to duplicate your project or to create an XML file to represent your data and import the XML file into each project.
For more information, see Create a duplicate project or Import sample data from an XML file.
Alternatively, you can add the folder of generated sample data to another project to reuse the data that it contains. This procedure requires more steps than importing an XML file, but you might find yourself in a situation where you need to reuse generated data.
To reuse generated sample data files in other projects
In the project to which you want to copy the sample data, create a new sample data source, giving it the same name as the data source that you want to copy.
In the Projects panel, expand the SampleData folder, right-click the folder that contains the XAML and XSD files, and then click Add Existing Item.
In the Add Existing Item dialog box, browse to the project folder from which you want to copy the data, expand the SampleData folder, browse to the data source folder that contains the XAML and XSD files that you want, select all the items (there might be a folder of images in addition to the XAML and XSD files, so select that also), and then click Open.
In the Overwrite files dialog box, click Yes.
When you see the message about a file being modified outside Blend, click Yes.
Save the project and close it.
Open the project again. You will see the new schema in the Data panel.
참고 항목
작업
Import sample data from an XML file