﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebDesktop background image</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop-background-image/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebDesktop background image</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop-background-image/</link><pubDate>Fri, 04 Sep 2015 03:54:32 GMT</pubDate><dc:creator>yudi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Following snippet code shows how to add background image in WebDesktopManager.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebDesktop:WebDesktopManager ID="WebDesktopManager1" runat="server" Height="100%"
    Width="100%" ShortcutIconsVisible="True" EnableContextMenu="true"&amp;gt;
    &amp;lt;ImagesSettings OverlayBackground="../images/aqua_images/aqua_bg.jpg" /&amp;gt;
    ...
&amp;lt;/ISWebDesktop:WebDesktopManager&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;By default, the background image will rendered as img element such as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;img style="width: 100%; height: 100%; position: absolute;" src="../images/aqua_images/aqua_bg.jpg"&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Using DOM Explorer, this element is the firstChild of WebDesktopManager. We can use OnInitialize client-side event to manipulate this element. For example: removes its height and width style to prevent the background image stretched based on the screen resolution. Thus the size of the image will be as-is.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function WebDesktopManager1_OnInitialize(controlId)
{
    var WebDesktopManager1 = ISGetObject(controlId);

    WebDesktopManager1.GetFrameElement().firstChild.style.height = "";
    WebDesktopManager1.GetFrameElement().firstChild.style.width = "";
            
    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebDesktop background image</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop-background-image/</link><pubDate>Thu, 03 Sep 2015 13:59:59 GMT</pubDate><dc:creator>stevieg</dc:creator><description>&lt;p&gt;I have a project that is using webdesktop and I have added a background image to the desktop.&lt;/p&gt;&lt;p&gt;The problem is the the image is getting stretched based on the screen resolution.&lt;/p&gt;&lt;p&gt;Is there a way to tell the desktop to not stretch the image and to leave the aspect ratio alone?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>