tag:blogger.com,1999:blog-54411701332329295552024-03-14T21:42:49.376+13:00RedWolvx DenMy programming experiences with Microsoft Silverlight, ASP.net and .NET technology.Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-5441170133232929555.post-56302018708385284182011-09-05T22:14:00.001+12:002011-09-05T22:14:45.762+12:00Blog Moved to Wordpress<span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; "><p>I have decided to move my blog to <a href="http://drmcg.wordpress.com/" href="http://DRMcG.wordpress.com">DRMcG.Wordpress.com</a> to give it a go and it seems to have easy integration of souce code samples into blog posts.</p><p>This was probably possible with Blogger but this changed seemed like a good choice.</p><p>Thank you for continuing to follow me and I hope to increase the number of posts I make.</p><p>Duncan</p></span>Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-60155905640844720142011-08-31T21:35:00.002+12:002011-08-31T21:42:17.629+12:00Extend MapPolygon to allow binding to Fill Parameter<p style="width: 437px; height: 69.43%">The Silverlight Bing Maps Control library has a MapPolygon control to allow you to overlay geo-located polygons over your Bing Map.</p> <div align="left">The MapPolygon control has a property Fill that is used to set the fill Brush for the polygon, but there is no DependencyProperty for the Fill property and it cannot be set using a Binding statement in XAML.</div> <div align="left"> </div> <div align="left">One Solution for this is to extend the MapPolygon control to add a DependencyProperty for Fill.</div> <div align="left"> </div> <div align="left">Here is how you may implement this:</div> <div align="left"> </div> <pre>Public Class MapPolygonExtended
<br />Inherits Microsoft.Maps.MapControl.MapPolygon
<br />
<br />Public Shared ReadOnly FillProperty As DependencyProperty = DependencyProperty.RegisterAttached("Fill", GetType(Brush), GetType(MapPolygonExtended),
<br />New PropertyMetadata(New PropertyChangedCallback(AddressOf FillChangedCallback)))
<br />
<br />Public Overloads Property Fill() As Brush
<br />Get
<br /> Return MyBase.Fill
<br />End Get
<br />Set(ByVal value As Brush)
<br /> MyBase.Fill = value
<br />End Set
<br />End Property
<br />
<br />Private Shared Sub FillChangedCallback(ByVal d As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)
<br />Dim dlb As MapPolygonExtended = CType(d, MapPolygonExtended)
<br />dlb.Fill = CType(e.NewValue, Brush)
<br />End Sub
<br />
<br />End Class</pre>
<br /><div align="left">This then allows you to bind to the Fill property of your new extended control:</div>
<br /><div align="left"><local:MapPolygonExtended Fill=”{Binding Path=FillColour}” ></div>
<br /><div align="left">If the bound property is already of type Brush then it should just work as long as you have set the locations for the points of the polygon.</div>
<br />If it is another type such as a Color or String then you will need to use a binding converter.
<br />
<br />I hope this can help people setup bound MapPolygon.
<br />
<br /><div align="left">Happy Coding and Mapping</div> Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-66970648045691217542010-08-25T16:36:00.002+12:002010-10-01T13:14:39.953+13:00Autodesk Revit 2011 with .NET Framework 4.0I discovered yesterday that Autodesk Revit 2011 does not play nicely with .NET Framework v4.0 <div> </div> <div>If you have an external command built with .NET v4.0 that utilizes the RevitApi.dll it will not run from witin revit, as Revit only supports up to framework v3.5</div> <div> </div> <div>For something that is named for next year (there release cycle is April = Date.Now().Year() + 1)</div> <div>It is not great especially since their whole UI seems to be based on WPF.</div> <div> </div> <div>I have found a solution with the help of Redbolts.com </div> <div><a href="http://redbolts.com/blog/post/2010/05/31/Compiling-and-running-NET40-Revit-commands.aspx">http://redbolts.com/blog/post/2010/05/31/Compiling-and-running-NET40-Revit-commands.aspx</a></div> <div> </div> <div>To get my External Command to run i have had to change the Revit.exe.config file to include </div> <div> </div> <p><startup uselegacyv2runtimeactivationpolicy="true"></p> <p><supportedruntime sku=".NETFramework,Version=v4.0" version="v4.0"></p> <p><supportedruntime version="v2.0.50727"></p> <p></startup></p> <div> </div> <div>just before the closing </configuration>tag</div> <div> </div> <div>This allows any of our external commands .NET v4.0 and .NET v3.5 to run</div> <div> </div> <div>I have not had any issues as of yet with this change, but i am dreading publishing the Command and having to change the Revit.exe.config on our users computers.</div> <div> </div> <div>Common Autodesk this is not ideal.</div> <div> </div> <div>I am also using the new RevitAddinUtility.dll to setup the addin</div> <div>the project that includes this also has to have the above snippet in its app.config file.</div> <div> </div> Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-61133872968221902902010-08-12T08:42:00.004+12:002010-08-12T09:09:52.497+12:00iMap on Windows Phone 7 (with screenshots)I have now been able to setup the iMap map control to run on the Windows Phone 7 emulator.<br /><br />I have had to revert the code back to Silverlgiht 3 as I was getting errors due to the different versions of mscorlib between Silverlight 4 and Silverlight for Windows Phone 7.<br /><br />At this point in time iMap is kind of slow on WP7 but I am able to show 3D buildings and change the pitch of the map.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijpBTkmDe7nsFxlExnT2Q3e7lyJoT_IowTs70HvkmjE1Nksml3aQhPvXlIB2AbYNkKXkkXMBhsfBFpRskThhDy2eeaYtucGkoaF8HybGgH8hs9SXWDqPKrenOe1rYcVKaKesnXzBpNdA1o/s1600/iMap-WinPhone7-land.JPG"><img style="WIDTH: 170px; HEIGHT: 320px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5504259300166061138" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijpBTkmDe7nsFxlExnT2Q3e7lyJoT_IowTs70HvkmjE1Nksml3aQhPvXlIB2AbYNkKXkkXMBhsfBFpRskThhDy2eeaYtucGkoaF8HybGgH8hs9SXWDqPKrenOe1rYcVKaKesnXzBpNdA1o/s320/iMap-WinPhone7-land.JPG" /></a><br /><br /><br />The Bing/Local tile layers seem to stall in loading which is why the screenshots look a bit odd.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiKxW2gYwJZRG1ixmkBD1K7618LJVAb-dj4v8poEetu_o7stRl6YqfdBk3goMEHaxyXi8_i5hawT0eUhF2J8YXcsBCfyJNdXsfWQSV7Wf7PwOSFjQcqI2g1MynVrvlUtVKl4bHCkumukb_/s1600/iMap-WinPhone7-road.JPG"><img style="WIDTH: 170px; HEIGHT: 320px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5504259282206078514" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiKxW2gYwJZRG1ixmkBD1K7618LJVAb-dj4v8poEetu_o7stRl6YqfdBk3goMEHaxyXi8_i5hawT0eUhF2J8YXcsBCfyJNdXsfWQSV7Wf7PwOSFjQcqI2g1MynVrvlUtVKl4bHCkumukb_/s320/iMap-WinPhone7-road.JPG" /></a><br /><br />I assume this is because although the building models are not in the visual tree, they are still using memory.<br /><br /><br />Here is a side by side comparison of the Silverlight 4 Web aplication and the WP7 application<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh58b0DFqLQFWQ-gXaRyBynvs2Eoh_qV-gvyVoD0RYrA7jKVZ0sw7hLxyKRHZ7KPrYsksphh8YZHE350cwmNm3_rzgNF_ucDj6aXin4VcnrJ3G0ZIWTfA2oQkrK9ZQ2rSdpg0H6wNrPsxxs/s1600/iMap-WinPhone7-sl4.JPG"><img style="WIDTH: 320px; HEIGHT: 286px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5504259287374395170" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh58b0DFqLQFWQ-gXaRyBynvs2Eoh_qV-gvyVoD0RYrA7jKVZ0sw7hLxyKRHZ7KPrYsksphh8YZHE350cwmNm3_rzgNF_ucDj6aXin4VcnrJ3G0ZIWTfA2oQkrK9ZQ2rSdpg0H6wNrPsxxs/s320/iMap-WinPhone7-sl4.JPG" /></a><br /><br /><br />I have also been able to load the building floor plans on the WP7.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QWKNSDSb8Bp5UuEhLnwot5bKa0W3nnCD3z5u8JrgwtvrQy9zDopY4xGskxWc7jYg0GvvpCgBG8jDKbWjZjK8fTBX749AYlQAErIINvxRO_I_2drad38aLIO5rSlHUuQnIJDnuyjd0vD3/s1600/iMap-WinPhone7-Floorplan.JPG"><img style="WIDTH: 170px; HEIGHT: 320px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5504259306706347442" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1QWKNSDSb8Bp5UuEhLnwot5bKa0W3nnCD3z5u8JrgwtvrQy9zDopY4xGskxWc7jYg0GvvpCgBG8jDKbWjZjK8fTBX749AYlQAErIINvxRO_I_2drad38aLIO5rSlHUuQnIJDnuyjd0vD3/s320/iMap-WinPhone7-Floorplan.JPG" /></a><br />The floor plan is fully rotatable, pitch and angle, just like the web version as it is essentially the same code.<br /><br /><br />I think this is pretty cool, just need to make a few optimisations to impove perfomance but i seems that WP7 would be a viable platform for iMap handheld.<br /><br />Now I just need to get my hands on some actual hardware and we will see how it runs.<br /><br />Please if you have any thoughts or comments please leve them below.Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com2tag:blogger.com,1999:blog-5441170133232929555.post-6059844890543752532010-08-09T15:30:00.003+12:002010-08-09T15:43:46.635+12:00New Performance ImprovementsWelcome to another installment about the development of 3D onto Bing Maps <span id="SPELLING_ERROR_0" class="blsp-spelling-error">Silverlight</span> control (University of <span id="SPELLING_ERROR_1" class="blsp-spelling-error">Otago</span> - Interactive Campus Map, <a href="http://www.propserv.otago.ac.nz/iMap/"><span id="SPELLING_ERROR_2" class="blsp-spelling-error">iMap</span></a>)<br /><br />Recently the <span id="SPELLING_ERROR_3" class="blsp-spelling-corrected">performance</span> of <span id="SPELLING_ERROR_4" class="blsp-spelling-error">iMap</span> has become rather slow, which an increase in displayed elements.<br /><br />I have started to improve <span id="SPELLING_ERROR_5" class="blsp-spelling-corrected">performance</span> of loading/usability by removing objects (buildings) from the visual tree if they do not fit in the current viewable area, then adding them back in when they are within the viewable area.<br /><br />One <span id="SPELLING_ERROR_6" class="blsp-spelling-corrected">performance</span> downside of this is that the adding and removing of a large number of <span id="SPELLING_ERROR_7" class="blsp-spelling-error">UIElements</span> form the visual tree such as <span id="SPELLING_ERROR_8" class="blsp-spelling-corrected">when</span> going from viewing the whole of the Dunedin campus to viewing the <span id="SPELLING_ERROR_9" class="blsp-spelling-error">Invercargill</span> campus is slow and the application freezes and the view does not transition to the new location it just jumps.<br />There may be some background way to remove these items without the <span id="SPELLING_ERROR_10" class="blsp-spelling-corrected">performance</span> loss, which is something I will look into.<br /><br /><span id="SPELLING_ERROR_11" class="blsp-spelling-corrected">Thank you</span> for the positive comments we have received for the application and please if you have any please use the "<span id="SPELLING_ERROR_12" class="blsp-spelling-error">iMap</span> Feedback" button at the bottom left of the application to send us any feedback.<br /><br />DuncanDuncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-41652569853562165272010-01-19T20:50:00.003+13:002010-01-19T21:17:38.495+13:00Bing Maps with 3D Buildings: Some DetailHello to all whom are interested.<br /><br />I was asked if I could expalin how I setup the binding of psudo 3D (3D transofrmed to 2D) buildings to the Bing Maps Silverlight control.<br /><br />Here is a basic overview, I will do into more detail later.<br /><br />On the map I have a Canvas bound to a LocationRect which is at the Longitude/Latitude bounds of each building.<br /><br />To handle scaling I have setup handling of the LayoutUpdated event on the Canvas, passing in the Canvas as a paramater, using an EventHandler Delegate, since the LayoutUpdated event does not pass in a sender object.<br /><br />In this handler I get the Transform from the canvas to the Map control so I can transform the position of the Canavs to the position on the screen, this is where I set the Canvas.Left and Canvas.Top onf the Model Canvas to the same screen position.<br />Then I also get the ActualWidth and ActualHeight of the Canvas on the Map control and use a ScaleTransform to scale up the Models Canvas.<br /><br />Then Model Canvas is added to a Canvas that sits over the Map control (in the same clip region as the map so the models disapear is their base is not visible on the Map.<br /><br />The model canvas contains the psudo 3D object to display on it.<br /><br />In the next post I will provide more detail on how to convert 3D into 2D space, and also how to speed up transofrmation calcullations by only rendering updating visible objects.Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-41527952079843466072010-01-19T11:04:00.006+13:002010-01-19T11:18:00.239+13:00Bing Maps Silverlight with 3D Buildings<p>I have been working on how to get 3D Buildings only the Bing Maps Silverlight control.</p><p>Many people believe this to be impossible (or at least not possible for many years)</p><p>I have now worked out how this can be achieved. Have a look at the image below.</p><p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyEBgZK-e2-KJP8SKHStq1Gfhr9ZMoifNuAVPoMSceFRzp4wAIjac2eW_gYZDxf5qIiGtWfY4v7AR7UQaw5N2NYwMBL1lfVZ110ZQPdSv99pCj85SuS7PADfgdi9B5xAlOE5fEtQtdIb_8/s1600-h/BingMaps-Silverlight-3D.PNG"><img style="MARGIN: 0px 10px 10px 0px; WIDTH: 320px; HEIGHT: 235px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5428205699076919282" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyEBgZK-e2-KJP8SKHStq1Gfhr9ZMoifNuAVPoMSceFRzp4wAIjac2eW_gYZDxf5qIiGtWfY4v7AR7UQaw5N2NYwMBL1lfVZ110ZQPdSv99pCj85SuS7PADfgdi9B5xAlOE5fEtQtdIb_8/s320/BingMaps-Silverlight-3D.PNG" /></a></p><p>This is from the University of Otago iMap Campus map <a href="http://www.propserv.otago.ac.nz/iMap/">http://www.propserv.otago.ac.nz/iMap/</a></p><p></p><p></p><p>To access this view leave the "Bing Maps View" radio button selected and ckick on "Dunedin" in the menu<br /></p><p>There is also a pitch control up the top right</p><p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOY7QDZ_PksNWLD9w7KgtVxNy2s8iMYGLyArJy2yQGqRk3ISBwhhMrOZclu0Gq9GXPcHdaWRvchy9dZRdIPrqiL8NQAXpRGj08899s3gaZAS56cqZLTrx-ToRnFSBzfBUqFjqVejvPyN93/s1600-h/Pitchoff.PNG"><img style="WIDTH: 94px; HEIGHT: 87px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5428206400618571234" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOY7QDZ_PksNWLD9w7KgtVxNy2s8iMYGLyArJy2yQGqRk3ISBwhhMrOZclu0Gq9GXPcHdaWRvchy9dZRdIPrqiL8NQAXpRGj08899s3gaZAS56cqZLTrx-ToRnFSBzfBUqFjqVejvPyN93/s320/Pitchoff.PNG" /></a></p><p>When you mouse over the centre you will get up and down arrows</p><p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYthuXFB1Xdw7nf9vk7F7U1JCQY5AiolLh-oxhvwNoDmKJWXQDXBAyVv63BvCL4eNrmL-Vhr0dLzLZuJm2ioD8vbKWcM8XUczZMz78DaVa-RucyRjGseudkcfok0YJQyBQhw010H-EIHU9/s1600-h/Pitchon.PNG"><img style="WIDTH: 103px; HEIGHT: 92px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5428206670918167762" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYthuXFB1Xdw7nf9vk7F7U1JCQY5AiolLh-oxhvwNoDmKJWXQDXBAyVv63BvCL4eNrmL-Vhr0dLzLZuJm2ioD8vbKWcM8XUczZMz78DaVa-RucyRjGseudkcfok0YJQyBQhw010H-EIHU9/s320/Pitchon.PNG" /></a></p><p>Click these to adjust the pitch.</p><p>Please let me know what you think</p>Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com2tag:blogger.com,1999:blog-5441170133232929555.post-31735250854117613562009-11-23T22:11:00.003+13:002009-11-23T22:25:41.919+13:00Silverlight in General & Silverlight 4 BetaI was both surprised and impressed to see Silverlight 4 Beta released at PDC09.<br /><br />I have been highly impressed with the development speed and features of Silverlight.<br />As you will see from my other posts I have been developing with Silverlight since Silverlight 1 where we just have JavaScript as a client programming language.<br /><br />We currently run all of our web facing applications with Silverlight 3.<br />As we are serving external users we are still maintaining a "static" (as in not evolving) ASP.NET version of some of our applications such as the Web Cameras so that users don't miss out because they don't want to, or, due to IT policies, they cannot install Silverlight.<br /><br />I am impressed with users visiting from countries other than New Zealand, and major corporations, as they, in most cases, have Silverlight already installed and can enjoy the latest fully functional version of our web applications.<br /><br />There are many people whom refuse to install Silverlight purely because it is a Microsoft product, we have to respect this decision, just like people still wanting to use IE 6 :-)<br /><br />Looking at the capabilities of Silverlight 4 Beta I look forward to upgrading our applications to take advantage of the new capabilities.<br /><br />Congrats Microsoft Silverlight TeamDuncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-72807451086881816292009-01-22T22:07:00.002+13:002009-01-23T11:44:56.470+13:00iMap going LiveThe 3D campus map Silverlight website I have been working on is going live tomorrow with a story in the staff buletin.<br /><br />The website has been named "iMap" meaning interactive map.<br /><br />I have moved to writing my own 3D engine as it allowed access to all the objects I require and I can quickly and easily change the colour of models as compared to Kit 3D which can take a while to change.<br /><br />If you have the appropriate access rights the building floor plans can be viewed in full 3D you can rotate it and view the building as a full stacked building.<br /><br />If you would like to view the iMap then goto <a href="http://www.propserv.otago.ac.nz/web/iMap">http://www.propserv.otago.ac.nz/web/iMap</a><br /><br />Let me know what you think by using the iMap feedback link at the bottom left of the website.Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-88877094143726052002008-08-08T22:25:00.005+12:002009-01-23T11:42:55.744+13:00Silverlight 3D using Kit3D<span style="font-family:verdana;">I have been continuing my work on our campus plans website (Silverlight application)</span><br /><br /><span style="font-family:verdana;">For the display of the campus I have decides to move from the pseudo 3D version to an actual 3D plan.</span><br /><span style="font-family:verdana;">I have chosen Kit3D by Mark Dawson </span><a style="font-family: verdana;" href="http://www.markdawson.org/Kit3D">http://www.markdawson.org/Kit3D</a><br /><br /><span style="font-family:verdana;">Here is the current result</span>:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEXeSBpzcFTYHAAo3Lbw8YlVl9dgrx1KBeQwk-jQYFZNrSduLKEn3yZibyQURr67TVLOWVx2TXm0O7ayClwcHVcWd9QzcFT4yTuMYRGIVk3GbRg4jxk6S02XzRvZLkZIrtN0P_Ds_tTcH8/s1600-h/CampusIn3D.png"><img style="margin: 0pt 10px 10px 0pt; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEXeSBpzcFTYHAAo3Lbw8YlVl9dgrx1KBeQwk-jQYFZNrSduLKEn3yZibyQURr67TVLOWVx2TXm0O7ayClwcHVcWd9QzcFT4yTuMYRGIVk3GbRg4jxk6S02XzRvZLkZIrtN0P_Ds_tTcH8/s320/CampusIn3D.png" alt="" id="BLOGGER_PHOTO_ID_5232095007035967106" border="0" /></a><br />I have keys setup to navigate the 3D model, e.g. left arrow to rotate left<br /><br />One issue this I am facing with Kit3D is that when I move the camera in closer to the "ground" some triangles/faces appear in front of the camera so you cannot see the models that should be in front of you.<br /><br />An advantage of having the campus in 3d is the future ability to send the camera through the campus, between the buildings, to perhaps show how to get from one building to another, or just to show a virtual tour of the campus.<br /><br />There are plenty of possibilities which is very exciting, and I'm really enjoying the task.Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-80286559689997798192008-06-13T21:34:00.001+12:002008-07-18T23:39:56.678+12:00Silverlight 2 Beta 2 ExperiencesI have been working on converting the website I mentioned with regard to Silverlight 1.0 over to Silverlight 2 Beta 2.<br /><br />This task took some time as I had to convert Javacript to VB.net.<br /><br />Another difficult element was getting webservies to work, and then get them to work once published and ensure that it is all still working.<br /><br />I have also now got zooming on the center of the view working correctly, by scaling on the thumbnail and projecting the view to the main view.<br /><br />I am using animations to make any movement smooth and see where you are moving from/to, such as you can click on the thumbnail and the view will move to be centered on the point you clicked, the main veiw and thumbnail move at the same relaitve rate, I think this looks quite cool.<br /><br />After seeing Nigel Parker's Unplugged Mix recap in Dunedin a few weeks ago I became quite interested in where silverlight was going and made this move to upgrade the website.<br /><br />One thing that i have found great with Silverlight 2 is the incusion of textboxes and buttons, this has meant that I nolonger need to overlay HTML controls. I had to create my own menu control wich was actually quite easy, just using nested canvas.<br /><br />I have also been creating "Dialog boxes" borders with controls in them in the center of the Silverlight plugin with a background that covers everything but is not fully opaque which looks quite snazzy, this is similar to Scott Guthrie's Digg example of the item view.<br /><br />Another cool animation part is the ability to search for a building or department and have the view center on the building or center of the buildings that the department are in then zoom in or out so the bounds fill the view as best as possible.<br /><br />I am also setting up user management to control what particular users/computer can see if they are viewing as public ore are logged in.<br /><br />Overall i am quite impressed with Silverlight 2 Beta 2, and look foward to the final release later this year which should coinside with the final relase of the website, we are looking at getting public access running in the next few weeks for receiving feedback on what people would like to see and do with the website.Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-90753984187601391192007-11-18T13:44:00.000+13:002007-11-18T13:45:34.682+13:00ADSL Speed Test Result<a href="http://www.speedtest.net"><img src="http://www.speedtest.net/result/203289464.png"></a>Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-86521581763844244482007-10-22T22:17:00.001+13:002007-10-22T22:17:13.085+13:00Silverlight 1.0 experiences<p>I have been spending the last week working on converting a web application from an image based web application to a Silverlight 1.0 application.</p> <p>The application is a campus map web app which you can zoom, pan, select regions, show/hide layers, and source information.</p> <p>With the exiting application, to maintain high quality plans when the plan was zoomed, a region selected/deselected or layer shown/hidden a new image would be loaded. This can end up with quite a large amount of data transferred fro basic use of the application.</p> <p>With the use of Silverlight 1.0 I am able to download the geometry of the plans once, then use JavaScript to highlight regions when selected, and show/hide layers, and zoom (using scale transform) without the need to download any more data. For a particular plan once it it downloaded the only transfer you need to do is any data you want to retrieve in relation the plan or region selected. This can be achieved with web services.</p> <p>One issue I have been having is trying to zoom in on the center of the currently viewable area, then still being able to pan. You can easily zoom the center with the zoom transform, use the ScaleX and ScaleY set to the scale, and CenterX and CenterY set to the center of the view area. If anyone has any ideas on how to compete this effectively, I would like to hear from you. </p> <p>Another feature which is lacking in Silverlight 1.0 is integrated textbox, the easiest way to add a textbox to your Silverlight 1.0 is to overlay HTML. This is achieved by floating a div over the Silverlight control and setting the Silverlight control to not window contained (as I recall from memory).</p> <p>Overall Silverlight 1.0 has been an interesting platform to develop with. Woks great with both IE7 and Firefox 2 on Vista Ultimate, but Silverlight does not appear to work with Opera at this time, don't know if support will be added or not.</p> Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0tag:blogger.com,1999:blog-5441170133232929555.post-82464311052829063432007-08-05T22:34:00.000+12:002007-08-05T22:36:20.804+12:00Welcome<span style="font-family:arial;">Welcome to my new blog. </span>Duncan McGregorhttp://www.blogger.com/profile/02696169578124209500noreply@blogger.com0