dev in the making

game development, maya and code by brainzizi

Posts Tagged ‘wsc

Update on and some drawbacks again

leave a comment »

A couple of update’s:

If you’re interested in our little Silverlight project called, you can check out the latest build at Beware, it’s Croatian.

Second stage Web Startup Contest deadlines were 3.5.2009, and we had to post links to working prototypes, a “features” document and our source code.
If anyone’s interested the above-mentioned are:

A little babbling about the code now… It’s not exactly a role model for OOP design, some of it was seriously hacked using reflection, mostly because my lack of Silverlight experience and understanding. But hey, it’s a contest geared towards education and this is what I’m doing… Educating myself. I’m gonna list and comment a couple of serious party breakers I encountered:

If you thought you could use the browsers back and forward buttons for navigation, you weren’t thinking hard enough. I know I wasn’t.
You have two options. a) hook it up using javascript to the browsers functions and b) develop your own history system. I used the latter and that’s when I had to use reflection due to a seriously lacking model I made. The point: Don’t code empty-minded. Have a VERY GOOD plan. Or you shall regret it.

Setting up the web service
I’ve spent two days figuring out that dreaded web.config and bindings. The point: Customer support should be high up when considering a server.

Asynchronous web service calls
You make a couple of async calls to the web service, hooking events on their completion. You also hook a special method on the last one that you called, which fires an event telling I’m done fetching data. Eeeek! Wrong. Things don’t necessary end in the order you called them. You have to queue them on the completed event of the previously completed call. And that’s quite a lot of lambda expressions or use of reflection even. The point: More isn’t always better. The simplicity of PHP has it’s charms too.


Written by brainzizizi

05.10.2009 at 13:49

The drawbacks of Silverlight

leave a comment »

A lot of people think that Silverlight is the Microsoft Flash, but that’s very far from the truth. Flash was made for creating animations with vector graphics. Silverlight was made for designing user interfaces. That’s why you got a bunch of controls like textbox, etc…  instead of kewl stuff for drawing vectors. But Silverlight and Flash do have some things in common; both are client side, both can be used to make Rich Internet Applications and both are having problems with the right click. I don’t think there is even a way in Flash to bind some action to the right mouse button. In Silverlight things are a little better (but still horible). Thank god half of Silverlight was hacked in JavaScript – and I hate JS, this is where things like that serve a purpose. Hack it with JS right back. I’m not going to reblog how to do that (

One other thing… Regarding the multi-page functionality, one major drawback when you have just one browser page and a lot of Silverlight pages (UserControls or whatever you want to call them), is that you cannot use the browser back and forward functionality. They should add a control like that to Blend 3.

And the last major drawback is working with links and html in Silverlight. There is no RichTextBox control in Silverlight. There are a couple of user made ones, but the problem with all of those is they use Run and LineBreak objects to construct a RichTextBox. And Run objects don’t allow OnMouse events. So what I wanted to do (and can’t) is this. A text with underlined words representing links, mini popups when you hover your mouse over the links, and redirect when you click the link. If anyone knows about a neat way to hack this, please let me know.

Written by brainzizizi

03.31.2009 at 04:47

Posted in silverlight

Tagged with , , , and Web Startup Contest

leave a comment »

I’ll be posting stuff here about the Microsoft sponsored Web Start Contest here in Croatia, and our competing social networking student project called (meaning “Where are you” in croatian).

It’s features:

  • done in Silverlight
  • combining Facebook functionality and Twitter simplicty
  • aimed at the local market
  • clean, sleek design
  • readabilty

Index page concept: index page concept

Written by brainzizizi

03.30.2009 at 04:15

Posted in silverlight

Tagged with , ,