Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Image in Row Header of LaneGrid (Read 2144 times)
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Image in Row Header of LaneGrid
Nov 9th, 2011 at 12:56pm
Print Post  
Is there a way to display image inside a lanegrid row/column header when we using
MindFusion.Diagramming.Silverlight.Lanes
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Image in Row Header of LaneGrid
Reply #1 - Nov 9th, 2011 at 2:03pm
Print Post  
You could modify the default header template and add an <image> along the current <textblock>: This is the default:

Code
Select All
<Style TargetType="lanes:LaneGridHeaderPresenter">
	<Setter Property="Template">
		<Setter.Value>
			<ControlTemplate TargetType="lanes:LaneGridHeaderPresenter">
				<lanes:FourSidedBorder BorderStyle="{Binding Style}">
					<TextBlock Text="{Binding Title}" />
				</lanes:FourSidedBorder>
			</ControlTemplate>
		</Setter.Value>
	</Setter>
</Style> 



where
xmlns:lanes="clr-namespace:MindFusion.Diagramming.Silverlight.Lanes;assembly=Min
dFusion.Diagramming.Silverlight". You'll probably have to place the textblock and image inside a stack or grid panel. Here's an example showing how to assign a custom style to headers:
http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=130623...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Re: Image in Row Header of LaneGrid
Reply #2 - Nov 10th, 2011 at 5:27am
Print Post  
Thanks for the quick reply..

It helps me a lot.

Thanks once again.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint