-
Notifications
You must be signed in to change notification settings - Fork 263
Add New Code and Parts to Your Application
Add the application's unique features, using the appropriate ATF classes and components, starting with the most important features. This can entail creating components of your own, although it doesn't for LandscapeGuide
.
Because it is simple and similar to SimpleDOMEditor
, the only remaining things to add to LandscapeGuide
are resources for the plant and ornamentation icons.
Using a drawing tool of your choice, create plant and ornamentation icons the same size as the resource icons in SimpleDOMEditor
. Add them to the project. When you add the icon files to the project, set their properties:
- Build Action: Embedded Resource
- Copy to Output Directory: Do not copy
System.ComponentModel.Composition.CompositionException
in Atf.Core.dll
when you try to run the application.
Finally, add your resources to the Resources
class in Resources.cs
:
/// <summary>
/// Plant image resource filename</summary>
[ImageResource("plant.png")]
public static readonly string PlantImage;
/// <summary>
/// Ornamentation image resource filename</summary>
[ImageResource("ornamentation.png")]
public static readonly string OrnamentationImage;
You generally want to save user edited data some way, usually in a file. SimpleDOMEditor
does this by using ATF DOM classes for data persistence. The XML schema data model specified in the type definition file also specifies the XML format of saved data. If you want to use the ATF DOM and XML to save user data, you don't need to change anything. If you want to save data in some other format, you have additional code to write. You can base what you do on the ATF DOM DomXmlReader
and DomXmlWriter
classes. For information on data persistence with the ATF DOM, see the ATF Programmer’s Guide: Document Object Model (DOM), which you can download at ATF Documentation.
Creating an Application from an ATF Sample
- Steps for Creating an Application Based on an Existing Sample: Suggested steps for building on an existing sample.
- Choose ATF Sample to Base Application On: Pick a sample that most closely matches your new application's features.
- Copy ATF Sample and Run It: Copy the indicated folders and files in ATF to start your application development.
- Start Customizing Your Application Software: Begin the process of transforming the sample into your application.
- Define Your Application's New Data Model: Define the types in your application's data in a file and create a schema.
- Modify Your Application's Existing Software: Modify the sample's existing code to work for your application.
- Add New Code and Parts to Your Application: Add the application's unique features, using the appropriate ATF classes and components.
- Build, Run, and Debug Your Application: With all code changed and features added, finish development.
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC