Profilo di AakashAakash's spaceFotoBlogElenchiAltro Strumenti Guida

Blog


15 settembre

ACM Competition

It was ACM Competition today at AUT for South-Pacific Region. (www.acm.org)

ACM is Algorithm competition sponsored by IBM. They give hard problems to solve and we have to solve as many as we can in 5 hours.

University of Auckland have done really good job in past and today they did very well too..

We just had good fun and some good experience. I wouldn't post our results - not worth it... But next year we will have a good go.

Unfortunately my team members might not be around next year as they will be graduating, but let's see.

I have uploaded all the photos I had, so enjoy!

Aakash :)

14 settembre

UserControl in WPF application

After couple of late-nights with reading blogs, msdn pages & trying different stuff in my new Visual Studio 2008 (Orcas) beta 2, I finally figured out how CUSTOM UserControls can be used in a wpf application.. :)

As, I showed in my Game-development presentation, use of User-control in .NET 2.0 with Windows Forms is really simple- when you build your project, you can see an icon for the customized user-control in your toolbar. Then you can drag-and-drop in your windows form. It is really simple and easy to use.

Well, it's not the same story with WPF applications.. But after a lot of struggling, I found that it is pretty simple to add control in wpf as well. Even though you can't do it by drag-and-drop, you should have no problem to write simple XAML code to do it.

This is what you do:

In your "Window" xaml code, you need to add reference to the namespace & possibly reference to assembly (if you are using an additional one) for your custom control. To add reference, you need to add a code like this:

<Window x:Class="MyNamespace.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cust="clr-namespace:MyNamespace [;assembly=YourAssemblyName]"<- CODE TO ADD!
    Title="Window1" Height="328" Width="529">
    <Grid>
        <cust:MyUserControl />
    </Grid>
</Window>

Just after adding this one line, your are SWEET AS! ;)

08 settembre

Atithi Devo Bhavah

Trip to Hamilton
 
"Atithi Devo Bhavah" is an ancient saying in Indian culture, according to which, a guest is treated with the best of host's ability.
I am very happy to say that Vishal - my friend, at whose house I stayed during my Hamilton trip, 100% fulfilled it.
 
It was just awesome experience staying here at Vishal's house in Hamilton - I got more than everything I needed. Everyone in the house gave me love and great respect.
We also visited National Park where we saw lots of snow, beautiful Taupo Lake and crystal clear Huka fall.
 
I hope you guys will enjoy a few photos I have uploaded.
 
Aakash