Posts: 3,077
Joined: Jun 2009
Lol your house looks like Ali Baba's Cave for any computer addict :p.
Edit : And i forgot : Illustrated WPF by Daniel M. Solis very good book to start WPF
i hoped i read it before V1 :p
Posts: 3,077
Joined: Jun 2009
In current XBMC HTTP api there is only 2 playlist 0 and 1
For play album i currently use :
Quote: _parent.Request("ClearPlayList(0)");
_parent.Request("AddToPlayListFromDB(songs;idAlbum=" + albumId + ")");
_parent.Request("SetCurrentPlaylist(0)");
_parent.Request("PlayNext");
You should start to look at Json RPC that will replace Http API soon
http://forum.xbmc.org/showthread.php?tid=68263
Posts: 102
Joined: May 2004
Reputation:
0
Typical!
I've been playing with WPF today at work a little bit - got quite a way - had spinning forms etc... all working fine.
Got home, installed a VM with Windows XP SP3 in it, got VS on there - go to download the .Net Framework SP1 (as VS keeps crashing when trying to open a xaml file) and it looks like the microsoft site is down.
I will get this up and running and help soon, I promise!
Posts: 3,077
Joined: Jun 2009
Lol you have time
Read the book i tell before
and look at databinding the most power of WPF
I got to implement all i learn recently into my pre alpha V2
And then i'll be glad to have help since a clean basis
Posts: 102
Joined: May 2004
Reputation:
0
Excellent - thank you.
I'm getting on with it quite well to be honest - a few hiccups as when programming C# I'm used to Windows Forms, so a few things have taken me by suprise, but all in all, I'm coming on quite well.
Posts: 3,077
Joined: Jun 2009
Yes you can do like Winform with WPF
But all the power stay hidden until looking a little more
Things like :
Quote: <Image Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="UniformToFill" SnapsToDevicePixels="True">
<Image.Source>
<MultiBinding Converter="{x:Static FluidKitTests:CacheImageConverter.Instance}" ConverterParameter="Video\Thumbs">
<Binding Path="Thumb" />
<Binding Path="Api" Source="{StaticResource GlobalData}"/>
</MultiBinding>
</Image.Source>
</Image>
Applied to datatemplate inside itempaneltemplate just render this WPF thing marvellous
Posts: 102
Joined: May 2004
Reputation:
0
Yeah, I'm *really* starting to remember why I ditched Windows.
Firstly VS would crash every time I tried to view an xaml file - eventually found a site where a bloke had a fix - M$'s site was unavailable - plenty of links to a fix, and I managed to make one work - sadly I needed some M$ downloading tool, and the site was down so couldn't get it.
Now, I enabled 3d accelleration on my Win7 box, and suddenly it thinks it's not registered. I click the link to register it....and I get a 404.
So...back to XP. I finally get the project to compile - although it compiled fine at work and is the exact same copy, and now no graphics are showing.
Give me Linux any day - I know where I stand and things generally do as they are told ;-)
Life is simply too short to use Windows.
Posts: 3,077
Joined: Jun 2009
Well your computer is allergic to windows perhaps :p
You should not have put linux on it :p:p:p
But it's strange, for this project i create a XP SP3 VM from scratch, full windows update (install .Net from windows update) , install VS 2008 , dev and everything works like a charm.
Posts: 3,077
Joined: Jun 2009
Did you finally found the problem on your machine about the WPF problem ?