Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Templating/Styling features (Read 1294 times)
dku
YaBB Newbies
*
Offline



Posts: 41
Joined: Jun 5th, 2008
Templating/Styling features
Jun 19th, 2009 at 2:24pm
Print Post  
Hello,

We are developing using your framework. In our application we strongly use the templating and styling features from WPF. We have different themes for our application, BUT it seems that you don't use templating/and styling to change appearance of nodes and other properties.

So we change the colors in code getting the resource from theme, but it is not WPF philosophy ...

Are we doing wrong ?

Thanks for your help
A+
Didier
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Templating/Styling features
Reply #1 - Jun 19th, 2009 at 2:56pm
Print Post  
Hi,

Do you want to apply a style to the diagram and all items to reflect the style colors? There are some dependency properties in DiagramItem such as Brush, but they do not inherit their value from the diagram. We could make them inherit the respective default-value property, e.g. ShapeNode.Brush could inherit from Diagram.ShapeBrush. Then you would be able to apply a style that sets ShapeBrush and the new color should show in all shape nodes.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint