Home > Developing Using CodeFluent Entities > Customizing Namespaces

Customizing Namespaces


The design surface in the Modeler is in WPF and this is true for Visual Studio 2010 as well as Visual Studio 2008. This allows the Modeler to benefit from WPF’s key features such as vector rendering. On another subject we also saw in a previous post that CodeFluent Entities supports multiple namespaces in models. This means that I can easily design a model such as this one:

image

Obviously, the model above isn’t really complicated, nevertheless, say I want to customize my namespace shapes so I can easily spot each of my namespaces in a blink. I can right-click on one of them and in the Properties grid I can define a specific Background for it.

image

As mentioned earlier, the surface is rendered in WPF, so the Background for my Namespace shape is in fact a WPF Brush! Consequently, clicking on the “…” button in the Background property value cell pops-up the Brush Editor. You can then select your desired brush.

Available brushes are:

  • Image,
  • Linear Gradient,
  • Radial Gradient,
  • Solid Color,
  • Hatch,
  • or Custom.

To define pictures for each of my Namespace shapes, I need to pick an Image brush and then point to a picture which will represent my namespace:

image

Let’s repeat the same operation for each of my namespaces, and here’s the result Smile

image

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s