﻿<?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 - WebAqua - How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</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>How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</link><pubDate>Wed, 28 Oct 2009 22:34:55 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebAqua</category><category>WebCoverFlow</category><description>I have created a sample based on the scenario. This sample demonstrate the WebCoverFlowItem creation using object and setting the ImageSource property to a BitmapImage object.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;The sample works without any issue in our environment.&lt;/div&gt;</description></item><item><title>How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</link><pubDate>Wed, 28 Oct 2009 17:36:13 GMT</pubDate><dc:creator>slaughac</dc:creator><category>WebAqua</category><category>WebCoverFlow</category><description>&lt;p&gt;I'm tried adding one image to the coverflow and it does not show up.  The browser also throws an error when I click the Last button in the control (sort of like a Javascript error with the error icon appearing in the bottom left corner of the browser).  I've attached a file with screenshots of the error (couldn't copy and paste the text).&lt;/p&gt;
&lt;p&gt;I'm not using a Uri to set the image source.  The BitmapImage is pulled in from a database and loaded into an Employee object.  The BitmapImage is exposed via the Photo property.  I'm positive the image loaded correctly because I can set the source of an Image control to the Photo property and it displays correctly.&lt;/p&gt;
&lt;p&gt;Here's the source code:&lt;/p&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;
WebCoverFlowItem&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; c = &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;WebCoverFlowItem&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;();&lt;br /&gt;c.ImageSource = employee.Photo;&lt;br /&gt;c.ItemName = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"Item1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;&lt;br /&gt;c.Title = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;Title1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;coverFlow.Items.Add(c);&lt;/span&gt;

</description></item><item><title>How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</link><pubDate>Wed, 28 Oct 2009 00:05:17 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebAqua</category><category>WebCoverFlow</category><description>&lt;p&gt;Care to elaborate why it does not work in your scenario? does the application returns error or the image does not show but there is no error?&lt;/p&gt;&lt;p&gt;Could you also give us some more information regarding the event you wish to bind the image?&lt;/p&gt;</description></item><item><title>How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</link><pubDate>Tue, 27 Oct 2009 11:00:18 GMT</pubDate><dc:creator>slaughac</dc:creator><category>WebAqua</category><category>WebCoverFlow</category><description>&lt;p&gt;Does not work.&lt;/p&gt;</description></item><item><title>How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</link><pubDate>Tue, 27 Oct 2009 01:24:27 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebAqua</category><category>WebCoverFlow</category><description>&lt;p&gt;WebCoverFlowItem ImageSource property will accept BitmapImage object. Here is a snippet of WebCoverFlow creation using WebCoverFlowItem and ImageSource&lt;/p&gt;&lt;pre&gt;String[] imgList = new String[]{"binfolder.jpg", "cal_ie.jpg", "designer_screenshot.jpg",     "FF3_1_SchedulerMarch2009.png", "FFRoundedCombo.jpg", "firebug.jpg", "LIC-1.jpg", 
    "SchedulerWeekView.png", "WebTreeViewAbout.jpg"};
foreach (String imgFile in imgList)
{
    WebCoverFlowItem test1 = new WebCoverFlowItem();
    test1.ImageSource = new BitmapImage(new Uri("images/" &amp;#43; imgFile, UriKind.Relative));
    test1.ItemName = "Item" &amp;#43; index.ToString();
    test1.Title = "Image #" &amp;#43; index.ToString() &amp;#43; " Title";
    CoverFlow1.Items.Add(test1);
    index&amp;#43;&amp;#43;;
}&lt;/pre&gt;
&lt;p&gt;  &lt;/p&gt;</description></item><item><title>How to load BitmapImage</title><link>http://www.intersoftsolutions.com/Community/WebAqua/How-to-load-BitmapImage/</link><pubDate>Mon, 26 Oct 2009 22:46:20 GMT</pubDate><dc:creator>slaughac</dc:creator><category>WebAqua</category><category>WebCoverFlow</category><description>&lt;p&gt;How do I display a BitmapImage in the WebCoverFlow.  I call a WCF service to get the images, so I do not have a hardcoded path to a static image.  The images are returned as BitmapImages, so how to I display a BitmapImage in the control?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>