Silverlight Feeds - All your Silverlight feeds in one place.

Sponsors

Feed: Hannes Preishuber

Site: http://weblogs.asp.net/hpreishuber/default.aspx Link: http://weblogs.asp.net/hpreishuber/rss.aspx

Thursday, July 30, 2009

Silverlight Twitter Client with authentication

by preishuber via Hannes Preishuber on 7/30/2009 1:00:14 PM

Its not easy to access a cross domain RSS feed. But it is nearly impossible to do same with authentication. HTTP Client stack and HTTP browser stack in Silverlight 3 and beyond does not support authentication. All tricks with manipulating HTTP header throw some not implemented exception. For my workaround I use a browser bridge built with Jscript. First i created a twitter account and closed the RSS feed to “followers”. Which have the effect that when accessing the RSS with browser Login Dialo ...

[ read more ]

Saturday, July 18, 2009

Silverlight 3 Visual Studio 2008 Designer Preview

by preishuber via Hannes Preishuber on 7/18/2009 4:29:42 PM

Documentation says that Design Preview in Silverlight 3 Tools for Visual Studio 2008 is away. The preview with Silverlight 2 was only read only and sucks. OK is bad but no preview is even worse. When you right click a XAML file there is still context menu “view Designer”. So why? Cause designer is still here- but hidden! move mouse to bottom of XAML editor. No mousecoursor is a double arrow which can be drag by mouse down to upper direction. Now click relaod and ready. After closin ...

[ read more ]

Saturday, July 11, 2009

Silverlight 3 Beta to RTW changes

by preishuber via Hannes Preishuber on 7/11/2009 8:31:00 AM

It is very important that your applications are ready for Silverlight 3. If you have developed with the Beta bits you have to do a lot of changes to get ready for RTW. There exists a document changes.docx which I can not find at the moment. For that reason I decided to make a copy public on my private server. If you run a Silverlight 2 application no action is necessary. The SL3 plugin can host SL2 applications. So there are no breaking changes between 2 and 3! There are a set of bugs fixed in ...

[ read more ]

Friday, January 02, 2009

Silverlight 2.0 Compression Rate

by preishuber via Hannes Preishuber on 1/2/2009 2:11:00 PM

After a short discussion in silverlight forums with a guy who have only 19kb line, I checked out compression for XAP files. A XAP is a zipped package of DLL’s and resources. With winrar installed you can open by context menu from Visual Studio Explorer the xap (clientbin). It contains files like The size of the package in this case is 750 KB. I unzipped the content and compressed it with Winrar again and- surprise- surprise, package size is now 547 KB. A reduction more than 35%. Only rename th ...

[ read more ]

Saturday, November 29, 2008

B# and Silverlight Isolated Storage

by preishuber via Hannes Preishuber on 11/29/2008 9:02:54 AM

I am a VB developer. As most of expert coder are using C# I must step forward. B# is the language which can be written by VB guys and make it readable for C# gurus. Today's topic is the data store of Silverlight on client side- isolated storage. Isolated Storage is a concept from .NET. It allows to store information on a per application base, like cookies. Major differences are much more space and more security. There exists several ways to store data. First option is like ASP.NET appsettings. ...

[ read more ]

Sunday, November 23, 2008

Input Validation with Silverlight

by preishuber via Hannes Preishuber on 11/23/2008 10:23:00 AM

I miss ASP.NET. With the 2.0 Microsoft had the world best technology for creating applications of all kind. Small or large, ASP.NET 2.0 have features for all. Now several years later we have Silverlight 2 (no 2.0) and should be good as ASP.NET 2.0!? I don't think so- Silverlight have some great advantages but even more missing features. And some of them essential and important. For me user input validation is one of them. To get the right data from user in correct format is a huge challenge and ...

[ read more ]

Tuesday, November 18, 2008

Rownumber in Silverlight Datagrid or Listbox

by preishuber via Hannes Preishuber on 11/18/2008 7:42:20 PM

My next sample uses a converter to show a line number within a datalist. I am not really satisfied with the solution, perhaps I will find in future a better way. But the concept is quite interesting and it works. First we need a TextBlock to display the row number. The content is controlled by databinding. Unique data (here [daten]) is needed as parameter for later converting.  <ListBox x:Name="lstFields" SelectionChanged="lstFields_SelectionChanged" Height=&q ...

[ read more ]

Saturday, November 15, 2008

get ID inside a Silverlight Datagrid when Button clicked

by preishuber via Hannes Preishuber on 11/15/2008 10:22:07 AM

This blog pots describes a datagrid and a encapsulated custom button for each row. I want to show two methods how to get information about the underlaying data of the row. I use a ado.net data service and a entity datamodel, which is not part of the article, to get the data. Database is good old northwind and table is customer. When use clicks on button messagebox comes up with some information about the row. First the xaml code <Grid x:Name="LayoutRoot" Background="White ...

[ read more ]

Friday, November 07, 2008

Silverlight Multiselect Listbox

by preishuber via Hannes Preishuber on 11/7/2008 2:44:33 PM

The Listbox control of Silverlight 2 have no multi selection. Datagrid have! I want to show how to build a Listbox with Checkboxes and iterate at the end through all items an see if they are checked. Seams to be easy!? But isn't.  You can not access the content of the datatemplate. One solution is to use visualtreehelper to iterate through all controls of controltree. That is quite complkicated cause e.g a checkbox is a composition of Textblock and Rectangle. I show the databinding way wh ...

[ read more ]

Tuesday, October 14, 2008

Silverlight and ADO.NET Dataservices RTW changes

by preishuber via Hannes Preishuber on 10/14/2008 9:13:38 PM

Till the days of Silverlight RC0 (so yesterday ;-)) we had to generate the proxy class for ado.net dataservice service by hand like: dataSvcUtil.exe /out:dsProxy.vb /language:VB /uri:http://localhost:64184/eventsDataService1.svc/ .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { ...

[ read more ]

Monday, October 13, 2008

ADO.NET Dataservices: Fancy Error Part II

by preishuber via Hannes Preishuber on 10/13/2008 9:13:55 AM

Today my first Silverlight 2 application goes live. It is a customer feedback app for the ADC 08 conference. After successfully installed and tested a few hours everything went well. But then data was not show. on direct call of ado.net dataservice vcs in browser following error comes up Die Datei oder Assembly App_Web_znszzsfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden The rest of ...

[ read more ]

Friday, October 10, 2008

ADO.NET Dataservices:This collection already contains an address with scheme http

by preishuber via Hannes Preishuber on 10/10/2008 5:52:44 PM

I have deployed a Silverlight 2 application which uses ADO.NET Dataservices to a IIS 6. Problem #1: you see nothing in Browser register MIME Type in IIS and restart IIS Problem #2: no data is sown in Silverlight In my case it was a 2nd hostheader entry in the Web site. Remove the 2nd hostheader, restart the service and call the ADO.NET Dataservice (svc) directly in Browser ...

[ read more ]

Friday, September 05, 2008

I Love VB: Silverlight UI Creation with XML Literals

by preishuber via Hannes Preishuber on 9/5/2008 6:25:17 AM

My actual problem is to develop a image (object) carousel. There are a lot of details to take care about. One of them is to create images dynamically with a great UI like border or shadow. First I startet up to write code like: Dim brd As New Border brd.Height = 130 'Bildhöhe+ 30 für text brd.Background = New SolidColorBrush(Colors.LightGray) brd.CornerRadius = New CornerRadius(3) brd.BorderThickness = New Thickness(3) Dim grdcoll As New GradientStopCollection() Dim grdstop As New Gradie ...

[ read more ]

Sunday, August 24, 2008

Silverlight 2.0 plugin ID or not ID

by preishuber via Hannes Preishuber on 8/24/2008 6:05:26 AM

My original problem was a call from HTMl via Jscript to the internals of a Silverlight plugin. My code fails I had huge problems to find the issue cause debugging doesn’t help and jScript doesnt support intellisense i a complete matter. My checklist 1) Silverlight 1.0 uses a findname construct, Silverlight 2.0 the xaml class must expose a <Scriptable> member and it must be registered with RegisterScriptObject HtmlPage.RegisterScriptableObject( "hannespre", Me) 2) The Call ...

[ read more ]

Monday, August 11, 2008

Bind with Expression Blend: cannot create Instance Exception

by preishuber via Hannes Preishuber on 8/11/2008 5:40:29 AM

Databinding with XAML is a lot of work. There is no drag drop table wizard, don’t search for it. Expression Blend (2.5) have a little bit more automatic support for binding Objects. When Blend is in Design View there is under Project tab a Data tab. Step1: open + CLR Object option- then you get a error message “loading assembly” which can be ignored (what else?) In the next dialog the class have to be selected which returns the data. In my case I got 100 times an error in Blend. The excep ...

[ read more ]

Thursday, July 31, 2008

set as start page: Silverlight XAML

by preishuber via Hannes Preishuber on 7/31/2008 8:54:17 AM

I really miss the option “set as start page” in Visual Studio Explorer for Silverlight Projects. If I have time in the next days (;-))Ii will write visual studio extension for that purpose. In fact it is not complicated. The app.xaml have a codebehind file ( app.xaml.vb or app.xaml.cs) which create a instance of the visible XAML. Btw that is the reason for changing xaml to usercontrol in B2. All you have to to, to change the start page is to change one line of code in startup. Instead of page ...

[ read more ]

Tuesday, July 29, 2008

fast and furios Silverlight Databinding with Gridview and embedded XML Data Resources

by preishuber via Hannes Preishuber on 7/29/2008 6:32:00 PM

  I am currently writing a Silverlight 2.0 course. I always try to focus on the problem and reduce the code overhead. For my Module “Databinding with Silverlight 2.0” I try to include the data as raw xml. For that purpose I include a northwind.xml file as data source into the project to focus on datagrid details. The most important part is, to set the build action to content, which ends up in including the xml file into the xap package.   Then you can load the xml directly by xdocumen ...

[ read more ]

Thursday, July 17, 2008

reverse engineering of Silverlight XAP files

by preishuber via Hannes Preishuber on 7/17/2008 5:50:00 PM

  In my last post Michael Schwarz noticed  that search engine spiders can theoretically  index xap files. Silverlight 2.0 creates a xap file where dll’s, images, videos and xml are included. First step is to search in web for files with xap extension and download it. Then uncompress it with unzip algorithm ( eg rename to zip). You will find a dll with the logic inside and several dll’s with librarys and a manifest file. The you ca use (good old) reflector to disassemble the dl ...

[ read more ]

Monday, June 23, 2008

What I miss in Silverlight 2.0

by preishuber via Hannes Preishuber on 6/23/2008 7:13:13 PM

No, I do not miss a particular control or class. I am thinking about principle design issues. Search Engines The extension for Silverlight applications is xap.  The content is kind of binary. At the end of the line, no content for search engine spider. Proposed solution: add metacontent, like the original XAML file. Librarys Some of the new controls are not included native in Silverlight base installation. Datagrid or Tabcontrol are in separate dll’s (e.g. System.Windows.Controls.Ext ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us