Hello,
I have a problem trying to add a ZoomPanelStyle to an ImageZoom control in code.
Creating the ImageZoom control in code is working perfect it is only the ZoomPanelStyle (the style from the enlarged picture) that is not applied to the control.
I have tried the following :
1) Setting the ZoomPanelStyle.CssText property in the code
tmpImage = New EO.Web.ImageZoom()
tmpImage.ZoomPanelStyle.CssText = "background-color: silver; padding: 5px"
2) Setting the ZoomPanelStyle.InlineStyle items separately
tmpImage = New EO.Web.ImageZoom()
tmpImage.ZoomPanelStyle.InlineStyle.Item("background-color") = "silver"
tmpImage.ZoomPanelStyle.InlineStyle.Item("padding") = "5px"
3) Create an EO.Web.ElementStyle object and pass it on to the ZoomPanelStyle property
tmpImage = New EO.Web.ImageZoom()
tmpStyle = New EO.Web.ElementStyle
tmpStyle.BackColor = Drawing.Color.Silver
tmpStyle.Paddings.All = 5
tmpImage.ZoomPanelStyle = tmpStyle
None of the 3 previous methods gives me a silver backcolor or a 5 pixel padding on the enlarged picture.
Can you point me in the right direction on how to implement a ZoomPanelStyle from an ImageZoom control in code ?
Thanks in advance
Jerry