Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic setting Diagram BackgroundImage Align (Read 1376 times)
Joe
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Jun 6th, 2012
setting Diagram BackgroundImage Align
Mar 4th, 2013 at 1:09am
Print Post  
for example:
if (BackGroundImageLayout.ToString() == "Tiled")
{
Diagram.BackgroundImageAlign = ImageAlign.Tile;
}
else if (BackGroundImageLayout.ToString() == "Stretch")
{
Diagram.BackgroundImageAlign = ImageAlign.Stretch;
}
else if (BackGroundImageLayout.ToString() == "Centered")
{
Diagram.BackgroundImageAlign = ImageAlign.Center;
}

if tiled the diagram BackgroundImageAlign is ok,but the Center and Stretch the BackgroundImageAlign does not work.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: setting Diagram BackgroundImage Align
Reply #1 - Mar 4th, 2013 at 9:50am
Print Post  
Both Center and Stretch work as expected in my test. Try adding breakpoints to the assignment lines to see if they are ever executed, and verify that BackgroundImageAlign is not reset to Tile later. Also note that BackgroundImageAlign is stored in diagram XML files; if you need it aligned according to some setting in the UI after loading a file, you will have to set the value after each LoadFromXml call.

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