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:
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.
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:
- Linear Gradient,
- Radial Gradient,
- Solid Color,
- 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:
Let’s repeat the same operation for each of my namespaces, and here’s the result