Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom Layout Error (Read 1712 times)
sunnytham
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jul 16th, 2010
Custom Layout Error
Jul 16th, 2010 at 8:01am
Print Post  
Trying to create a custom layout to test the feature before buying the diagramming wpf component. But encounter error where it ask me to override MindFusion.Diagramming.Wpf.Layout.Layout.Name.Get
and
MindFusion.Diagramming.Wpf.Layout.Layout.DefaultMarginValue.Get

But, i dont saw any of these abstract properties even in the Layout. Is it possible to create our own custom layout?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Layout Error
Reply #1 - Jul 16th, 2010 at 8:45am
Print Post  
Hi,

We haven't expected someone would need to override Layout and these properties are internal. For now you might code your custom layout logic in a separate method as in the WorkflowDesigner sample project. We'll make these members public next week and you will be able to move your code to the Arrange override of a derived Layout class then.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Layout Error
Reply #2 - Jul 19th, 2010 at 7:51am
Print Post  
This version makes Name a public property and DefaultMarginValue a protected one, so you can override them now:
https://mindfusion.eu/_temp/wpfdiag_layout.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint