SilverlightShow: Custom controls: Weather forecast control: Part 1 - Introduction Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: Custom controls: Weather forecast control: Part 1 - Introduction <em><span style="font-size: 11pt; line-height: 115%; font-family: calibri, sans-serif;">The article has been updated to the latest version of Silverlight and Visual Studio.</span></em> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment5310 lnikolov http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Thu, 13 Jan 2011 16:58:38 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>In the beginning of the article there is a live demo of the widget. ;)</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment1001 Enrai http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Mon, 02 Feb 2009 06:36:45 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>You're kidding, right? It said View It, and this is all tech, and doesn't show how the widget would actually LOOK.</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment992 Lost in Vista http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Sat, 31 Jan 2009 13:27:11 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>How can we get the wether for other countries?</p> <p><a href="http://www.silverlight-travel.com/blog" name="Silverligt Travel">www.silverlight-travel.com/blog</a></p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment735 Silverlight Travel http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Thu, 20 Nov 2008 18:45:04 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>To remove the buttons, try removing/commenting them from the <em><strong>Themes/generic.xaml</strong></em> - the style for the <em><strong>AnimatedSlider</strong></em>, and then go to the <em><strong>AnimatedSlider.cs</strong></em> file and remove/comment everything related to the <strong><em>PreviousButton </em></strong>and the <em><strong>NextButton</strong></em>. The both are located in the ControlsLibrary project.</p> <p>To handle the click on the images create a handler for the <em><strong>MouseLeftButtonDown </strong></em>or <em><strong>MouseLeftButtonUp </strong></em>event of the <em><strong>Image </strong></em>control in the <em><strong>ItemTemplate </strong></em>of the ItemsControl.</p> <p>Hope this helps you, if you have more questions, don't hesitate to ask. :)</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment654 Enrai http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Tue, 11 Nov 2008 03:14:49 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>This is really Nice. But is there a way where I can remove the left and Right button. I would want to tweak this control to use as a Carousel menu Control with Sub menus also as a Carousel. I donot want to have the right and left button. Also I need to have even handlers on clicking images on the Item control (the second set of images you displayed.)</p> <p>I am pretty new to Siverlight.</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment642 Rocky http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Sun, 09 Nov 2008 11:59:35 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>All this shows is a blank white spot in IE6, nice</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment610 Eric Kleeman http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Tue, 04 Nov 2008 23:24:17 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>Thanks for your response, I will try all of your suggestions. I will post any results here, again thank you for your help. Keep up the good work.</p> <p> </p> <p>Gus G.</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment305 Gus G. http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Sun, 17 Aug 2008 15:42:17 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p><span style="display: inline-block; width: 100%;" class="dataList" id="ctl00_ContentPlaceHolderContent_itemComments_dlstComments"><span> <div class="commentText"> <p>Hi Gus,</p> <p>please see the update we posted it could be just what you need</p> <p>http://www.silverlightshow.net/items/Weather-control-update.aspx</p> <p>Denislav Savkov</p> </div> </span></span></p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment303 dejo http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Fri, 15 Aug 2008 11:03:23 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>Hi Gus,<br /> <br /> the functionality you are talking about is simple to implement but it raises a problem with the mouse dragging. I will try to post tomorrow an updated version that has this type of scrolling and try to keep the mouse dragging.  I am taking ten days off but the next thing I'll be working on is probably something like a drag manager that helps with that and can be used on any object. </p> <p>Right now there's a way to achieve what you want by making a few changes in the Template of the AnimatedSlider in generic.xaml. You need to adjust manually the size of the By property of the left and right animations to match the width of your container, currently it is set to 40. The width of you container is  = control's Height / ItemHeight * ItemWidth.  You also need to adjust the left and right button's Interval property to match the duration of the left/right animations. Here is a sample with control height 140, item height 120, item width 110</p> <p>                            <Storyboard x:Name="ToLeftStoryboard"><br />                                 <DoubleAnimation x:Name="LeftAnimation"<br />                                  Storyboard.TargetName="ItemsPresenter"<br />                                  Storyboard.TargetProperty="(Canvas.Left)"<br />                                  By="128.3" Duration="0:0:.2"/><br />                             </Storyboard><br />                             <Storyboard x:Name="ToRightStoryboard"><br />                                 <DoubleAnimation x:Name="RightAnimation"<br />                                     Storyboard.TargetName="ItemsPresenter"<br />                                  Storyboard.TargetProperty="(Canvas.Left)"<br />                                  By="-128.3" Duration="0:0:.2"/><br />                             </Storyboard><br />                         </Grid.Resources><br />                         <RepeatButton x:Name="LeftButton" Content="Left" Delay="0" Interval="200" /><br />                         <RepeatButton x:Name="RightButton" Content="Right" Grid.Column="2"  Delay="0" Interval="200" /></p> <p>This procedure is not convenient so we will try to add such functionality to the slider in future. Any feedback is welcome.</p> <p>Denislav Savkov</p> <p> </p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment298 dejo http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Thu, 14 Aug 2008 02:38:23 GMT RE: Custom controls: Weather forecast control: Part 1 - Introduction <p>Very nice,</p> <p>I got some of the functionality of your control and use in a project where I need to display a list parts with description and images from an XML file. It is working OK, but I when I click the right or left button on the control it slide the content a little bit a the time to the left or right.</p> <p>I need the control to go to the next or previous part . How can I use it so it will jump directly to the start of the next part or the position of the next part  that I need to display. I seen some image slider example in the Internet that do what I need here, they just go to display the next full image when you click next.</p> <p>Any help will be appreciated,</p> <p>Gus G</p> http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx#comment296 Gus http://www.silverlightshow.net/items/Custom-controls-Weather-forecast-control-Part-1-Introduction.aspx Wed, 13 Aug 2008 13:42:31 GMT