In this post I will show you how to create a simple Hello World Sample using Acropolis.
Acropolis is a set of components and tools that make it easier for developers to build and manage modular, business focused, client .NET applications, For more info, see Johnny’s post.
In order to do this sample, you will need to install the following components:
Let’s go!.
- Create a new Acropolis WPF Application. Name it AcropolisHelloWorld.
- After creating the solution you will see the Acropolis Application Wizard. This wizard lets you choose the theme, the navigation style and the layout of the application. Navigate through the wizard, without changing the default values. Click on Finish to continue.
- Now that you have created the solution, we will add an Acropolis Part and View. Right click over the project | New Item | Acropolis Part and View (WPF). Name it HelloWorldPart.xaml
An "Acropolis" part is a coarse-grained piece of business logic that typically contains more functionality than a control, but less than an entire application. A part is different than a control because it contains only business logic and no user interface code. However, a part does have a user interface associated with it. The user interface portion of a part is called a part view or just view.
- We are going to add a command to the HelloWorldPart. Open it and double click over the ComponentCommand of the Acropolis Framework tab of the ToolBox.
The ComponentCommand is a connection point that enables parts or external entities to execute some piece of functionality inside a part.
- If you follow all the steps, you are going to see this:
- Rename the command to ShowMessageCommand. Add the CommandExecuted attribute with OnShowMessage as value.
- Open HelloWorldPart.cs (the HelloWorldPart.xaml code-behind) and copy the following code:
- Open Application.xaml. In the User Components (Acropolis) tab, you will see your part, double click to add it as a child part.

- Build and run the solution. Click on the triangle to see the list of commands. Select ShowMessageCommand and enjoy!
In the second part, we are going to learn how to retrieve the Hello World message from a service.
Source code
- You can get the source code of the Hello World sample by downloading the AcropolisHelloWorld.zip file below.
- Important: The code is provided "as is" without warranty of any kind.
Attachment: AcropolisHelloWorld.zip