Re: Is it time to open source Silverlight?

2013-11-22 Thread Miguel Madero
I think we need the chicken before the egg. Meaning, who will maintain it,
is there a group that is willing to take over? An unmaintained OS project
is just as bad as an unmaintained closed one.

I think it's doable, but IMO, to make it stronger a request to Open Source
it should be be accompanied from a proposal with a plan and people backing
it up instead of ideas of what could be done.

PS. It's nice to see some activity on this list.

Miguel


On Fri, Nov 22, 2013 at 4:08 AM, Jordan Knight jak...@gmail.com wrote:

  Who owns SL at the moment? Who would make this call?

 When WP goes WinRT there is no commercial reason not to...
  --
 From: Scott Barnes scott.bar...@gmail.com
 Sent: 22/11/2013 9:59 PM
 To: ozSilverlight ozsilverlight@ozsilverlight.com
 Cc: ozDotNet ozdot...@ozdotnet.com
 Subject: Re: Is it time to open source Silverlight?

  I'll manage it if it does i have references...

 ---
 Regards,
 Scott Barnes
 http://www.riagenic.com


 On Fri, Nov 22, 2013 at 5:25 PM, David Burela david.bur...@gmail.comwrote:


 http://davidburela.wordpress.com/2013/11/22/is-it-time-to-open-source-silverlight/

 While I was at the MVP summit I started asking around about if it was
 time to open source Silverlight. My thoughts were if the technology is now
 considered done by Microsoft, then there are few reasons why it couldn't
 be released to the community to see what they can do with it.
 It was a solid technology (which isn't suitable in the modern world of
 the public web), but still has a nice niche on desktop.
 It could be interesting to see how the community extends it, and perhaps
 even put onto other platforms (like moonlight did).

 A basic game engine could be an interesting direction, or using it to
 embed within desktop applications.
 The point is, rather than let it rot internally at Microsoft, why not let
 the community go wild with it before it gets any more stale.


 http://davidburela.wordpress.com/2013/11/22/is-it-time-to-open-source-silverlight/
 -David Burela

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: In praise of slsvcutil.exe

2012-03-29 Thread Miguel Madero
Hi Greg,

As an alternative to 'Add Service Reference' and even 'slsvcutil/svcutil'
you could use AutoServiceProxy, just by sharing DataContracts and
ServiceContracts you don't really need the proxy. Have a look at the
project in bitbucket.

https://bitbucket.org/mamadero/sltoolsdemo



Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com


On Thu, Mar 29, 2012 at 6:02 PM, Greg Keogh g...@mira.net wrote:

 Folks,

 ** **

 Thanks to a hint by Brendan in the Silverlight forum I was led to find
 this utility (on my machine):

 ** **

 %ProgramFiles(x86)%\Microsoft 
 SDKs\Silverlight\v4.0\Tools\slsvcutilhttp://msdn.microsoft.com/en-us/library/cc197958(v=vs.95).aspx
 .exe

 ** **

 Thank heavens for this, as it means I can now generate the service
 reference code for a Silverlight project the same way I have been using
 svcutil for normal projects. I haven’t used the “Add Service Reference” in
 normal projects for years because the code generated by svcutil is easier
 to control and far less cluttered. I highly recommend that people gen the
 code this way instead of using “add reference”.

 ** **

 I was wondering what the equivalent was for SL projects and what the build
 process what doing internally. Ages ago I used some monitoring tools and
 various tricks to find what was happening internally but was defeated and
 gave up. I’m not sure if slsvcutil existed then, but it does now. I also
 fell for the bug described 
 herehttp://blogs.msdn.com/b/silverlightws/archive/2010/04/30/workaround-for-stackoverflowexception-when-using-slsvcutil-exe.aspxand
  had to use the workaround to get slsvcutil working.
 

 ** **

 I hope this tool helps others avoid the shocking problems I had this
 morning with a “corrupt” service reference.

 ** **

 Greg

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Build

2011-09-22 Thread Miguel Madero
Wasn't it last year that we started this discussion? :)



Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com


On Thu, Sep 22, 2011 at 12:24 PM, jason schluter
write_2_ja...@hotmail.comwrote:

 Here here.

 Just when Sydney sddn was looking for a new name too.

 -Jason schluter
 
 From: Scott Barnes
 Sent: Thursday, 22 September 2011 11:36 AM
 To: ozSilverlight
 Subject: Re: Build

 WinUXG.

 In reality your windows focued only now and given XAML / HTML5 + WinRT
 etc... will cross-polynate why limit yourselves to just XAML? I saw this
 with the Flash vs Flex community, in the end its the Flash Runtime why
 segeregate ... its technology racism RACISM! :)

 h
 ---
 Regards,
 Scott Barnes
 http://www.riagenic.com


 On Thu, Sep 22, 2011 at 11:33 AM, Stephen Price step...@littlevoices.com
 wrote:

  +1 for XDDN.More than happy to widen the focus from Silverlight to all
  things XAML.
 
  On Thu, Sep 22, 2011 at 9:02 AM, carl.scarl...@bankwest.com.au wrote:
 
  +1 for XDDN.  +1 for more focus on design.
 
  ** **
 
  Carl.
 
  ** **
 
  *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
  ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *David Burela 
  david.bur...@gmail.com
  *Sent:* Thursday, 22 September 2011 8:53 AM
  *To:* ozSilverlight ozsilverlight@ozsilverlight.com
  *Subject:* Re: Build
 
  ** **
 
  Earlier this year I sent out a newsletter, saying that I'd made the
  decision to change the Melbourne SDDN group to be a XAML usergroup, to
 cover
  Silverlight + Windows phone (+ WPF).
 
  For me there was enough crossover to stop it being an exclusively
  Silverlight usergroup.
 
  ** **
 
  My plans for the rest of the year were to have a lot more generic design
  sessions, such as more examples of a design workflow, the creative
 process,
  etc. I figured t here should be more DESIGN focus since it is in the
  usergroup's name (SDDN).
 
  Now with build, I'll definitely having WinRT XAML sessions (in fact,
  that's what this month's Melbourne talk is on).
 
  ** **
 
  ** **
 
  For me, the SDDN has evolved into being a usergroup focused on cutting
  edge Microsoft UI frameworks, and the design philosophies behind UI/UX.
 I
  guess the only issue is the name. 
 
  I had kept the SDDN name only for the brand recognition.
 
  *My suggestion?* We rebrand SDDN to XDDN. Which could mean XAML Design
 
  Developer Network or with the X meaning anything if you want to include
  HTML5 (like the XMUG run by thoughtworks).
 
  -David Burela
 
  ** **
 
  On 21 September 2011 19:12, Stephen Price step...@littlevoices.com
  wrote:
 
  Hey all,
 
  ** **
 
  So most people have probably absorbed the stuff shown at BUILD and so I
  thought I'd kick off a new thread and see what people think. (I'm yet to
  spend any time watching videos but have read a few blog posts about
 it)**
  **
 
  ** **
 
  A couple of things spring to mind. Silverlight will soon be (if not
  already) legacy code. I liked the quote I saw somewhere The rumours of
 my
  death have been greatly exaggerated. - Silverlight
 
  ** **
 
  Being a developer/designer/devigner, I think its great that XAML will be
  available for C++, HTML5 and .Net. I'm wondering if it's time to
  rebadge/rename/reinvent the SDDN user group. I'm thinking XUG would be a
  good name. (Or perhaps XUGXUG, said in the voice of a peon from warcraft
 3 -
  pronounced Zug-zug).
 
  ** **
 
  thoughts? 
 
  ** **
 
  Go.
 
   
 
 
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
  ** **
 
 
  __
  This email has been scanned by the MessageLabs Email Security System.
  For more information please visit http://www.messagelabs.com/email
  __
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 
 ___
 
 
  This email has been scanned by the Bankwest Email Security System.
 
 ___
  
 
  **
 
 
 ___
  Unencrypted electronic mail is not secure and may not be authentic.
  If you have any doubts as to the contents please telephone to confirm.
 
  This electronic transmission including any attachments is intended only
  for those to whom it is addressed. It may contain copyright material or
  information that is confidential, privileged or exempt from disclosure
 by
  law.
  Any claim to privilege is not waived or lost by reason 

Re: Silverlight tip: server side RIA services custom validation

2011-06-15 Thread Miguel Madero
Hi David,

Just curious about what was wrong of just putting this validation on your
DomainService class instead of in the entity if you needed access to the
DB.
Also, just another idea, if you really want code run only server side and
you have it on a .shared file you can use #if !SILVERLIGHT to have run only
server side.


Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com


On Fri, Jun 3, 2011 at 4:36 PM, David Burela david.bur...@gmail.com wrote:

 Thought I'd post this tip on custom server side validation in case anyone
 finds it useful.

 In a current Silverlight application we had the scenario where we needed to
 validate a data form. When the user entered some data, we needed to run some
 custom validation code against the database to ensure that it was valid.
 Unfortunately standard custom validators that you put into a .shared.cs
 file will not work. As any database logic that you wrote, while working on
 the domain service side, would not be able to compile on the Silverlight
 side.

 After a LOT of research, my team came across this blog post by Nikhil
 Kothari (@nikhilk) that describes how you can write custom validation code
 that is ONLY executed server side. This allows you to write code that access
 databases, etc. that cannot be executed client side.
 Nikhil also then goes into more details on how you can get client side UI
 notifications, by adding Asynchronous Validation to the UI.

 Here is the link to Nikhil’s blog post
 http://www.nikhilk.net/RIA-Services-Validation.aspx
 -David Burela


 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: More build trauma

2011-04-21 Thread Miguel Madero
This is what worked for me (copied from a different thread).


Ok, this was the fix:



   Just set the configuration of the build definition and set
the MSBuild Patform parameter to X86 (it was Auto before). I think it
forces the execution of the x86 version of MSBuild.exe (not confirmed) and
therefore the same effect is achieved (than running the build in an x86
machine).



[image: a.jpg]


So just changing the MSBuild Platform did the trick.


I also raised this issue on
connecthttps://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523367,
but Microsoft closed it saying that we should just change the configuration
manually.





Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com


On Thu, Apr 21, 2011 at 6:42 PM, Stephen Price step...@littlevoices.comwrote:

 Hey all,

 Ok, I'm on to the next hurdle I think... I've copied some of the
 missing folders from msbuild folder onto the build/tfs server, and
 installed Silverlight SDK and Toolkit. Its fixed a bunch of issues
 with Silverlight files not being found.
 I'm still having issues with RIA services generated code not being
 built. I'm not sure if its related to the build order or not. Building
 the projects from commandline with msbuild gives the same errors but
 it works fine on my dev machine.

 xxx.cs(16,22): error CS1061: 'xxx' does not contain a definition for
 'RaisePropertyChanged' and no extension method 'RaisePropertyChanged'
 accepting a first argument of type 'xxx' could be found (are you
 missing a using directive or an assembly reference?)

 I tried adding that two of the projects manually to the build
 definition, having them build before the solution. That gave me the
 warning:
 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets
 (484): The OutputPath property is not set for project 'xxx.csproj'.
 Please check to make sure that you have specified a valid combination
 of Configuration and Platform for this project.  Configuration='Debug'
  Platform='Any CPU'.  You may be seeing this message because you are
 trying to build a project without a solution file, and have specified
 a non-default Configuration or Platform that doesn't exist for this
 project.

 so I changed it to build it as x86 and those two projects built, but
 the main solution skipped all of the projects in it.

 I'm wondering if I'm supposed to created a solution file that builds
 everything as x86 for it to work on TFS or is there something else I
 can do to get this stubborn mule building? Anyone actually done this
 before? I'm not really asking for much. I just want TFS to build my
 Silverlight app. :(

 frustrating!
 cheers,
 Stephen
 p.s. Have a great easter break :)
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

a.jpg___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Quick Reminder. Perth SDDN is tonight

2011-02-22 Thread Miguel Madero
Quick Reminder. Perth SDDN is tonight

More info here http://www.meetup.com/Perth-SDDN/events/16115992/

Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Control thumbnails

2010-12-06 Thread Miguel Madero
+1 hehehe

On Mon, Dec 6, 2010 at 10:43 PM, Shane Morris (Automatic Studio) 
sh...@automaticstudio.com.au wrote:

 Hey, one more crack like that about Blend and I'll withdraw all
 suggestions!

 :-)

 -Original Message-
 From: ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh
 Sent: Monday, 6 December 2010 10:32 PM
 To: 'ozSilverlight'
 Subject: RE: Control thumbnails

 Shane is a mind-reader. I was looking for the control that auto-sizes its
 contents in various ways, it's the ViewBox of course.

 I'll wrap each child in a ViewBox. My parent Grid can have 4 x 4 cells,
 and in normal display the top visible control will have row and col span 4
 with Stretch=None.

 In tiled mode I'll show all children in a specific cell with
 Stretch=Uniform.

 Half an hour later: My experiments show it's starting to work, but there
 are some strange sizing behaviours like the Viewbox isn't filling the Grid.
 I'll look at it in the morning with a fresh mind.

 ADDENDUM: Jack, I received your message just before sending. 'Fluid Layout'
 is something I'd forgotten about completely. I'd rather go to the dentist
 than use Blend, but I'll try to figure out what it's doing behind the scenes
 and see if I can steal the code for a snazzy transition.

 Cheers,
 Greg

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney October Meeting

2010-10-12 Thread Miguel Madero
This month John Liu http://johnliu.net/ from SSW will take us step by step
from zero to a packaged Sharepoint + Silverlight solution. Then Miguel
Madero http://www.miguelmadero.com/ will share some nice tips and tricks
for the day to day Silverlight development.

*When*: Monday October 18th, 2010, 6:00 pm to start 6:30 pm*
Where*: City Hotel
(maphttp://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=347+Kent+Streetsll=-33.867139,151.207114sspn=0.066921,0.125313ie=UTF8hq=hnear=347+Kent+St,+Sydney+New+South+Wales+2000,+Australiaz=17)
347 Kent Street (Corner of King Street). Second floor at the Kent Street
Living Room.
*Cost: *Free, but please RSVP on our Facebook
group.http://www.facebook.com/event.php?eid=135132396536327

*What: *two great presentations, networking and good discussions over a
great meal and beers.
 Sharepoint + Silverlight
by John Liu http://johnliu.net/

SharePoint 2010 ships with a number of new technologies enabling developers
to build Silverlight applications that can rapidly work with SharePoint
2010, with very little deployment costs. This technical session will focus
on best practices relating to developing and deploying Silverlight +
SharePoint 2010 solutions.  Taking you from scratch to a fully packaged
SP2010 sandbox solution.

*John is a Solution Architect for SSW based in Sydney, Australia. Coming
from a technical background with **ASP.NET* http://asp.net/*, he has made
the jump and has worked on numerous web projects with heavily customized
Sharepoint web sites since MOSS 2007. John loves the number of ways that a
developer can work with SharePoint.*
 Productivity Tools and Techniques for Silverlight
by Miguel Madero http://sydney.sddn.org.au/www.miguelmadero.com

During this presentation Miguel will share with us some of the tools and
techniques used during the day to day Silverlight Development. Some of these
tools will help us design, debug and keep our code neat and simple. Some of
the topics covered are:

   - Http Sniffing
   - Visual Design Debugging
   - Silverlight Assemblies
   - Removing the need for INotifyPropertyChanged
   - Advanced Silverlight Debugging
   - Avoiding Code Generation of Web Services (without RIA Services)

*Miguel has been programming for fun for the last 15 years when he realized
that it was better to play with QBasic and Pascal than Prince of Persia. He
found out that he could actually get some money out of this hobby so he
started a couple of web companies then 5 years later a Development Shop
before moving to Australia to work for Readify where he’s now having fun
coding some of the coolest projects in the country. He discovered
Silverlight three years ago and it’s still keeping him busy and entertained.
*
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Opening an OOB App

2010-10-06 Thread Miguel Madero
You're right. You would just use %programfiles%
Since Silverlight (hence any SL app and any SL host) is 32 bit that env
variable will return either c:\program files in a 32 bit OS or c:\program
files (x86) on a 64bit one.

Too bad about the lack to pass params. In my case they're coming from the
same domain and I was looking to do use the site store as the last resort,
can get a bit messy since I might initiate multiple instances almost at the
same time, so I would have to have some sort of queue, possible adding
locks, etc... I'll have to think this through, but is far from ideal.

About the installation. We can do it passing from sllauncher. My dream is to
have an ApplicationManager that could perform this tasks for me, but if I
want to write my own, I'll need Elevated Trust for any of these (start
another app, install it, etc).



On Wed, Oct 6, 2010 at 3:26 PM, Chris Anderson christheco...@gmail.comwrote:

 %programfiles(x86)% only works on Windows 64 bit unfortunately.  As far as
 I know, there's not an easy way to determine this path on both 32 and 64 bit
 editions of Windows (unless someone has some tips for doing so).

 There's no way of passing parameters to an OOB app unfortunately (AFAIK).
  The only way I know of is to write the parameters as settings in isolated
 storage, or to a known location (like, dare I say, the registry if you
 have elevated trust).  If it is the same application being loaded, you can
 write them to the application store, or if the application to be loaded is
 from the same domain then you could use the site store.  If the application
 originates from a different domain you're somewhat out of luck, and would
 need to use the known location method.

 As for your scenario to install another Silverlight application, I can't
 see that being possible.  You could always host another Silverlight
 application within your application using the WebBrowser control (set up so
 that if run within the browser it will only request to be installed, like
 the Facebook application does).  You could pass it parameters via the URL
 query parameters.  However, the user will always need to be involved in
 initiating the actual installation process.  The application will then
 automatically launch once installed.

 Chris



 On 6 October 2010 09:57, Miguel Madero m...@miguelmadero.com wrote:

 I don't have a blog anymore so I'll leave it on your capable hands.

 You don't have to guess the path, this should work, but still requires
 Elevated Trust:
 call %programfiles(x86)%\Microsoft Silverlight\sllauncher.exe

  I was thinking to start a second app. It would be nice to have something
 like:
 ApplicationManager.StartApp(SomeOtherAppInTheSamePathAsThisOne.xap);
 ApplicationManager.StartApp(
 http://anotherdomain.com/Something/CoolApp.xap;,
 param1=value1;param2=MiguelsCool);

 That option should check first if the app is installed (based on the
 origin), if not, install it, then start it. I should also be able to get a
 ref to it and communicate with it (using pipes?) or at least have a way to
 pass initparams. All of this without elevated trust.

 We should even be able to start another instance of the same OOB App with
 just diferent parameters.


 BTW, is there a way to send initparams to an OOB App?



 On Tue, Oct 5, 2010 at 6:41 PM, Chris Anderson 
 christheco...@gmail.comwrote:

 Yep.  Ideally you'd have an Application.Current.Restart() method, so
 elevated trust wasn't necessary though :).  You'd still have to use COM
 Interop to find the user's Program Files folder though (the
 System.Environment.GetFolderPath method won't return it), and then use COM
 Interop to run sllauncher.exe.  Whether it matters that the app is still
 running when the new instance is loaded, I don't know, but I think it would
 be OK.  I assume the new version (if doing immediately after an update has
 been downloaded) will have already been put in the right place, and not
 waiting for the current instance of the app to close.  One of us might have
 to give it a go as a proof of concept exercise and blog the results :).

 Chris


 On 5 October 2010 17:10, Miguel Madero m...@miguelmadero.com wrote:

 All of the options we mentioned required full trust, but this one at
 least doesn't require COM Interop to inspect the file system :)



 On Tue, Oct 5, 2010 at 4:09 PM, Chris Anderson christheco...@gmail.com
  wrote:

 Ah, nice.  Will have to remember that one.  Of course you'll need
 elevated trust to be able to do that, but looks like a good solution.
  Thanks for sharing Miguel.

 Chris


 On 5 October 2010 15:26, Miguel Madero m...@miguelmadero.com wrote:

  Everyone,

 I remember a few months ago at an SDDN meeting we were talking about
 options to start an OOB App like looking at the shortcuts in the start 
 menu
 or trying to guess based on the random paths that the app might get
 installed on. I found a nice option. Essentially we use the 'origin' as 
 the
 key instead of trying to find the path to the xap

Re: Opening an OOB App

2010-10-06 Thread Miguel Madero
If SL ever becomes 64 bit, then %programfiles% will still resolve to the
right folder.

On Wed, Oct 6, 2010 at 11:37 PM, Chris Anderson christheco...@gmail.comwrote:

 Ah yes, of course, Silverlight is 32 bit only - for the moment anyway.  And
 yep, you could install an app via sllauncher.exe if you have elevated trust
 (I didn't think of that).  As you say, the isolated storage solution to
 passing parameters between instances has its fair share of issues :).

 Chris


 On 6 October 2010 22:58, Miguel Madero m...@miguelmadero.com wrote:

 You're right. You would just use %programfiles%
 Since Silverlight (hence any SL app and any SL host) is 32 bit that env
 variable will return either c:\program files in a 32 bit OS or c:\program
 files (x86) on a 64bit one.

 Too bad about the lack to pass params. In my case they're coming from the
 same domain and I was looking to do use the site store as the last resort,
 can get a bit messy since I might initiate multiple instances almost at the
 same time, so I would have to have some sort of queue, possible adding
 locks, etc... I'll have to think this through, but is far from ideal.

 About the installation. We can do it passing from sllauncher. My dream is
 to have an ApplicationManager that could perform this tasks for me, but if I
 want to write my own, I'll need Elevated Trust for any of these (start
 another app, install it, etc).



 On Wed, Oct 6, 2010 at 3:26 PM, Chris Anderson 
 christheco...@gmail.comwrote:

 %programfiles(x86)% only works on Windows 64 bit unfortunately.  As far
 as I know, there's not an easy way to determine this path on both 32 and 64
 bit editions of Windows (unless someone has some tips for doing so).

 There's no way of passing parameters to an OOB app unfortunately (AFAIK).
  The only way I know of is to write the parameters as settings in isolated
 storage, or to a known location (like, dare I say, the registry if you
 have elevated trust).  If it is the same application being loaded, you can
 write them to the application store, or if the application to be loaded is
 from the same domain then you could use the site store.  If the application
 originates from a different domain you're somewhat out of luck, and would
 need to use the known location method.

 As for your scenario to install another Silverlight application, I can't
 see that being possible.  You could always host another Silverlight
 application within your application using the WebBrowser control (set up so
 that if run within the browser it will only request to be installed, like
 the Facebook application does).  You could pass it parameters via the URL
 query parameters.  However, the user will always need to be involved in
 initiating the actual installation process.  The application will then
 automatically launch once installed.

 Chris



 On 6 October 2010 09:57, Miguel Madero m...@miguelmadero.com wrote:

 I don't have a blog anymore so I'll leave it on your capable hands.

 You don't have to guess the path, this should work, but still requires
 Elevated Trust:
 call %programfiles(x86)%\Microsoft Silverlight\sllauncher.exe

  I was thinking to start a second app. It would be nice to have
 something like:
 ApplicationManager.StartApp(SomeOtherAppInTheSamePathAsThisOne.xap);
 ApplicationManager.StartApp(
 http://anotherdomain.com/Something/CoolApp.xap;,
 param1=value1;param2=MiguelsCool);

 That option should check first if the app is installed (based on the
 origin), if not, install it, then start it. I should also be able to get a
 ref to it and communicate with it (using pipes?) or at least have a way to
 pass initparams. All of this without elevated trust.

 We should even be able to start another instance of the same OOB App
 with just diferent parameters.


 BTW, is there a way to send initparams to an OOB App?



 On Tue, Oct 5, 2010 at 6:41 PM, Chris Anderson christheco...@gmail.com
  wrote:

 Yep.  Ideally you'd have an Application.Current.Restart() method, so
 elevated trust wasn't necessary though :).  You'd still have to use COM
 Interop to find the user's Program Files folder though (the
 System.Environment.GetFolderPath method won't return it), and then use COM
 Interop to run sllauncher.exe.  Whether it matters that the app is still
 running when the new instance is loaded, I don't know, but I think it 
 would
 be OK.  I assume the new version (if doing immediately after an update has
 been downloaded) will have already been put in the right place, and not
 waiting for the current instance of the app to close.  One of us might 
 have
 to give it a go as a proof of concept exercise and blog the results :).

 Chris


 On 5 October 2010 17:10, Miguel Madero m...@miguelmadero.com wrote:

 All of the options we mentioned required full trust, but this one at
 least doesn't require COM Interop to inspect the file system :)



 On Tue, Oct 5, 2010 at 4:09 PM, Chris Anderson 
 christheco...@gmail.com wrote:

 Ah, nice.  Will have to remember that one

Re: Opening an OOB App

2010-10-05 Thread Miguel Madero
All of the options we mentioned required full trust, but this one at least
doesn't require COM Interop to inspect the file system :)



On Tue, Oct 5, 2010 at 4:09 PM, Chris Anderson christheco...@gmail.comwrote:

 Ah, nice.  Will have to remember that one.  Of course you'll need elevated
 trust to be able to do that, but looks like a good solution.  Thanks for
 sharing Miguel.

 Chris


 On 5 October 2010 15:26, Miguel Madero m...@miguelmadero.com wrote:

  Everyone,

 I remember a few months ago at an SDDN meeting we were talking about
 options to start an OOB App like looking at the shortcuts in the start menu
 or trying to guess based on the random paths that the app might get
 installed on. I found a nice option. Essentially we use the 'origin' as the
 key instead of trying to find the path to the xap.


 From Tim Heuer 
 bloghttp://timheuer.com/blog/archive/2010/03/25/using-sllauncher-for-silent-install-silverlight-application.aspx

  Automatically Launching the App

 So what if you wanted to also automatically launch the app after
 installing (i.e., the CD/DVD ‘autorun’ scenario).  You again would use
 sllauncher.exe to do this for you *after you’ve installed the app*.
 Using our same sample above here would be the command:

1: %ProgramFiles%\Microsoft Silverlight\sllauncher.exe



2: /emulate:Silverface.xap



3: 
 /origin:http://www.silverlight.net/content/samples/apps/facebookclient/ClientBin/Silverface.xap;



4: /overwrite

  Notice the *emulate* command.  This is the launcher.  Now you’ll notice
 that this isn’t the same command-line options if you looked at an installed
 applications’ created shortcuts.  Because the folder where the XAP gets
 installed is pretty random, we use the origin as the hint to the
 sllauncher.exe program to find the right app for us and start it up.  I’ve
 found that using /overwrite will also give a more consistent behavior.




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Opening an OOB App

2010-10-05 Thread Miguel Madero
I don't have a blog anymore so I'll leave it on your capable hands.

You don't have to guess the path, this should work, but still requires
Elevated Trust:
call %programfiles(x86)%\Microsoft Silverlight\sllauncher.exe

 I was thinking to start a second app. It would be nice to have something
like:
ApplicationManager.StartApp(SomeOtherAppInTheSamePathAsThisOne.xap);
ApplicationManager.StartApp(http://anotherdomain.com/Something/CoolApp.xap;,
param1=value1;param2=MiguelsCool);

That option should check first if the app is installed (based on the
origin), if not, install it, then start it. I should also be able to get a
ref to it and communicate with it (using pipes?) or at least have a way to
pass initparams. All of this without elevated trust.

We should even be able to start another instance of the same OOB App with
just diferent parameters.


BTW, is there a way to send initparams to an OOB App?



On Tue, Oct 5, 2010 at 6:41 PM, Chris Anderson christheco...@gmail.comwrote:

 Yep.  Ideally you'd have an Application.Current.Restart() method, so
 elevated trust wasn't necessary though :).  You'd still have to use COM
 Interop to find the user's Program Files folder though (the
 System.Environment.GetFolderPath method won't return it), and then use COM
 Interop to run sllauncher.exe.  Whether it matters that the app is still
 running when the new instance is loaded, I don't know, but I think it would
 be OK.  I assume the new version (if doing immediately after an update has
 been downloaded) will have already been put in the right place, and not
 waiting for the current instance of the app to close.  One of us might have
 to give it a go as a proof of concept exercise and blog the results :).

 Chris


 On 5 October 2010 17:10, Miguel Madero m...@miguelmadero.com wrote:

 All of the options we mentioned required full trust, but this one at least
 doesn't require COM Interop to inspect the file system :)



 On Tue, Oct 5, 2010 at 4:09 PM, Chris Anderson 
 christheco...@gmail.comwrote:

 Ah, nice.  Will have to remember that one.  Of course you'll need
 elevated trust to be able to do that, but looks like a good solution.
  Thanks for sharing Miguel.

 Chris


 On 5 October 2010 15:26, Miguel Madero m...@miguelmadero.com wrote:

  Everyone,

 I remember a few months ago at an SDDN meeting we were talking about
 options to start an OOB App like looking at the shortcuts in the start menu
 or trying to guess based on the random paths that the app might get
 installed on. I found a nice option. Essentially we use the 'origin' as the
 key instead of trying to find the path to the xap.


 From Tim Heuer 
 bloghttp://timheuer.com/blog/archive/2010/03/25/using-sllauncher-for-silent-install-silverlight-application.aspx

  Automatically Launching the App

 So what if you wanted to also automatically launch the app after
 installing (i.e., the CD/DVD ‘autorun’ scenario).  You again would use
 sllauncher.exe to do this for you *after you’ve installed the app*.
 Using our same sample above here would be the command:

1: %ProgramFiles%\Microsoft Silverlight\sllauncher.exe






2: /emulate:Silverface.xap






3: 
 /origin:http://www.silverlight.net/content/samples/apps/facebookclient/ClientBin/Silverface.xap;






4: /overwrite

  Notice the *emulate* command.  This is the launcher.  Now you’ll
 notice that this isn’t the same command-line options if you looked at an
 installed applications’ created shortcuts.  Because the folder where the 
 XAP
 gets installed is pretty random, we use the origin as the hint to the
 sllauncher.exe program to find the right app for us and start it up.  I’ve
 found that using /overwrite will also give a more consistent behavior.




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Opening an OOB App

2010-10-04 Thread Miguel Madero
Everyone,

I remember a few months ago at an SDDN meeting we were talking about options
to start an OOB App like looking at the shortcuts in the start menu or
trying to guess based on the random paths that the app might get installed
on. I found a nice option. Essentially we use the 'origin' as the key
instead of trying to find the path to the xap.


From Tim Heuer 
bloghttp://timheuer.com/blog/archive/2010/03/25/using-sllauncher-for-silent-install-silverlight-application.aspx

 Automatically Launching the App

So what if you wanted to also automatically launch the app after installing
(i.e., the CD/DVD ‘autorun’ scenario).  You again would use sllauncher.exe
to do this for you *after you’ve installed the app*.  Using our same sample
above here would be the command:

   1: %ProgramFiles%\Microsoft Silverlight\sllauncher.exe
   2: /emulate:Silverface.xap
   3: 
/origin:http://www.silverlight.net/content/samples/apps/facebookclient/ClientBin/Silverface.xap;
   4: /overwrite

 Notice the *emulate* command.  This is the launcher.  Now you’ll notice
that this isn’t the same command-line options if you looked at an installed
applications’ created shortcuts.  Because the folder where the XAP gets
installed is pretty random, we use the origin as the hint to the
sllauncher.exe program to find the right app for us and start it up.  I’ve
found that using /overwrite will also give a more consistent behavior.




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Cross framework control development - Silverlight 4 and Phone 7

2010-09-27 Thread Miguel Madero
Hi John,

Unfortunately it's hard to maintain 2 separate solutions with a bunch of
similar projects linking files. Everytime you add a file you have to switch
and create a link. You might use Project Linker (from PP), although I never
got it to work. Another solution is to simply have a NANT script, a post
build action or some MSBuild voodoo to builds the same project for WP7. I've
seen many OS projects go down that path. Ninject is one that comes to mind.



On Mon, Sep 27, 2010 at 12:40 PM, John OBrien j...@soulsolutions.com.auwrote:

  Guys, any experiences or suggestions for developing a Silverlight control
 that you'd like to run on both Silverlight 4 and Phone 7?

 Having looked at it currently we are planning to:


1. Have two Solutions, A Silverlight 4 and a Phone 7, replicate
projects, same namespaces but different assembly names.
2. Have all the code in the Silverlight 4 solution / projects. Phone 7
projects will have code files added as a link to the SL4 files.
3. For the core anything not compatible with Phone 7 surround with #if
!WINDOWS_PHONE
4. Break apart anything really specific into different projects, simply
don't have them in the Phone or Silverlight4 solution. Eg specific drop
target feature for Silverlight4 only


 Major issue we see with this is that you can easily add something to the
 Silverlight4 solution that will break the Phone7 solution, looking at a
 build server that would build both solutions and report these errors
 quickly.

 Thoughts?

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Design time data

2010-08-17 Thread Miguel Madero
We have to be careful with HtmlPage.IsEnabled. That was the way to do it in
Silverlight 2, however this will break Out of Browser. Not a big issue if
you don't care about OOB, but just something to keep in mind.

Try DesignerProperties.IsInDesignTool. This should work for both VS and
Blend.

@David, there are a couple more options

1. Create Sample Data from class option in Blend. To be honest I don't like
it and find it quite limited, but it's still an option.
2. Using a DesignTime ViewModel. Using a d:DataContext and set it to create
an instance of your type.


On Tue, Aug 17, 2010 at 3:32 PM, ross r...@perenni.com.au wrote:

 Hi David,

 I've sent this directly to you, as you can't send attachments to the
 list.  I'm a bit short of time to write an essay, so just drummed up a
 sample.

 The sample isn't the only way to do it, but maybe will give you some ideas.

 The key is the check for  if (HtmlPage.IsEnabled), where the service
 locator sets the mock data if false.  When in blend,
 HtmlPage.IsEnabled = false.  Of course, you can do this where ever you
 want in your code base.  You don't necessarily have to use a service
 locator, or set the datacontext in the same manner.

 If you open the project in blend, you will see the data displayed is
 all mock data.  If you run it from VS you will see 'live' data.  Of
 course the live data is a fudge in this case but should give you the
 idea.

 Let me know if you have any questions.

 Cheers.

 Ross

 On Tue, Aug 17, 2010 at 12:23 PM, David Burela david.bur...@gmail.com
 wrote:
  Thought I'd check how others are displaying design time data. There are 2
  ways that I go about it
  1.
  Just setting the design time datacontext to a sampledata.xaml file
  grid d:Datacontext={SamleData.Xaml}
 
  2.
  Doing it similar to how Jordan shows in his presentations
  View
  ViewModel
  Repository (Runtime, DesignTime, etc)
  (RVVM)
 
  The first option is nice and quick and easy to do, but it doesn't help
 you
  unit test your ViewModel at all.
  The 2nd option is good, but as far as I know depends on your ViewModel
  loading the data in the constructor.
  I am at a client where they load the data up as a seperate call, not in
 the
  constructor. Any tips on how I could still use the repository pattern,
 but
  still be able to load the data without anything in the constructor.
 Doesn't
  seem possible to me.
  -David Burela
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Design time data

2010-08-17 Thread Miguel Madero
This probably won't affect any of you, but just to add to this I found a
similar issue with a WPF Blend Add-in. IsInDesignTool was returning true at
runtime. Which sort of makes sense (but still wrong), since I was still
'inside of the design tool'. Anyway, I never bother debugging it and just
went with a SampleData ViewModel approach...




On Wed, Aug 18, 2010 at 4:37 AM, Peter Blois pete...@microsoft.com wrote:

  +1 to IsInDesignTool- HtmlPage.IsEnabled was the workaround from
 Silverlight 2 ages, it will generate false positives when running out of
 browser (and other scenarios).



 Pete



 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Peter Gfader
 *Sent:* Monday, August 16, 2010 11:25 PM
 *To:* ozSilverlight
 *Subject:* Re: Design time data



 +1 to

 if (DesignerProperties.IsInDesignTool)

 {

   // create sample data for designer

 }









 On Tue, Aug 17, 2010 at 4:02 PM, Miguel Madero m...@miguelmadero.com
 wrote:

 We have to be careful with HtmlPage.IsEnabled. That was the way to do it in
 Silverlight 2, however this will break Out of Browser. Not a big issue if
 you don't care about OOB, but just something to keep in mind.



 Try DesignerProperties.IsInDesignTool. This should work for both VS and
 Blend.



 @David, there are a couple more options



 1. Create Sample Data from class option in Blend. To be honest I don't like
 it and find it quite limited, but it's still an option.

 2. Using a DesignTime ViewModel. Using a d:DataContext and set it to create
 an instance of your type.





 On Tue, Aug 17, 2010 at 3:32 PM, ross r...@perenni.com.au wrote:

 Hi David,

 I've sent this directly to you, as you can't send attachments to the
 list.  I'm a bit short of time to write an essay, so just drummed up a
 sample.

 The sample isn't the only way to do it, but maybe will give you some ideas.

 The key is the check for  if (HtmlPage.IsEnabled), where the service
 locator sets the mock data if false.  When in blend,
 HtmlPage.IsEnabled = false.  Of course, you can do this where ever you
 want in your code base.  You don't necessarily have to use a service
 locator, or set the datacontext in the same manner.

 If you open the project in blend, you will see the data displayed is
 all mock data.  If you run it from VS you will see 'live' data.  Of
 course the live data is a fudge in this case but should give you the
 idea.

 Let me know if you have any questions.

 Cheers.

 Ross


 On Tue, Aug 17, 2010 at 12:23 PM, David Burela david.bur...@gmail.com
 wrote:
  Thought I'd check how others are displaying design time data. There are 2
  ways that I go about it
  1.
  Just setting the design time datacontext to a sampledata.xaml file
  grid d:Datacontext={SamleData.Xaml}
 
  2.
  Doing it similar to how Jordan shows in his presentations
  View
  ViewModel
  Repository (Runtime, DesignTime, etc)
  (RVVM)
 
  The first option is nice and quick and easy to do, but it doesn't help
 you
  unit test your ViewModel at all.
  The 2nd option is good, but as far as I know depends on your ViewModel
  loading the data in the constructor.
  I am at a client where they load the data up as a seperate call, not in
 the
  constructor. Any tips on how I could still use the repository pattern,
 but
  still be able to load the data without anything in the constructor.
 Doesn't
  seem possible to me.
  -David Burela

  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 


 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



   --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com


 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --



 .peter.gfader.

 http://blog.gfader.com/

 http://twitter.com/peitor





 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010

2010-08-16 Thread Miguel Madero
Uploading it raw is easy, but the time consuming bit comes in ...
Trying to make Miguel look good, editing the awkward silences and
mistakes

Thanks for recording it :)
Please let me know once it's there to add a link from the SDDN site.


On Tue, Aug 17, 2010 at 2:43 PM, David Burela david.bur...@gmail.comwrote:

 Uploading it raw is easy, but the time consuming bit comes in when I clean
 up all of the audio and have to render the entire video again. I managed to
 clear out a lot of the background noise, makes it easy to listen to than the
 constant hum of fluorescent lights.

 I've got the SDDN video, a 5 Cloudcamp lightning talks + unpanel, my talk
 on Window Phone 7 UI guidelines, and tomorrow's Alt.Net lightning talks to
 clean up and upload after teched.

  -David Burela



 On 17 August 2010 14:21, Stephen Price step...@littlevoices.com wrote:

 Oh, yes please! No hurry on when you upload it. Alternatively I can
 grab it from you at Teched via thumbdrive (assuming I find you among
 all those people :)

 I'll be at the UserGroup stand spreading the Silverlight word
 (Thursday afternoon, but probably other times too)

 cheers,
 Stephen

 On Tue, Aug 17, 2010 at 10:09 AM, David Burela david.bur...@gmail.com
 wrote:
  Also, for those that missed the Melbourne SDDN, I recorded it.
  I just won't be able to upload the video for another 1-2 weeks
  (TechEd preparation, etc.)
  -David Burela
 
  On 11 August 2010 11:19, Miguel Madero m...@miguelmadero.com wrote:
 
  Thanks for the feedback and I had in mind something similar. Not sure
  about Graffiti (what we're using for sddn.org.au), but I'm sure it
 will have
  something similar to categories in Wordpress and we could have RSS
 feeds for
  each category and provide a link to those on the home page.
 
 
  Thanks
  Miguel
 
  On Tue, Aug 10, 2010 at 10:49 PM, Asheesh Soni asheeshs...@gmail.com
  wrote:
 
  The best option would be a reliable and unified RSS feed with
  filtering so for example, I could subscribe to all Silverligth
  events in Melbourne at
 
 http://OneUnifiedRSSFeedForEvents.com/AU/Melbourne/Silverlight/feed.rss
 
  :)
 
 
  On Tue, Aug 10, 2010 at 4:07 PM, Miguel Madero m...@miguelmadero.com
  wrote:
   I'm sorry about this. Right now we have different places where we're
   publishing the events (Facebook group, Twitter, OzSilverlight,
   sddn.org.au
   and for Sydney sydney.sddn.org.au).
   I think we should list everything on sddn.org.au, but I'm sure
 there're
   others who would only check the OzSilverlight or only the Facebook
   group.
   Considering that, in the meantime we should continue using different
   mediums
   to try to reach as most people, but have all those places link to
 the
   website... I'm open for opinions.
  
   For future events we'll make sure we announce it better and with
 more
   time.
  
  
  
   On Fri, Aug 6, 2010 at 5:23 PM, Asheesh Soni asheeshs...@gmail.com
 
   wrote:
  
   Could some one please let me know the url to subscribe for the User
   group meeting notifications?
  
   http://sddn.org.au/meetings/ did not mention it.
   http://twitter.com/vdnug appears to have died on April 28th
  
   I could not find it on Victoria.NET Dev SIG Events either?
  
   Was waiting for the meeting for a while, did not check
 ozsilverlight
   for a couple of days and now realised that I missed another one :(
  
  
   B.T.W., I emailed my details to i...@victoriadotnet.com.au a while
 ago
   but I'dont think I am still a member or get any notifications about
   vic.net meetings. Any ideas?
  
   Thanks
  
   On Fri, Jul 30, 2010 at 8:10 PM, Miguel Madero 
 m...@miguelmadero.com
   wrote:
Just forwarding this e-mail in case you missed it from the
 Vic.Net
list.
   
   
From: Victoria .NET on behalf of SDDN [mailto:i...@sddn.org.au]
Sent: Wednesday, 28 July 2010 11:57 PM
To: Mahesh S. Krishnan
Subject: Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010
   
   
   
Next Meeting - Monday August 2nd, 2010
   
Productivity Tools and Techniques for Silverlight - Miguel Madero
   
During this presentation Miguel will share with us some of the
 tools
and
techniques used during the day to day Silverlight Development.
 Some
of
these
tools will help us design, debug and keep our code neat and
 simple.
Some
of
the topics covered are:
   
Http Sniffing
Visual Design Debugging
Silverlight Assemblies
Removing the need for INotifyPropertyChanged
Advanced Silverlight Debugging
Avoiding Code Generation of Web Services
   
When: Monday 2nd August 2010
   
Time: is 5:30 PM for Pizzas and networking. Presentation starts
 6:00
PM
   
Place: Microsoft Theatre. Level 5, 4 Freshwater Place, Southbank.
   
Miguel has been programming for fun for the last 15 years when he
realized
that it was better to play with QBasic and Pascal than Prince of
Persia.
He
found out that he could actually get some money out

Re: Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010

2010-08-10 Thread Miguel Madero
I'm sorry about this. Right now we have different places where we're
publishing the events (Facebook group, Twitter, OzSilverlight,
sddn.org.auand for Sydney
sydney.sddn.org.au).
I think we should list everything on sddn.org.au, but I'm sure there're
others who would only check the OzSilverlight or only the Facebook group.
Considering that, in the meantime we should continue using different mediums
to try to reach as most people, but have all those places link to the
website... I'm open for opinions.

For future events we'll make sure we announce it better and with more time.




On Fri, Aug 6, 2010 at 5:23 PM, Asheesh Soni asheeshs...@gmail.com wrote:

 Could some one please let me know the url to subscribe for the User
 group meeting notifications?

 http://sddn.org.au/meetings/ did not mention it.
 http://twitter.com/vdnug appears to have died on April 28th

 I could not find it on Victoria.NET Dev SIG Events either?

 Was waiting for the meeting for a while, did not check ozsilverlight
 for a couple of days and now realised that I missed another one :(


 B.T.W., I emailed my details to i...@victoriadotnet.com.au a while ago
 but I'dont think I am still a member or get any notifications about
 vic.net meetings. Any ideas?

 Thanks

 On Fri, Jul 30, 2010 at 8:10 PM, Miguel Madero m...@miguelmadero.com
 wrote:
  Just forwarding this e-mail in case you missed it from the Vic.Net list.
 
 
  From: Victoria .NET on behalf of SDDN [mailto:i...@sddn.org.au]
  Sent: Wednesday, 28 July 2010 11:57 PM
  To: Mahesh S. Krishnan
  Subject: Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010
 
 
 
  Next Meeting - Monday August 2nd, 2010
 
  Productivity Tools and Techniques for Silverlight - Miguel Madero
 
  During this presentation Miguel will share with us some of the tools and
  techniques used during the day to day Silverlight Development. Some of
 these
  tools will help us design, debug and keep our code neat and simple. Some
 of
  the topics covered are:
 
  Http Sniffing
  Visual Design Debugging
  Silverlight Assemblies
  Removing the need for INotifyPropertyChanged
  Advanced Silverlight Debugging
  Avoiding Code Generation of Web Services
 
  When: Monday 2nd August 2010
 
  Time: is 5:30 PM for Pizzas and networking. Presentation starts 6:00 PM
 
  Place: Microsoft Theatre. Level 5, 4 Freshwater Place, Southbank.
 
  Miguel has been programming for fun for the last 15 years when he
 realized
  that it was better to play with QBasic and Pascal than Prince of Persia.
 He
  found out that he could actually get some money out of this hobby so he
  started a couple of web companies 5 years later and then a Development
 Shop
  before moving to Australia to work for Readify where he’s now having fun
  coding some of the coolest projects in Australia. He discovered
 Silverlight
  two years ago and it’s still keeping him busy and entertained.
 
  RSVP
 
  It is free to attend, but please RSVP to i...@sddn.org.au if you are
 coming.
 
 
 
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010

2010-08-10 Thread Miguel Madero
Thanks for the feedback and I had in mind something similar. Not sure about
Graffiti (what we're using for sddn.org.au), but I'm sure it will have
something similar to categories in Wordpress and we could have RSS feeds for
each category and provide a link to those on the home page.



Thanks
Miguel

On Tue, Aug 10, 2010 at 10:49 PM, Asheesh Soni asheeshs...@gmail.comwrote:

 The best option would be a reliable and unified RSS feed with
 filtering so for example, I could subscribe to all Silverligth
 events in Melbourne at
 http://OneUnifiedRSSFeedForEvents.com/AU/Melbourne/Silverlight/feed.rss

 :)


 On Tue, Aug 10, 2010 at 4:07 PM, Miguel Madero m...@miguelmadero.com
 wrote:
  I'm sorry about this. Right now we have different places where we're
  publishing the events (Facebook group, Twitter, OzSilverlight,
 sddn.org.au
  and for Sydney sydney.sddn.org.au).
  I think we should list everything on sddn.org.au, but I'm sure there're
  others who would only check the OzSilverlight or only the Facebook group.
  Considering that, in the meantime we should continue using different
 mediums
  to try to reach as most people, but have all those places link to the
  website... I'm open for opinions.
 
  For future events we'll make sure we announce it better and with more
 time.
 
 
 
  On Fri, Aug 6, 2010 at 5:23 PM, Asheesh Soni asheeshs...@gmail.com
 wrote:
 
  Could some one please let me know the url to subscribe for the User
  group meeting notifications?
 
  http://sddn.org.au/meetings/ did not mention it.
  http://twitter.com/vdnug appears to have died on April 28th
 
  I could not find it on Victoria.NET Dev SIG Events either?
 
  Was waiting for the meeting for a while, did not check ozsilverlight
  for a couple of days and now realised that I missed another one :(
 
 
  B.T.W., I emailed my details to i...@victoriadotnet.com.au a while ago
  but I'dont think I am still a member or get any notifications about
  vic.net meetings. Any ideas?
 
  Thanks
 
  On Fri, Jul 30, 2010 at 8:10 PM, Miguel Madero m...@miguelmadero.com
  wrote:
   Just forwarding this e-mail in case you missed it from the Vic.Net
 list.
  
  
   From: Victoria .NET on behalf of SDDN [mailto:i...@sddn.org.au]
   Sent: Wednesday, 28 July 2010 11:57 PM
   To: Mahesh S. Krishnan
   Subject: Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010
  
  
  
   Next Meeting - Monday August 2nd, 2010
  
   Productivity Tools and Techniques for Silverlight - Miguel Madero
  
   During this presentation Miguel will share with us some of the tools
 and
   techniques used during the day to day Silverlight Development. Some of
   these
   tools will help us design, debug and keep our code neat and simple.
 Some
   of
   the topics covered are:
  
   Http Sniffing
   Visual Design Debugging
   Silverlight Assemblies
   Removing the need for INotifyPropertyChanged
   Advanced Silverlight Debugging
   Avoiding Code Generation of Web Services
  
   When: Monday 2nd August 2010
  
   Time: is 5:30 PM for Pizzas and networking. Presentation starts 6:00
 PM
  
   Place: Microsoft Theatre. Level 5, 4 Freshwater Place, Southbank.
  
   Miguel has been programming for fun for the last 15 years when he
   realized
   that it was better to play with QBasic and Pascal than Prince of
 Persia.
   He
   found out that he could actually get some money out of this hobby so
 he
   started a couple of web companies 5 years later and then a Development
   Shop
   before moving to Australia to work for Readify where he’s now having
 fun
   coding some of the coolest projects in Australia. He discovered
   Silverlight
   two years ago and it’s still keeping him busy and entertained.
  
   RSVP
  
   It is free to attend, but please RSVP to i...@sddn.org.au if you are
   coming.
  
  
  
   ___
   ozsilverlight mailing list
   ozsilverlight@ozsilverlight.com
   http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
  
  
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 
 
  --
  Miguel A. Madero Reyes
  www.miguelmadero.com (blog)
  m...@miguelmadero.com
 
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney August Meeting – 16th of August

2010-08-08 Thread Miguel Madero
Next monday we will have our SDDN meeting in Sydney. Here're the details.


*When*: Monday August 16th, 2010, 6:00 pm to start 6:30 pm*
Where*: City Hotel
(maphttp://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=347+Kent+Streetsll=-33.867139,151.207114sspn=0.066921,0.125313ie=UTF8hq=hnear=347+Kent+St,+Sydney+New+South+Wales+2000,+Australiaz=17)
347 Kent Street (Corner of King Street). Second floor at the Kent Street
Living Room.
*Cost: *Free, but please
RSVPhttp://www.facebook.com/group.php?gid=70337428577#!/event.php?eid=149910268353431ref=mf

*What: *two great presentations, networking and good discussions over a
great meal and beers.

This month we will have a great Windows Phone 7 presentation by Ducas
Francis and some premium Tech Ed quality content by Chris Anderson. Here are
the details.
 A day in the life of a Metro developer
by Ducas Francis http://blog.duc.as/

What is Metro? How do I get started on Windows Phone 7? What cool things
does it’s API let me do? And why would I come to a Silverlight user group to
hear about this…? Take a journey with me through the phone. See what it has
to offer. Dig deeper, past the UI, into the UX, and further to the API.

Ducas lives and breathes .Net. He is a Senior Consultant working for Readify
for the past 3 years. He enjoys long walks on the beach and sunsets, but
only if he can read twitter and RSS feeds along the way.
 Running Silverlight Outside the Browser and with Elevated Trust
by Chris Anderson http://chrisa.wordpress.com/

Silverlight 3 introduced the ability to run your Silverlight applications
outside the browser, and Silverlight 4 takes this one step further by
enabling you to run your application with elevated trust. Silverlight is no
longer a sandboxed browser-only platform now. This session will take you
through the new possibilities enabled by this feature, including toast
notifications, custom chrome, COM access, and direct file system access.

Chris Anderson has been a professional developer for over 10 years now,
specializing in building desktop, web, and mobile business applications
using Microsoft technologies for industries as wide ranging as accounting,
property valuation, mining, the fresh produce industry, pet cremations,
logistics, field services, sales, and construction. Now running his own
business (Peer Placements http://www.peerplacements.com.au/, as
co-director) he has turned to Silverlight as the ideal new technology for
developing and deploying business applications. Chris is the author of two
upcoming books – Pro Business Applications in Silverlight 4 (Apress), and
Professional Visual Studio 2010 (Wrox, as coauthor).

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Invalid XML (addendum)

2010-08-01 Thread Miguel Madero
If you can use System.Interactivity, I would suggest to use a
CallMethodAction Behavior instead of Commands.

On Sun, Aug 1, 2010 at 6:16 PM, .net noobie dotnetnoo...@gmail.com wrote:


 http://www.cauldwell.net/patrick/blog/MVVMBindingToCommandsInSilverlight.aspx

 here is a plain/no frills example of Silverlight 3 ICommand button
 service
 very plain, no junk, just an example for how to hook up a command to a
 button in SL 3

 I downloaded the code and ran it and it worked fine for me

 On Sun, Aug 1, 2010 at 1:18 PM, Greg Keogh g...@mira.net wrote:


 http://slextensions.codeplex.com/SourceControl/changeset/view/35533#395012



 OK! I manually copied over Command, CommandService, CommandSusbcription
 and some other related EventArgs classes to my project. Following the sample
 XAML in their project which binds a Button to a command in the controller, I
 wired it all up and clicked the Button...



 And nothings happens. I’ve shuffled code around and tried every trick I
 can think of to coax it into life, but the command doesn’t fire, nothing
 happens.



 I’ve spent about 5 solid hours of my spare time over the last week trying
 to get a SL3 binding from a click event in the control to a method in my
 controller. I’ve waded through hundreds of web pages, I’ve tried various
 versions of DelegateCommand, RelayCommand and now these codeplex extensions.
 They all either do nothing, or cause catastrophic exceptions or break the
 Blend 3 designer. The closest I came was with RelayCommand, which actually
 works at runtime and I get bound method is invoked, but the Command=
 element is not recognised and breaks Blend.



 The ever dwindling remaining part of my lifespan is draining away before
 my eyes as I spend hours (and days sometimes) trying to make the simplest
 things work in Silverlight and WPF. I’m always plugging holes, or finding
 workarounds, or searching the web for bizarre techniques or error messages.
 I’ve spent more time f***ing around than I have actually writing productive
 code in these platforms over the last 3 years. Attempting to follow the MVVM
 pattern has by far wasted the most time recently.



 Has anyone out there got a simple working example of an SL3 project where
 a Button click invokes a method in the controller? I’m at the point of
 exhaustion and wondering what else I can do in life.



 Greg



 Ps. My video card overheated at 9:30 this morning and died. I had to drive
 for an hour to get a replacement on Sunday morning. Now my left monitor has
 a quadruple sized mouse cursor that I can’t get rid of.

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010

2010-07-30 Thread Miguel Madero
Just forwarding this e-mail in case you missed it from the Vic.Net list.


 *From:* Victoria .NET on behalf of SDDN [mailto:i...@sddn.org.au]
*Sent:* Wednesday, 28 July 2010 11:57 PM
*To:* Mahesh S. Krishnan
*Subject:* Next Vic.NET/SDDN Meeting: Monday 2nd August, 2010


Next Meeting - Monday August 2nd, 2010 Productivity Tools and Techniques for
Silverlight - Miguel Madero

During this presentation Miguel will share with us some of the tools and
techniques used during the day to day Silverlight Development. Some of these
tools will help us design, debug and keep our code neat and simple. Some of
the topics covered are:

   - Http Sniffing
   - Visual Design Debugging
   - Silverlight Assemblies
   - Removing the need for INotifyPropertyChanged
   - Advanced Silverlight Debugging
   - Avoiding Code Generation of Web Services

*When:* Monday 2nd August 2010

*Time:* is 5:30 PM for Pizzas and networking. Presentation starts 6:00 PM

*Place:* Microsoft Theatre. Level 5, 4 Freshwater Place, Southbank.

*Miguel has been programming for fun for the last 15 years when he realized
that it was better to play with QBasic and Pascal than Prince of Persia. He
found out that he could actually get some money out of this hobby so he
started a couple of web companies 5 years later and then a Development Shop
before moving to Australia to work for Readify where he’s now having fun
coding some of the coolest projects in Australia. He discovered Silverlight
two years ago and it’s still keeping him busy and entertained.*

RSVP

It is free to attend, but please RSVP to i...@sddn.org.au if you are coming.
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: ResourceDictionary cannot find key

2010-07-28 Thread Miguel Madero
Not sure how the Telerik Theme's work, but I think the issue might be in
another place.

Do you an internal exception?
Could you share the code inside GridView.xaml? I'm thinking it might have
another dependency.
Could you check in Reflector that you actual have the resource in the
expected location? It should be inside AssemblyName.g.resources with the key
themes/Telerik.Windows.Controls.GridView.xaml




On Wed, Jul 28, 2010 at 2:29 PM, ton...@tpg.com.au wrote:

 Hi all,

 I am having trouble with a ResourceDictionary that contains
 MergedDictionaries.

 Basically, I am attempting to create a theme for Telerik controls, however
 that should be irrelevant
 as the problem is with ResourceDictionary.

 I copied in all the theme information from one of their sample themes into
 an external assembly
 that I have referenced from within my project.

 All the xaml files have their Build Action set to Resource.

 The theme project has a class in it with the theme name and the BuiltIn
 attribute set, as follows:
 [ThemeLocation(ThemeLocation.BuiltIn)]
 public class AcmeDefaultTheme : Telerik.Windows.Controls.Theme
 {
public AcmeDefaultTheme()
{
//the following line is actually ignored because of the BuiltIn
 attribute
//above!
this.Source = new
 Uri(/Acme.RadControls.Theme;component/themes/Generic.xaml,
 UriKind.Relative);
}
 }

 I have added the namespace to the xaml of the page where I want to use the
 theme:
 xmlns:brightstarTheme=clr-
 namespace:Acme.RadControls.Theme;assembly=Acme.RadControls.Theme

 I have made a reference to the theme in the resources section.
 Firstly like this:
 telerik:Theme x:Key=AcmeDefaultTheme

 Source=/Acme.RadControls.Theme;component/Themes/Telerik.Windows.Controls.GridView.xaml
 /
 and secondly I tried this:
 acmeTheme:AcmeDefaultTheme x:Key=AcmeDefaultTheme /

 In the grid tag, I have added the style:
 telerik:RadGridView x:Name=grdProducts ItemsSource={Binding
 PagedItemList, Source=
 {StaticResource PFOViewModel}} IsFilteringAllowed=True
 AutoGenerateColumns=False
 FrozenColumnCount=6 Grid.Row=4 Grid.Column=0 AutoExpandGroups=True
 ShowGroupPanel=False
 telerik:StyleManager.Theme={StaticResource AcmeDefaultTheme}
 

 Everything compiles ok, however when I run the application, I get the
 following error:
 Failed to assign to property 'System.Windows.ResourceDictionary.Source'...
 with the more detailed error of:
 A
 ResourceDictionary
 '/Acme.RadControls.Theme;component/Themes/Telerik.Windows.Controls.Grid
 View.xaml'
 cannot be found. Please make sure that references to the needed theme
 assemblies have been
 added to the project.

 The problem is that this xaml resources file DOES exist at the location
 specified.

 Any ideas what I might be doing wrong?

 Regards,
 Tony

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Sydney SDDN Meeting Tomorrow

2010-07-18 Thread Miguel Madero
Just a quick reminder to everyone, we're having the Sydney SDDN Meeting
tomorrow. More details here http://sydney.sddn.org.au/, keep in mind we
changed to the City
Hotelhttp://go2.wordpress.com/?id=725X1342site=sydneysddn.wordpress.comurl=http%3A%2F%2Fmaps.google.com%2Fmaps%3Ff%3Dq%26source%3Ds_q%26hl%3Den%26geocode%3D%26q%3D347%2BKent%2BStreet%26sll%3D-33.867139%2C151.207114%26sspn%3D0.066921%2C0.125313%26ie%3DUTF8%26hq%3D%26hnear%3D347%2BKent%2BSt%2C%2BSydney%2BNew%2BSouth%2BWales%2B2000%2C%2BAustralia%26z%3D17sref=http%3A%2F%2Fsydney.sddn.org.au%2F
(Kent
cnr with King Street). Please RSVP on the facebook
grouphttp://www.facebook.com/#!/event.php?eid=134145436608171.



See you there tomorrow.
-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney July Meeting - Moved to the 19th of July

2010-07-04 Thread Miguel Madero
*When*: July 19th, 2010, 6:00 pm to start 6:30 pm*
Where*: City Hotel
(maphttp://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=347+Kent+Streetsll=-33.867139,151.207114sspn=0.066921,0.125313ie=UTF8hq=hnear=347+Kent+St,+Sydney+New+South+Wales+2000,+Australiaz=17)
347 Kent Street (Corner of King Street). Second floor at the Kent Street
Living Room.
*Cost: *Free
*Prizes: *We have 1 Expression Suite License and a book to give away.
*What: *Networking, one presentation (TBA) and an open discussion.
*Please notice that we changed the usual date and venue. *
**

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Deploying RIA service for Silverlight 4

2010-06-24 Thread Miguel Madero
To avoid having to have the file there you probably need to change the IIS
extension mapping for .svc. From memory there's a checkbox to indicate that
IIS shouldn't verify that the file exists.

On Thu, Jun 24, 2010 at 3:06 PM, Vinay Tripathi
vinay.tripa...@nab.com.auwrote:

  Thanks for the input, I just managed to solve it, in the end I had to do
 few things

 1-  Make sure that the Authentication mode in Web.config matched to
 the one in IIS (in my case Windows + Integrated Windows Mode + Anonymous
 off)

 2-  Make sure all the ria related dlls are copied local so that they
 exist in bin directory if RIA is not installed on the server

 1- System.ComponentModel.DataAnnotations
 2- System.ServiceModel.DomainServices.EntityFramework
 3- System.ServiceModel.DomainServices.Hosting
 4- System.ServiceModel.DomainServices.Server

 3-  Make sure that you have a physical file exist in the client bin
 (the name of the file should be in this format –
 [Namespace]-[ServiceName].svc

 4-  Make sure you have following entry in this svc file

 %@ ServiceHost

  Service=Namespcse.ClassName


  Factory=System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory

 %





 Once that’s done,  all working fine for me JJJ * am a happy man again
 !*





 *Regards,*

 *_*

 *Vinay Tripathi | Senior Analyst Programmer | Specialised Finance |
 Wholesale Banking | National Australia Bank**
 *Level 31, 500 Bourke St Melbourne | Tel: +61 3 8641 4225 | Mobile: 0422
 287 628

 Email: vinay.tripa...@nab.com.au



 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Stephen Price
 *Sent:* Thursday, 24 June 2010 2:33 PM

 *To:* ozSilverlight
 *Subject:* Re: Deploying RIA service for Silverlight 4



 If you put a file on the server and its still not serving it out, sounds
 like a misconfig on IIS but can't help you what that might be. you've
 probably figured that much out already.

 On Thu, Jun 24, 2010 at 12:13 PM, Vinay Tripathi 
 vinay.tripa...@nab.com.au wrote:

 Sorry, I should have been much clearer, when I say dynamically created, it
 means the svc file doesn’t physically exist on the file system.  When my xap
 request some data from this svc, it creates a url in the format for
 http://mysite/page.html/ClientBin/Namspace-ServiceName.svc/binary/query



 Now I can browse to this svc url on my local machine which is using IIS5
 but I can’t browse to this svc on IIS 6.



 I also tried to drop a file with the same name which following text

 %@ ServiceHost
  Service=MyNamspace.AppDataService

  Factory=System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory
 %





 But no luck LL





 *Regards,*

 *_*

 *Vinay Tripathi | Senior Analyst Programmer | Specialised Finance |
 Wholesale Banking | National Australia Bank**
 *Level 31, 500 Bourke St Melbourne | Tel: +61 3 8641 4225 | Mobile: 0422
 287 628

 Email: vinay.tripa...@nab.com.au



 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Stephen Price
 *Sent:* Thursday, 24 June 2010 1:59 PM
 *To:* ozSilverlight
 *Subject:* Re: Deploying RIA service for Silverlight 4



 Can you browse to that service url in a browser? I'm pretty sure you should
 be able to but I'm not sure what you mean when you say dynamically created
 svc file. Do you mean its generated or something else?

 On Thu, Jun 24, 2010 at 10:18 AM, Vinay Tripathi 
 vinay.tripa...@nab.com.au wrote:

 Hi Guys,

 I have just ran into some issues when I am deploying my ria service to our
 test server which is Windows 2003 and IIS6. My Silverlight app runs fine
 locally on IIS 5 and Windows xp but as soon as I deploy it to our test box,
 I am getting 404 error on dynamically created svc file.

 Some information about setup:
 1- I have set the ria dlls to be copied locally as ria in not installed on
 Win 2003
 2- I am using Windows Authentication and IIS is set to Integrated Windows
 with Anonymous off

 Error message from fiddler:

 [EndpointNotFoundException]: The service
 #39;/ClientBin/National-eALOC-DataServices-Services-AppDataService.svc#39;
 does not exist.
   at
 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
 normalizedVirtualPath)
   at
 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String
 relativeVirtualPath)
   at
 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at
 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
 [HttpException]: The service
 #39;/ClientBin/National-eALOC-DataServices-Services-AppDataService.svc#39;
 does not exist.
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at
 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult
 

Re: Lots of bind/notify classes

2010-05-28 Thread Miguel Madero
I just saw everyone was alredy talking about PostSharp. Sorry I should read
the thread before replying.
BTW, it doesn't affect Blendability.

I can live with what Steven suggested, of having that extra line bit of code
for each property, but it gets a bit messy when you have derived properties.


On Fri, May 28, 2010 at 5:09 PM, Miguel Madero m...@miguelmadero.com wrote:

 For the VMs I'm using an AOP (using CastleDynamicProxy for Debug and
 PostSharp for Release) to automatically do this for me. Jonas 
 bloggedhttp://jonas.follesoe.no/AutomaticINPCUsingDynamicProxyAndNinject.aspxabout
  this approach. For PostSharp, I don't have a link, but I could send
 you a code that works for VS08 and SL3.

 Also in a somewhat related topic you might want to have a look at
 MicroModels http://www.paulstovell.com/micromodels-introduction.


  On Fri, May 28, 2010 at 4:18 PM, Greg Keogh g...@mira.net wrote:

*Look Dave, I can see you're really upset about this. I honestly think
 you ought to sit down calmly, take a stress pill, and think things over*– 
 HAL (2001)



 I was wondering if anyone has found a nice way of creating/managing lots
 of classes that are suitable for binding and implement
 INotifyPropertyChanged. As you know, you have to keep coding properties like
 this:



 public string CompanyName

 {

 get {return this.companyNameValue;}



 set

 {

 if (value != this.companyNameValue)

 {

 this.companyNameValue = value;

 NotifyPropertyChanged(CompanyName);

 }

 }

 }



 You can create a  simple base class to factor out the event, but not much
 else, as there is no way I know of to intercept any arbitrary property
 setter and add custom processing. Is that right?! Coding the above skeleton
 dozens or hundreds of times gets tedious and I’m hoping there’s a better
 way. I did consider using a T4 generator to spit out the classes, but that’s
 an obtuse way around the problem and will require extra research time (but I
 see others have done it already).



 I have dozens of existing classes with dozens of properties and I’d like
 to use them for binding, but I’d have to expand every property to be like
 the same above, which would be hell.



 Greg



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Lots of bind/notify classes

2010-05-28 Thread Miguel Madero
+1 for live templates. I like that it u can use a convention to name  
ur fields with the camelcase version of ur prop name.


The other thing consider is using an expression for the  
propertychanged method instead of passing a string. That makes  
refactoring easier.

RaisePropertyChanged(()=LastName);



Sent from my iPhone

On 28/05/2010, at 6:19 PM, Stephen Price step...@littlevoices.com  
wrote:


+1 Resharper. That's exactly my process for creating those  
properties. One day I'll actually write a propOp live template to do  
the rest of it for me. I think that everytime I create a property...


On Fri, May 28, 2010 at 2:32 PM, Steven Nagy  
steven.n...@readify.net wrote:
I might add, that even if you don’t want to introduce Post# then the 
 simple base class + Resharper combination is pretty good.


For example, your base class has some methods for raising property  
changed events. Then your ViewModel needs a property for first name.


You use the “prop” code snippet, this expands out very quickly to:



public string FirstName { get; set; }



Then ALT+Enter with Resharper lets you convert to backing field in  
total 3 keystrokes:




private string _firstName;

public string FirstName

{

get { return _firstName; }

set { _firstName = value; }

}



Then a single call to property changed:



private string _firstName;

public string FirstName

{

get { return _firstName; }

set { _firstName = value; PropertyChanged(FirstName); }

}



Not so bad, very minimal keystrokes.

Steven Nagy
Readify | Senior Developer

M: +61 404 044 513 | E: steven.n...@readify.net | B: azure.snagy.name



From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight- 
boun...@ozsilverlight.com] On Behalf Of Steven Nagy

Sent: Friday, 28 May 2010 4:25 PM
To: ozSilverlight
Subject: RE: Lots of bind/notify classes



Check out Post#:

http://www.sharpcrafters.com/postsharp/documentation/getting-started



Example:

http://ruskin-dantra.blogspot.com/2009/03/inotifypropertychanged-made-easier.html

Not sure if this works in Silverlight land though.

Steven Nagy
Readify | Senior Developer

M: +61 404 044 513 | E: steven.n...@readify.net | B: azure.snagy.name



From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight- 
boun...@ozsilverlight.com] On Behalf Of Greg Keogh

Sent: Friday, 28 May 2010 4:18 PM
To: 'ozSilverlight'
Subject: Lots of bind/notify classes



Look Dave, I can see you're really upset about this. I honestly  
think you ought to sit down calmly, take a stress pill, and think  
things over – HAL (2001)




I was wondering if anyone has found a nice way of creating/managing  
lots of classes that are suitable for binding and implement  
INotifyPropertyChanged. As you know, you have to keep coding  
properties like this:




public string CompanyName

{

get {return this.companyNameValue;}



set

{

if (value != this.companyNameValue)

{

this.companyNameValue = value;

NotifyPropertyChanged(CompanyName);

}

}

}



You can create a  simple base class to factor out the event, but not  
much else, as there is no way I know of to intercept any arbitrary  
property setter and add custom processing. Is that right?! Coding  
the above skeleton dozens or hundreds of times gets tedious and I’m  
hoping there’s a better way. I did consider using a T4 generator to  
spit out the classes, but that’s an obtuse way around the problem an 
d will require extra research time (but I see others have done it al 
ready).




I have dozens of existing classes with dozens of properties and I’d  
like to use them for binding, but I’d have to expand every property  
to be like the same above, which would be hell.




Greg




___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Long running animation

2010-05-28 Thread Miguel Madero
Greg,

You could probably use a simple DoubleAnimation using an EasingFunction.

On Tue, May 18, 2010 at 10:40 AM, Greg Keogh g...@mira.net wrote:

  Folks, I want to create a sort of screen saver effect where a shape moves
 slowly around a control. The path it follows is calculated at start time by
 mixing random Sin/Cos functions, then the shape will follow the (x,y)
 coordinates of the function over time. It’s like a moving parametric plot.



 I’m just not sure what coding technique to use for this effect. I’m
 guessing I’ll need a frame-based animation, which I’ve never used before. It
 looks like it “pushes” events to you and you respond and move your elements,
 but it’s not clear how you control the timing.



 I just want to run this idea past someone who’s done it before and can
 confirm if I’m on the right track or not. I’ll keep reading about
 frame-based animations in the meantime.



 Greg

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Validation on non visible datagrid

2010-05-11 Thread Miguel Madero
Has been a while without using CSLA, but have a look at IDataErrorInfo. I
think CSLA already uses it. Once you moved to IDEI it will be easier to move
to INDEI.
I don't think that would solve the issue the lock, but at least it would
solve the original issue you mentioned on this thread.

On Tue, May 11, 2010 at 3:13 PM, Stephen Price step...@littlevoices.comwrote:

 Silverlight 3 (at the moment, not sure when the schedule to upgrade to 4 is
 yet).
 We're using Data annotations though so will have a look at the Validator
 class. We're using CSLA so it was tricky getting it working.

 One thing I've noticed is that when you get an error in the datagrid it
 won't let you change the selected item, its like it locks the selected item
 as the first item that gets an error. I'm really hoping SL4 has a nicer
 friendlier datagrid. I've heard it is better so looking forward to the
 upgrade.


 On Tue, May 11, 2010 at 11:34 AM, Chris Anderson 
 christheco...@gmail.comwrote:

 How are you implementing validation?  Data annotations, or manually?  If
 you're using Silverlight 4 and doing it manually, then Miguel's response is
 probably best.  If you are using data annotations, then use the Validator
 class to validate the selected item in the DataGrid.  But in Silverlight 3
 + manually, I think you're out of luck (I think, but don't know for sure in
 terms of the DataGrid) - handling that sort of situation is just one of the
 big problems with the exception based validation model as it was implemented
 in Silverlight 2/3...

 Chris


   On 11 May 2010 12:59, Miguel Madero m...@miguelmadero.com wrote:

   Could you consider using INotifyDataErrorInfo or at least
 IDataErrorInfo? This scenario is trickier with ValidatesOnException.
 INotifyDataErrorInfo is the best way to do it and there're no changes
 needed to your bindings (as you need to for ValidatesOnException and
 IDataErrorInfo)

 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Validation on non visible datagrid

2010-05-10 Thread Miguel Madero
Could you consider using INotifyDataErrorInfo or at least IDataErrorInfo?
This scenario is trickier with ValidatesOnException.
INotifyDataErrorInfo is the best way to do it and there're no changes needed
to your bindings (as you need to for ValidatesOnException and
IDataErrorInfo)

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Validation on non visible datagrid

2010-05-10 Thread Miguel Madero
AFAIR SL3 supports IDataErrorInfo, which should also solve this problem.

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Keyup event

2010-05-07 Thread Miguel Madero
I'm intrigued now. Do you have a mani sample that you could share that
replicates this issue?


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Keyup event

2010-05-05 Thread Miguel Madero
Is the TextProperty databound? Is your object and IEditableObject? Could you
remove the binding just to see if there's still an issue?


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: DataGrids

2010-05-03 Thread Miguel Madero
Do you have more details on this issue?
Is the issue that the TextChanged handler is call once for each textbox?
What's the problem with the navigation?




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney April Meeting

2010-04-29 Thread Miguel Madero
Just a quick reminder about our May
meetinghttp://sydney.sddn.org.au/2010/04/29/sddn-sydney-may-meeting/.
Keep in mind that we changed the venue.
**
*When*: May 4th, 2010, 6:00 pm*
Where*: Crown Hotel
(maphttp://maps.google.com/maps?f=qhl=enq=162+Elizabeth+Street,+Sydney,+Australiaie=UTF8hq=hnear=162+Elizabeth+St,+Sydney+NSW+2000,+Australiaz=16iwloc=A)
in 162 Elizabeth Street Level 2.
*Cost: *Free, but please
RSVPhttp://www.facebook.com/event.php?inviteseid=105897519447617
*
What: *Networking, two talks and some gifts.
*Parking: *there’s cheap parking after 6:00 pm in the opposite corner of the
Hotel on Elizabeth Street.

This month we will have two real talks + a bonus lightning talk (if Chris
leaves some time). Paul Stovell http://www.paulstovell.com/ will talk
about Magellan http://www.paulstovell.com/magellan and Chris
Andersonhttp://chrisa.wordpress.com/will tell us what’s new in the
latest release of Silverlight. Also,
I http://www.miguelmadero.com/ will be doing a quick talk on Design for
Blendability going through some of the new features in Blend 4.

Please keep in mind that we’re NOT in Cynergy this month and we switched
back the meeting to our previous
venuehttp://maps.google.com/maps?f=qhl=enq=162+Elizabeth+Street,+Sydney,+Australiaie=UTF8hq=hnear=162+Elizabeth+St,+Sydney+NSW+2000,+Australiaz=16iwloc=Ain
Elizabeth street.

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Mouseclick in ListBox

2010-04-19 Thread Miguel Madero
Would it work if you just subscribe to the click event of the outter panel?
Can you send the code of your ItemTemplate.



On Mon, Apr 19, 2010 at 9:58 PM, danlaz...@arcamis.com wrote:

  Greg,

 Shame EventSetters don't seem to work.

 You've probably seen this already, but a quick google provided this
 possible semi-code-behind approach -
 http://forums.silverlight.net/forums/p/94976/292325.aspx


  *From:* Greg Keogh g...@mira.net
 *Sent:* Monday, April 19, 2010 9:49 PM
 *To:* 'ozSilverlight' ozsilverlight@ozsilverlight.com
 *Subject:* RE: Mouseclick in ListBox

  Not 100% sure if its the same in Silverlight but I think this should
 work



 ItemContainerStyle doesn’t seem to work and searches hint that the
 EventSetter isn’t available for Silverlight. I’ve seen a few pages were
 people use behaviours to get a similar effect. I’m studying them now.



 Which reminds me ... In my attempts to use binding everywhere possible I
 still haven’t figured out which is the most elegant way of binding commands
 (button clicks etc) so as to remove all event handlers from control
 code-behind.



 Some people use a wrapper class, some use attached properties, and they all
 argue with each other. Can anyone cut though the noise on this issue and
 recommend the best way of binding command handlers?



 Greg

 --

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: VHDs in Windows 7 (was RE: Silverlight 4)

2010-04-17 Thread Miguel Madero
I followed this
posthttp://strepas.spaces.live.com/blog/cns!8D365142BC4869AB!161.entry?wa=wsignin1.0sa=29424176
and
created a base VHD with Windows 7 with my configuration (e.g. taskbar at the
left, google as my homepage, etc) and common tools (e.g. Tortoise, GIT,
FileZilla, Skype, Live, VS08) and then everytime I need another OS, I just
create a new VHD based on that one, boot in 1 minute and start installing
the new software. It's awesome and I didn't noticed a performance hit.
If you plan to do it, use that post a step by step guide.


On Sat, Apr 17, 2010 at 10:18 AM, Greg Keogh g...@mira.net wrote:

   /Greg don't take offense, I just find it interesting enough to comment.



 My lawyers will contact you. I’m suing your for deformation.



 Greg

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Closing childwindow

2010-04-14 Thread Miguel Madero
The binding is updated on lost focus not on TextChanged, however you can
force this doing something like this on your keypress:
txt.GetBinding(TextBox.Text).UpdateSource();

On Wed, Apr 14, 2010 at 4:06 PM, Jordan Knight jordan.kni...@readify.netwrote:

  Maybe have a play with UpdateSourceTrigger and BindingExpression…




 http://msdn.microsoft.com/en-us/library/system.windows.data.binding.updatesourcetrigger(VS.95).aspx







 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Stephen Price
 *Sent:* Wednesday, 14 April 2010 3:57 PM
 *To:* ozSilverlight
 *Subject:* Closing childwindow



 Hey all,



 I've hit what seems to be a race condition, I've got a login usercontrol
 which uses a ChildWindow. when the user presses enter on the passwordbox I
 check if the key == key.enter and if the password is not blank I set the
 this.DialogResult = true; which seems to be closing the ChildWindow before
 the databinding has updated the underlaying property. Net result is if user
 presses enter then the password is null even if they have typed in a
 password.



 I've tried both keydown and keyup with same outcome. Any suggestions on how
 I can get it to close the window after the databinding has done its thing?
 Alternatively perhaps invoke the click event on the OK button . Any ideas?



 cheers,

 Stephen





 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Closing childwindow

2010-04-14 Thread Miguel Madero
I wrote a behavior to change the time the text gets update, it basically
subscribes to the TextChanged event and does the update explicitly.

On Wed, Apr 14, 2010 at 5:38 PM, Stephen Price step...@perthprojects.comwrote:

 Thanks guys,

 Bit of reading and playing and have got it working by doing exactly that.
 Wasn't sure why setting it to PropertyChanged wasn't working but it looks
 like the only two values (in SL3.0) are Explicit and default. There's only
 one place where I want the value updated (and it hasn't lost focus) so doing
 the UpdateSource is fine and works.

 thanks again! :)

 cheers,
 Stephen
  a

 On Wed, Apr 14, 2010 at 2:37 PM, Miguel Madero m...@miguelmadero.comwrote:

 The binding is updated on lost focus not on TextChanged, however you can
 force this doing something like this on your keypress:
 txt.GetBinding(TextBox.Text).UpdateSource();

   On Wed, Apr 14, 2010 at 4:06 PM, Jordan Knight 
 jordan.kni...@readify.net wrote:

Maybe have a play with UpdateSourceTrigger and BindingExpression…




 http://msdn.microsoft.com/en-us/library/system.windows.data.binding.updatesourcetrigger(VS.95).aspx







 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Stephen Price
 *Sent:* Wednesday, 14 April 2010 3:57 PM
 *To:* ozSilverlight
 *Subject:* Closing childwindow



 Hey all,



 I've hit what seems to be a race condition, I've got a login usercontrol
 which uses a ChildWindow. when the user presses enter on the passwordbox I
 check if the key == key.enter and if the password is not blank I set the
 this.DialogResult = true; which seems to be closing the ChildWindow before
 the databinding has updated the underlaying property. Net result is if user
 presses enter then the password is null even if they have typed in a
 password.



 I've tried both keydown and keyup with same outcome. Any suggestions on
 how I can get it to close the window after the databinding has done its
 thing? Alternatively perhaps invoke the click event on the OK button . Any
 ideas?



 cheers,

 Stephen





 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney April Meeting

2010-04-02 Thread Miguel Madero
*When*: April 6th, 2010, 6:00 pm*
Where*: Suite 1 Ground Floor. 439-441 Kent Street
(maphttp://www.google.com/maps?f=qsource=s_qhl=engeocode=q=Suite+1+Ground+Floor.+439-441+Kent+Streetsll=-33.866433,151.189163sspn=0.009283,0.017488ie=UTF8hq=hnear=1%2F439-441+Kent+St,+Sydney+New+South+Wales+2000,+Australiall=-33.872072,151.204705spn=0.009282,0.017488z=16).

*Cost: *Free, but please
RSVPhttp://www.facebook.com/event.php?inviteseid=105897519447617on
our Facebook
group http://www.facebook.com/event.php?inviteseid=105897519447617 to get
enough pizza.
*What: *Networking, two talks, some gifts, pizza and beers (BYO).

This month Jose
Fajardohttp://www.cynergysystems.com/blogs/page/josefajardoand Chris
Anderson http://chrisa.wordpress.com/ will talk about all the exciting
news released at Mix10. Jose has been playing with the Windows Phone for
some time and will tell us everything about the development experience.
Chris has been awake from the first day of Mix watching the live keynotes,
all the recordings, writing like crazy and playing with the new tools just
to give us the best summary of all of the new features in Silverlight 4.
Mix10 was probably the best Mix ever thanks to all the big announcements and
great content, so we’ll try to use it to make this one of the best SDDN
meetings. You can’t miss it.



-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: You can't set Global Styles right?

2010-03-31 Thread Miguel Madero
WinPhone is still SL3 :(
By the release it might be SL4 or SL5... hopefully in the next update of the
WinP tools this will change

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: You can't set Global Styles right?

2010-03-31 Thread Miguel Madero
I love my iPhone, but after playing a bit with the phone I can say it might
be a good alternative.

On Wed, Mar 31, 2010 at 2:51 AM, Stephen Price step...@perthprojects.comwrote:

 I remember buying a Windows Mobile phone some years ago, with excitement, I
 was looking forward to writing some apps for it. I think I wrote one. It
 calculated if it was cheaper to buy bottles of coke or cans of coke.

 I think I'll stick with my iPhone this time around. I've learned my
 lesson... just because you can write something doesn't necessarily mean you
 will. :)

 cheers,
 Stephen

 On Wed, Mar 31, 2010 at 4:46 PM, carl.scarl...@bankwest.com.au wrote:

  Surely Windows Mobile 7 will finally get me off my @ss and coding some
 Silverlight 4 (and XNA)…



 Carl.



 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Winston Pang 
 winstonp...@gmail.com
 *Sent:* Wednesday, 31 March 2010 4:36 PM
 *To:* ozSilverlight ozsilverlight@ozsilverlight.com
 *Subject:* Re: You can't set Global Styles right?



 I think these are one of the many gripes I had with 3 and my lack of
 motivation to write an actual SL app.

 I know I'll be frustrated as hell moving from WPF down to SL3, with these
 subtlties in the way. But hopefully SL4 becomes the starting path for me.

 On Wed, Mar 31, 2010 at 6:27 PM, Stephen Price step...@perthprojects.com
 wrote:

 You can use the Silverlight toolkit to apply your theme.xaml file and then
 put implicit styles in that theme file.



 Its funny, I was surprised you couldn't do it, had forgotten I was using
 the toolkit to apply my implicit styles. Glad its part of SL4.



 On Wed, Mar 31, 2010 at 2:53 PM, ross r...@perenni.com.au wrote:

 In WPF you can do this in say your app.xaml or in a merged dictionary:

  Application.Resources
Style TargetType=Button
  Setter Property=Background Value=Red/
/Style
  /Application.Resources

 And all buttons will be red unless the style is overridden.

 This doesn't work in Silverlight 3.  You have to name the style then
 reference it as a static resource:

  Style TargetType=Button x:Name=buttonStyle
  Setter Property=Background Value=Red/
/Style

 Button Style={StaticResource buttonStyle}/Button

 Of course you can do this via the UI in Blend as well.

 I think it might be possible to set implicit styles in Silverlight 4
 but haven't tried.


 On Wed, Mar 31, 2010 at 4:19 PM, Scott Barnes scott.bar...@readify.net
 wrote:
  In WPF you can set global styles but in SIlverlight it's
 right+click+Apply
  Style right? ie i'm not high in thinking that am I?
 
 
 
  J
 
 
 

  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

 ___


 This email has been scanned by the Bankwest Email Security System.
 ___


 ___
 Unencrypted electronic mail is not secure and may not be authentic.
 If you have any doubts as to the contents please telephone to confirm.

 This electronic transmission including any attachments is intended only
 for those to whom it is addressed. It may contain copyright material or
 information that is confidential, privileged or exempt from disclosure by 
 law.
 Any claim to privilege is not waived or lost by reason of mistaken 
 transmission
 of this information. If you are not the intended recipient you must not
 distribute or copy this transmission and should please notify the sender.
 Your costs for doing this will be reimbursed by the sender.

 We do not accept liability in connection with computer virus, data 
 corruption,
 delay, interruption, unauthorised access or unauthorised amendment.
 ___


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more 

Re: You can't set Global Styles right?

2010-03-31 Thread Miguel Madero
SL4 does this OOB. The ImplicitStyleManager was deprecated. SL4 is so close
to be released that I would suggest to use it for any new development even
if its just for this feature.

On Wed, Mar 31, 2010 at 1:27 AM, Stephen Price step...@perthprojects.comwrote:

 You can use the Silverlight toolkit to apply your theme.xaml file and then
 put implicit styles in that theme file.

 Its funny, I was surprised you couldn't do it, had forgotten I was using
 the toolkit to apply my implicit styles. Glad its part of SL4.


 On Wed, Mar 31, 2010 at 2:53 PM, ross r...@perenni.com.au wrote:

 In WPF you can do this in say your app.xaml or in a merged dictionary:

  Application.Resources
Style TargetType=Button
  Setter Property=Background Value=Red/
/Style
  /Application.Resources

 And all buttons will be red unless the style is overridden.

 This doesn't work in Silverlight 3.  You have to name the style then
 reference it as a static resource:

  Style TargetType=Button x:Name=buttonStyle
  Setter Property=Background Value=Red/
/Style

 Button Style={StaticResource buttonStyle}/Button

 Of course you can do this via the UI in Blend as well.

 I think it might be possible to set implicit styles in Silverlight 4
 but haven't tried.

 On Wed, Mar 31, 2010 at 4:19 PM, Scott Barnes scott.bar...@readify.net
 wrote:
  In WPF you can set global styles but in SIlverlight it's
 right+click+Apply
  Style right? ie i'm not high in thinking that am I?
 
 
 
  J
 
 
 
  ___
  ozsilverlight mailing list
  ozsilverlight@ozsilverlight.com
  http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
 
 
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: You can't set Global Styles right?

2010-03-31 Thread Miguel Madero
The dev experience is great. I started playing with some apps and it was a
breeze, having Silverlight experience it's really easy. You can do the UI in
blend with some nice animations and databing everything to a viewmodel, etc.


I didn't hear anything about the marketplace, the phones are coming out on
the holiday season, so we still have a lot of time to get ready... probably
a looong time before the phone hit the Oz market.

I saw a couple of guys developing on an enumulator using a multi touch
monitor, it's far from ideal, but it was nice to see.


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Prism, how to switch Regions

2010-03-24 Thread Miguel Madero
It's hard to say without looking at some code. Here are a couple of ideas:

* The region isn't properly registered or is misspelled.
* The AboutModule isn't subscribing to the event or the event in the
appropriate instance.


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Button in a datagrid cell

2010-03-09 Thread Miguel Madero
:)

On Tue, Mar 9, 2010 at 11:43 PM, Stephen Price step...@perthprojects.comwrote:

 I got it working in the end, and it did seem to be an absence of data
 causing the prob which makes sense. no data, no rows. :)

 I then had to figure out how to invoke the click event of a togglebutton. I
 endedup Toggling the togglebutton and changed the event from click event to
 Checked/Unchecked. I should blog it, there was next to no documentation on
 it.

 cheers,
 Stephen


 On Tue, Mar 9, 2010 at 7:55 PM, Miguel Madero m...@miguelmadero.com wrote:

 I imagine you're showing the Datagrid in the Panel for the UnitTest. Keep
 in mind that it uses a VirtualizingStackPanel, so if there's no visible
 area, I would expect that no rows will be created (althoug I would at least
 expect to have a DataGridRowsPresenter) so I'm not sure if that could be the
 issue. The other problem might be timing. Try queuing the with a delay of
 200ms after setting the ItemsSource.




 On Tue, Mar 9, 2010 at 5:31 PM, Stephen Price 
 step...@perthprojects.comwrote:

 Strange, Not getting a DataGridRowsPresenter or any children from the
 datagrid in the unit test. I think I need to look at what data is in it, and
 somehow mock it (so it's still a unit test and not an integration test). The
 viewmodel data object its binding to is pretty complicated. I just want
 enough data there for it to give me a row or two.

 Those examples are great, should help me out once I get something
 actually in the datagrid! Took a while for the penny to drop.

 cheers,
 Stephen

   On Tue, Mar 9, 2010 at 12:22 PM, Miguel Madero 
 m...@miguelmadero.comwrote:

   With the class that I send you you can use the Extension method
 GetChildren (for UIElements), use the recursive overload to find a
 ToggleButton, it should look something like

 datagrid.GetChildrenToggleButton(true);

 This will return an IEnumerable of all the ToggleButtons in the
 DataGrid. This might include the ones used for sorting in the Header. TO
 exclude them, hou could get to the DataGridRowsPresenter (you should only
 have one) and then find all the Toggles there.


 dataGrid.GetChildDataGridRowsPresenter(true).GetChildrenToggleButton();

 I'm not sure if I wrote a generic GetChild, but you could use


 dataGrid.GetChildrenDataGridRowsPresenter(true).First().GetChildrenToggleButton();


 If you don't use this helpers (or somethign similar), finding things in
 the tree is a mess and error prone with controls like the Datagrid that
 heavily use templates.


 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Button in a datagrid cell

2010-03-09 Thread Miguel Madero
I imagine you're showing the Datagrid in the Panel for the UnitTest. Keep in
mind that it uses a VirtualizingStackPanel, so if there's no visible area, I
would expect that no rows will be created (althoug I would at least expect
to have a DataGridRowsPresenter) so I'm not sure if that could be the issue.
The other problem might be timing. Try queuing the with a delay of 200ms
after setting the ItemsSource.




On Tue, Mar 9, 2010 at 5:31 PM, Stephen Price step...@perthprojects.comwrote:

 Strange, Not getting a DataGridRowsPresenter or any children from the
 datagrid in the unit test. I think I need to look at what data is in it, and
 somehow mock it (so it's still a unit test and not an integration test). The
 viewmodel data object its binding to is pretty complicated. I just want
 enough data there for it to give me a row or two.

 Those examples are great, should help me out once I get something actually
 in the datagrid! Took a while for the penny to drop.

 cheers,
 Stephen

   On Tue, Mar 9, 2010 at 12:22 PM, Miguel Madero m...@miguelmadero.comwrote:

   With the class that I send you you can use the Extension method
 GetChildren (for UIElements), use the recursive overload to find a
 ToggleButton, it should look something like

 datagrid.GetChildrenToggleButton(true);

 This will return an IEnumerable of all the ToggleButtons in the DataGrid.
 This might include the ones used for sorting in the Header. TO exclude them,
 hou could get to the DataGridRowsPresenter (you should only have one) and
 then find all the Toggles there.


 dataGrid.GetChildDataGridRowsPresenter(true).GetChildrenToggleButton();

 I'm not sure if I wrote a generic GetChild, but you could use


 dataGrid.GetChildrenDataGridRowsPresenter(true).First().GetChildrenToggleButton();


 If you don't use this helpers (or somethign similar), finding things in
 the tree is a mess and error prone with controls like the Datagrid that
 heavily use templates.


 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Button in a datagrid cell

2010-03-08 Thread Miguel Madero
Something useful is to do Linq Queries.


from b in element.GetChildrenButton
where b.Name == 'someName'  b.Tag = myExpectedValue
select b

You could even restrict it a bit, to discard other buttons in other places
(like toggle buttons in the header).

from r in dg.GetChildrenDataGridRow()
from c in r.GetChildrenDataGridCell()
from b in c.GetChildrenButton()
select b



On Tue, Mar 9, 2010 at 2:43 PM, Miguel Madero m...@miguelmadero.com wrote:

 Check in SilverlightSpy. Use Cotrol+Shift+Mouse Over to find it and look at
 the Visualtree, then use one of the GetChildren overloads in this class to
 find it


 public
 static class VisualTreeExtensions

 {

 public static IEnumerableDependencyObject GetChildren(this
 DependencyObject depObject)

 {

 int count = depObject.GetChildrenCount();

 for (int i = 0; i  count; i++)

 {

 yield return VisualTreeHelper.GetChild(depObject, i);

 }

 }

 public static DependencyObject GetChild(this DependencyObject depObject,
 int childIndex)

 {

 return VisualTreeHelper.GetChild(depObject, childIndex);

 }

 public static DependencyObject GetChild(this DependencyObject depObject,
 string name)

 {

 return depObject.GetChild(name, false);

 }

 public static DependencyObject GetChild(this DependencyObject depObject,
 string name, bool recursive)

 {

 foreach (var child in depObject.GetChildren())

 {

 var element = child as FrameworkElement;

 if (element != null)

 {

 if (element.Name == name) // If its a FrameworkElement check Name

 return element;

 var innerElement = element.FindName(name) as DependencyObject; // Try to
 get it using FindByName might be more efficient

 if (innerElement != null)

 return innerElement;

 }

 if (recursive) // If it's recursive search through its children

 {

 var innerChild = child.GetChild(name, recursive);

 if (innerChild != null)

 return innerChild;

 }

 }

 return null;

 }

 public static IEnumerableTypeToLookFor GetChildrenTypeToLookFor(this
 DependencyObject depObject, bool recursive)

 where TypeToLookFor : class

 {

 ListTypeToLookFor types = new ListTypeToLookFor();

 foreach (var child in depObject.GetChildren())

 {

 var found = child as TypeToLookFor;

 if (found != null)

 types.Add(found);

 else if (recursive) // If it's recursive search through its children only
 if it wasnt the type we were looking for

 types.AddRange(child.GetChildrenTypeToLookFor(recursive));

 }

 return types;

 }

 public static int GetChildrenCount(this DependencyObject depObject)

 {

 return VisualTreeHelper.GetChildrenCount(depObject);

 }

 public static DependencyObject GetParent(this DependencyObject depObject)

 {

 return VisualTreeHelper.GetParent(depObject);

 }

 public static T GetParentT(this DependencyObject depObject)

 where T: DependencyObject

 {

 var parent = depObject.GetParent();

 if(parent ==null || parent is T)

 return parent as T;

 return parent.GetParentT();

 }

 }



 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Button in a datagrid cell

2010-03-08 Thread Miguel Madero
With the class that I send you you can use the Extension method GetChildren
(for UIElements), use the recursive overload to find a ToggleButton, it
should look something like

datagrid.GetChildrenToggleButton(true);

This will return an IEnumerable of all the ToggleButtons in the DataGrid.
This might include the ones used for sorting in the Header. TO exclude them,
hou could get to the DataGridRowsPresenter (you should only have one) and
then find all the Toggles there.

dataGrid.GetChildDataGridRowsPresenter(true).GetChildrenToggleButton();

I'm not sure if I wrote a generic GetChild, but you could use

dataGrid.GetChildrenDataGridRowsPresenter(true).First().GetChildrenToggleButton();


If you don't use this helpers (or somethign similar), finding things in the
tree is a mess and error prone with controls like the Datagrid that heavily
use templates.


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Silverlight ComboBox ItemsSource won't OneWay bind

2010-03-04 Thread Miguel Madero
I think u r right that might be the issue, try dispatching the
notifications (and the coll notification should be enough)

On Thursday, March 4, 2010, Tony Wright ton...@tpg.com.au wrote:













 Actually it is an ObservableCollection of ListValue objects.
 ListValue probably confused you, but it is in fact our own class, not some 
 sort
 of List of items.



 Just a theory I have; perhaps I am calling PropertyChanged from
 the wrong thread? I would have thought that the PropertyChanged event would
 still have been available in the worker thread (it is an asynchronous call) 
 and
 would have raised an exception in that case. Not sure...







 From: ozsilverlight-boun...@ozsilverlight.com
 [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Miguel
 Madero
 Sent: Thursday, 4 March 2010 7:41 PM
 To: ozSilverlight
 Subject: Re: Silverlight ComboBox ItemsSource won't OneWay bind







 Short version, try using
 an ObservableCollection or creating a new enumerable instead of adding
 items to the same list.














 Hope this helps, I'm not sure if this is the issue since you
 mentioned that the event is null, which I didn't expect, so it might be
 something else.



















 Long version





 Keep in mind that the databinding framework won't refresh
 the target if the item is the same, which is what happens in your case. This 
 is
 my understanting of the DBFx.











 The DataBinding Fx gets the binding from the controls on
 load.





 The DBFx checks if the source (or any class on the
 PropertyPath), in this case your ListProvider implements INotifyPropertyChange
 and if it does it subscribes to it.





 The DBFx asks the source for a value and stores it (not
 exactly, but let's keep it simple)





 Thd DBFx sets the value of the appropriate property in the
 target (the control)





 The control updates its value











 Next time, something happen and the source (ListProvider)
 raises a property change notification.





 The DBFx gets the value of the property that changed and
 compares it witht he current value. If it's the same it doesn't set it (to
 avoid unnecessary changes in the UI).





     I think this is the main problem in your
 case, since you are returning the same instance.





 If the values are different, then it procceeds to set the
 value of the appropriate property in the target (the control)
 The control update its value

















 If you use an observable collection all the ItemsControl,
 the DataGrid et al will subscribe to the CollectionChanged event if the value
 for the ItemsSource implements ICollectionChanged. This isn't part of the
 DataBinding Framework and it's handled on each individual control (or a base
 class in some cases).























 Other things to try





 Set a breakpoint in the getter to see if it's called and
 look at the stack to see if the Databinding Fx is calling it





 Check the output window for BindingExpressionExceptions, you
 might have a type.





 Set the ThrowOnException property of the binding object to
 true to see if there's a problem getting the value (not sure about the name,
 but you'll find it). The DBFx will swallow all exceptions by default and in
 some instances it won't refresh faulted bindings (e.g. getting a value of a
 Property in the path failed, so it never subscribed to the IPropertyChanged of
 that object).


















 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com










-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Generating Office/PDF documents

2010-02-28 Thread Miguel Madero
If it's something simple Html could be enough. You could generate Html from
Silverlight and then save it as a file with a docx or xlsx extension.
If you could use a template, it might be simple to open an existing Office
File, set the values in the placeholders and save it back.
You could generate it from scratch, but it would require a good knowledge of
the format, which I don't think it's worth expending time on.

This post might give you some ideas of what you could do with SharpLib and
messing with the xml
http://www.dotnetsolutions.co.uk/blog/archive/2009/07/21/writing-ms-office-documents-from-silverlight-3/

About your first option, it's certainly possible to open a new window.

System.Windows.Browser.HtmlPage.Window.Navigate(myUrl,_blank);

That will do a get on a new window. This needs to be invoked in response to
a user action (e.g. a click). If you need to do a post instead of get, it's
possible using the HtmlBridge, let me know and I can send you a sample.


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney March Meeting

2010-02-23 Thread Miguel Madero
 SDDN Sydney March
Meetinghttp://sydney.sddn.org.au/2010/02/23/sddn-sydney-march-meeting/

*When*: March 2nd, 2010, 6:00 pm*
Where*: Suite 1 Ground Floor. 439-441 Kent Street.
*Cost: *Free, but please RSVP on our Facebook
grouphttp://www.facebook.com/event.php?eid=161975808061ref=mf#/group.php?gid=70337428577.

*What: *Networking, two talks, some gifts, pizza and beers (BYO).

This meeting we’re changing to a different venue.
Cinergyhttp://cynergysystems.com/will be hosting it, hopefully we
will have less interruptions this way and a
bit more space for more people. The best thing, it’s BYO and
Readifyhttp://readify.net/will sponsor some pizza to keep those
tummies full.

We will have one talk and open topics for lightning talks.

Readify will be offering a 10% discount for the Professional Silverlight 3
Workshophttp://readify.net/training-and-events/professional-series/professional-silverlight-workshop/in
Sydney on March 10th to March 12th to all of the attendees.

*WCF RIA Services in real world LOB application*
Sergey Klementiev

How to develop large scale LOB application with latest bits of WCF RIA
Services. Problems, solutions, tips and tricks.

Sergey is a Senior Developer at Readify. He has been working for over one
year on the mid tier of Silverlight Applications so he knows it all when it
comes to the best way of saving and retrieving data efficiently.


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: RIA Domain Services and required dependencies

2010-01-26 Thread Miguel Madero
You need a custom validator.
http://blogs.microsoft.co.il/blogs/bursteg/archive/2009/04/14/net-ria-services-custom-validation.aspx




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Accessing page resources from user controls

2010-01-22 Thread Miguel Madero
I don't know how could you access is through binding, but not code behind.
If it's null, that means your binindgs won't work either.

I'd suggest to only have one ViewModel per View, that's exactly what the
ViewModel is, the Model specific to this View. I would try to avoid
accessing other ViewModels from our View.


Also keep in mind that if you add the ViewModels in App.Resources and they
have a transient lifetime, you would have to explicitly removed them to
avoid memory leaks.


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Xaml dependency

2010-01-05 Thread Miguel Madero
Stephen,

Which project are you working on? I don't see blondes and brunettes unless,
I only see textboxes and other controls.


On Wed, Jan 6, 2010 at 11:46 AM, Stephen Price step...@perthprojects.comwrote:

 As Carl has already said, , and as you have discovered, dragging things
 around in the designer doesn't always put the object where you actually want
 it in the visual tree. Dragging objects around will move the position of the
 object by changing the top and left properties (if in a canvas) or by
 changing margins (if in a grid). Its possible, but difficult to get the
 object into the correct container. I think there are some keys such as
 holding Alt while dragging to move the dragged object into a container.
 Its way easier to drag the object within the objects pane (Objects and
 Timeline pane), and modifying properties in properties pane.
 My process of adding a new object, I select the target container in the
 object pane then double click the object in the toolbox that I want to add.
 This will add the object as the last object within the selected container.
 then drag it (can drag it anywhere) up or down the visual tree.

 I don't think you are doing anything wrong, do what is fastest. I sometimes
 put Blend in split view and copy and paste, or modify stuff in the text
 view. Somethings are quicker if you look at the XAML. Grids columns and rows
 for example is buried away three or so clicks away.

 As you use Blend more you will become more familiar with it and learn what
 works best. After a while you don't see the XAML, you see blondes,
 brunettes... ;)

 cheers,
 Stephen

   On Wed, Jan 6, 2010 at 8:05 AM, Vishwanath Humpy 
 vhu...@rediffmail.comwrote:

  Who can help me?

 Every time I use expression blend I find myself editing the xaml by hand
 to quickly do what I want.

 I have just started sketchflow prototypes.  I needed to add a tabcontrol /
 tabitem / listview / buttons.  I try hard using the designer but nothing
 ends up where it should be and things end up in wrong container and I fix it
 by editing the xaml.  This is ok because I like xaml.  But I should be able
 to use the designer I think.

 Is there any good training resource for self teaching?  Or if you are good
 at xaml is it best to just keep doing it they way I have been?


 http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline@middle?
 ___

 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Simple Silverlight File Upload with Clientside Resizing and Atomic Upload (via a single zip file)

2009-12-14 Thread Miguel Madero
Thanks I'll take a look on the weekend.

Did you do the SharpZipLib port?



On Tue, Dec 15, 2009 at 11:37 AM, Martin Murphy 
martin.mur...@whiteboard-it.com wrote:

 Hey Miguel.  The compression is done using a port of SharpZipLib which has
 been refactored to work as a silverlight assembly.

 The unit test in the project will show you how it's done.  There is nothing
 preventing it from being used with other files types however my primary goal
 was for image up load which does the resize on the fly.  That could be
 optional though.

 It's not really a tool just yet.  The Zipping part is done though have a
 look at the Unit Test in the project for an example.

 On Mon, Dec 14, 2009 at 5:48 PM, Miguel Madero m...@miguelmadero.comwrote:

 Martin,

 That's a great tool. I was looking for something like this a while ago.
 I'll keep an eye on it.

 How do you do the compression on the client? Is it something generic that
 could be done for any file type? For example if I need to upload multiple
 word documents and PDFs?




 On Tue, Dec 15, 2009 at 9:51 AM, Martin Murphy 
 martin.mur...@whiteboard-it.com wrote:

 I started a project.
 http://github.com/soitgoes/Silverlight-Multiple-Jpeg-Uploader

 I've used the other Silverlight uploader but one problem I aim to
 solve with this is if the resize is done on the client side then it's
 really important to get the thumbnail as well as the main image up to
 the server.  So in order to make it atomic I'm zipping them into a
 single file before the upload.  This also should make for a much
 better experience on the progress bar since it's a single file with a
 known size.

 I have the unit test done for resizing and zipping done.

 If anyone is interested in assisting on this project or has any other
 ideas please let me know.

 Primarily I could use some assistance with the XAML design

 Thanks again.

 --
 Martin Murphy
 Whiteboard-it
 (205) 910-0720

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




 --
 Martin Murphy
 Whiteboard-it
 (205) 910-0720

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Re: Our new silverlight site

2009-12-01 Thread Miguel Madero
I just noticed that you integrated 3 videos with the deep zoom. It looks
cool.

On Wed, Dec 2, 2009 at 12:59 AM, Miguel Madero m...@miguelmadero.com wrote:

 Wow that's nice :)



   On Tue, Dec 1, 2009 at 7:30 PM, rjemp...@gmail.com wrote:

  The company history page is another interesting use of deep zoom :
 http://www.michaelhill.com.au/#CompanyHistory

 Click the pause button to skip the video


 On 01/12/2009 10:45am, Miguel Madero m...@miguelmadero.com wrote:
   Thanks for sharing.
 
 
 
 
 
 
 
 
  What do you mean by Application lifetime objects / client side services?

 
 
  It's nice the way you use deepzoom. Altough I was thinking I could zoom
 in out of the products and then I noticed that it was mainly to preload.
 That's nice.
 
 
  It would be good to know a bit more on some topics, for example
 security, how you used deep zoom, SEO and analytics.
 
 
 
 
 
 
 
 
 
 
 
  I agree with most of the comments around navigation, slot transitions
 and movies. It's some valuable feedback.
 
 
 
 
 
 
  Miguel.
 
 
 
 
 
 
 
 
  On Tue, Dec 1, 2009 at 11:00 AM, Tatham Oddie tat...@oddie.com.au
 wrote:
 
 
 
 
 
 
 
 
  Sounds like some really cool technical work you’ve done!
 
 
 
  From an interaction perspective, Nick’s response correlates with Twitter
 as well:
 
 
 
 
 
 
 
 
 
 
 
  Thanks,
 
 
 
  Tatham Oddie
 
  au mob: +61 414 275 989, us cell: +1 213 422 7068, skype: tathamoddie,
 landline: +61 2 8011 3982, fax: +61 2 9475 5172
 
 
 
  my business: tixi.com.au – Ticketing without the dramas
 
 
 
 
 
 
 
 
 
 
 
 
  From: ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Nick Randolph
 
 
  Sent: Tuesday, 1 December 2009 10:55 AM
  To: ozSilverlight
  Subject: RE: Our new silverlight site
 
 
 
 
 
 
  Ross
 
 
 
 
 
 
 
 
 
 
  Since as you said this was a bit of a “cheap marketing email” I’m going
 to retaliate by providing what I hope will be constructive criticism:
 
 
 
 
  -  I hate menus that disappear! The way the menus disappear
 completely makes the site hard to use.  I flipped windows whilst the site
 was loading (sorry short attention span) and when I came back the menus had
 already gone – took me a while to find them.
 
 
 
 
  -  The site’s infuriatingly slow – all the ui transitions are
 too slow for my liking.
 
 
 
 
  -  There are some positioning issues whereby the close icon is
 half cut off by the edge of the screen
 
 
 
 
  -  When you go into looking at one of the products (
 http://www.michaelhill.com/#ProductList?ProductMenuItemId=8ProductMenuSubItemId=ParentScreenId=3)
 it’s then not clear where to go from there.
 
 
 
 
 
  General feedback – visually it’s quite pleasing. Navigation leaves quite
 a bit to be desired.
 
 
 
 
 
  Nick Randolph | Built To Roam | Microsoft MVP - Device Application
 Development | +61 412 413 425
 
 
  The information contained in this email is confidential. If you are not
 the intended recipient, you may not disclose or use the information in this
 email in any way. Built To Roam does not guarantee the integrity of any
 emails or attached files. The views or opinions expressed are the author's
 own and may not reflect the views or opinions of Built To Roam.
 
 
 
 
 
 
 
 
 
 
  From: ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Ross McKinnon
 
 
  Sent: Tuesday, 1 December 2009 9:51 AM
  To: ozsilverlight@ozsilverlight.com
  Subject: Our new silverlight site
 
 
 
 
 
 
 
 
  Hi all, as you guys aren’t exactly our target market, this can’t be
 considered a cheap marketing email to promote our new website, but more a
 demonstration of how silverlight can be utilized to create a global retail
 branding site.
 
 
 
 
 
 
 
  On Monday, we released our new website which is written completely in
 silverlight. If you get a chance to look at the site (www.michaelhill.com)
 it has a number of interesting technical features that I would like to point
 out to you all.
 
 
 
 
  1.  Heavy integration of smooth streaming video.
 
 
  2.  Deep zoom for the product carousel.  Significant bandwidth
 savings are made by the in-built lazy loading of deep zoom product images,
 plus the natural friction effect.
 
 
 
 
  3.  Integrated video inside a deep zoom image  (company history
 section).
 
 
  4.  Search engine optimisation.
 
 
  5.  Deep linking :
 
 
  a.  From search engine optimisation links
 
 
  b.  Send to friend links
 
 
  c.  Browser integration with forward/back buttons
 
 
  d.  Sets the browser/tab title
 
 
  e.  Appropriate link / title for adding to browser favourites.
 
 
  6.  Client side state.  This reduces load on server such that when a
 user visits a page once, then navigates away / back, the application doesn’t
 have to fetch data from the server.  This is difficult to do in a
 traditional web application.
 
 
 
 
  7

Re: Our new silverlight site

2009-12-01 Thread Miguel Madero
We were talking about this yesterday at the SDDN meeting. Netflix did a nice
work on providing this seamless experience. They customized the SL
installation experience so the user doesn't have to know that they're
installing SL, they're just 'starting' their media player.
If the end user doesn't know the name of the underlying technology that
means you did a good work on rebranding it.

We have the same scenario with many desktop apps. With some apps it's
evident (for us geeks) that it's .NET or Java Swing (guiiu), but the mom and
dad type of user can't care less if it's Delphi as long as it looks good and
works.

AdobeAir apps usually do a poor job in this area. I'm constantly distracted
about it. Why do I have to update Adobe Air when I'm trying to use [Insert
here your favoirte Twitter Client]?




On Wed, Dec 2, 2009 at 10:28 AM, Darren Neimke darren.nei...@live.comwrote:

 And why would/should they want to know.  I just want my music!  For
 example, I could care less what technology this site uses:

 http://listen.grooveshark.com/

 It could just as easily be built using any one of several technologies.
 It's the user experience (how they've implemented it) that is impressive.




 Kind Regards,

 Darren Neimke
 darren.nei...@live.com




 --
 From: jordan.kni...@readify.net
 To: ozsilverlight@ozsilverlight.com
 Date: Wed, 2 Dec 2009 10:23:19 +1100

 Subject: RE: Our new silverlight site

  I find mum and dad users don't even know what tech they are using. Do
 you have flash installed?. What?. Can you play youtube videos?



 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Shane Morris
 *Sent:* Wednesday, 2 December 2009 8:48 AM
 *To:* ozSilverlight
 *Subject:* RE: Our new silverlight site



 I don’t find that sad. Average users should not have to think about whether
 something is Flash or Silverlight. We think the technology is cool, users
 should just think the site is cool. Hopefully users today don’t say ‘nice
 PHP web site’? J



 Shane



 *Shane Morris*  |  User Experience Evangelist  |  Microsoft Australia  |
 shan...@microsoft.com  |  blogs.msdn.com/shanemo







 *From:* ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Winston Pang
 *Sent:* Wednesday, 2 December 2009 7:51 AM
 *To:* ozSilverlight
 *Subject:* Re: Re: Our new silverlight site



 One thing I find sad about all this stuff is, the average user is going to
 say Nice Flash website. :(

 On Wed, Dec 2, 2009 at 1:10 AM, Miguel Madero m...@miguelmadero.com wrote:

 I just noticed that you integrated 3 videos with the deep zoom. It looks
 cool.



 On Wed, Dec 2, 2009 at 12:59 AM, Miguel Madero m...@miguelmadero.com
 wrote:

 Wow that's nice :)





 On Tue, Dec 1, 2009 at 7:30 PM, rjemp...@gmail.com wrote:

  The company history page is another interesting use of deep zoom :
 http://www.michaelhill.com.au/#CompanyHistory


 Click the pause button to skip the video


 On 01/12/2009 10:45am, Miguel Madero m...@miguelmadero.com wrote:

  Thanks for sharing.
 
 
 
 
 
 
 
 
  What do you mean by Application lifetime objects / client side services?
 
 
  It's nice the way you use deepzoom. Altough I was thinking I could zoom
 in out of the products and then I noticed that it was mainly to preload.
 That's nice.
 
 
  It would be good to know a bit more on some topics, for example security,
 how you used deep zoom, SEO and analytics.
 
 
 
 
 
 
 
 
 
 
 
  I agree with most of the comments around navigation, slot transitions and
 movies. It's some valuable feedback.
 
 
 
 
 
 
  Miguel.
 
 
 
 
 
 
 
 
  On Tue, Dec 1, 2009 at 11:00 AM, Tatham Oddie tat...@oddie.com.au
 wrote:
 
 
 
 
 
 
 
 
  Sounds like some really cool technical work you’ve done!
 
 
 
  From an interaction perspective, Nick’s response correlates with Twitter
 as well:
 
 
 
 
 
 
 
 
 
 
 
  Thanks,
 
 
 
  Tatham Oddie
 
  au mob: +61 414 275 989, us cell: +1 213 422 7068, skype: tathamoddie,
 landline: +61 2 8011 3982, fax: +61 2 9475 5172
 
 
 
  my business: tixi.com.au – Ticketing without the dramas
 
 
 
 
 
 
 
 
 
 
 
 
  From: ozsilverlight-boun...@ozsilverlight.com [mailto:
 ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Nick Randolph
 
 
  Sent: Tuesday, 1 December 2009 10:55 AM
  To: ozSilverlight
  Subject: RE: Our new silverlight site
 
 
 
 
 
 
  Ross
 
 
 
 
 
 
 
 
 
 
  Since as you said this was a bit of a “cheap marketing email” I’m going
 to retaliate by providing what I hope will be constructive criticism:
 
 
 
 
  -  I hate menus that disappear! The way the menus disappear
 completely makes the site hard to use.  I flipped windows whilst the site
 was loading (sorry short attention span) and when I came back the menus had
 already gone – took me a while to find them.
 
 
 
 
  -  The site’s infuriatingly slow – all the ui transitions are too
 slow for my liking

Re: Silverlight 3 getting 407 proxy auth errors?

2009-11-30 Thread Miguel Madero
Jon,

For what I know by default it will use the browser's network stack unless
you go out of browser or explicitly change to use the other one. However,
what you're experiencing looks like symptoms of using the new stack.

Check this post:
http://developers.de/blogs/damir_dobric/archive/2009/08/22/soap-faults-and-new-network-stack-in-silverlight-3.aspx

To enable it use this line of code:
bool registerResult = WebRequest.RegisterPrefix(http://;,
WebRequestCreator.ClientHttp);

He explains the difference and the drawback, look at the last paragraph.
Silverlight 3 provides the “client HTTP stack” which, unlike the “browser
HTTP stack”, allows you to process SOAP-compliant fault messages. However, a
potential problem of switching to the alternative HTTP stack is that
information stored by the browser (such as authentication cookies) will no
longer be available to Silverlight, and thus certain scenarios involving
secure services might stop working, or require additional code to work. For
more information, see
HttpCookieContainerBindingElementhttp://msdn.microsoft.com/en-us/library/system.servicemodel.channels.httpcookiecontainerbindingelement%28VS.95%29.aspx.

*I figured out that windows authentication which has been used in my
services does not work anymore by using of new network stack. By default
service proxies at the client do not send required authentication headers.*



On Mon, Nov 30, 2009 at 4:39 PM, John OBrien j...@soulsolutions.com.auwrote:

  Has anyone had this problem before?

 I have a Silverlight 2 application running fine, fully upgraded to
 Silverlight 3 and now from behind a proxy server all my WCF requests are
 getting 407 errors, the old Silverlight 2 site still work fine.



 The client is pretty sure their proxy is using AD to authenticate access to
 the internet and my application is using forms authentication to allow
 access to the asp.net page hosting the XAP and the service has this
 attribute:

 [AspNetCompatibilityRequirements(RequirementsMode =
 AspNetCompatibilityRequirementsMode.Allowed)]



 My guess is it’s something with the new network stack in Silverlight3 and
 authentication but I’m not finding much info and can’t replicate the
 environment from here.



 Hoping someone here has seen this before.

 John.

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney December Meeting

2009-11-23 Thread Miguel Madero
Guys,

Again, just a quick reminder. We're meeting the 1st of December at the Crown
Hotelhttp://maps.google.com/maps?f=qhl=enq=162+Elizabeth+Street,+Sydney,+Australiaie=UTF8hq=hnear=162+Elizabeth+St,+Sydney+NSW+2000,+Australiaz=16iwloc=A.
Please RSVP 
herehttp://www.facebook.com/profile.php?v=feedstory_fbid=180881524442id=529202837#/event.php?eid=183387622508ref=mf.
You can see more information at sydney.sddn.org.au. This month we've a
special guest, Clinton Ennis, a C# guy trapped on the body of a Flex
developer. Clinton will tell us how they work on the Adobe world. Also Chris
Anderson will give us all the details about Silverlight 4.

Hope to see you there.
-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Silverlight 4.0 beta

2009-11-23 Thread Miguel Madero
Either MS needs to slow down (which they might after releasing 4.0 (mere
speculation)) or book publishers need to shorten their cycles. Those 3-4
months from submissions is just too much. Add that to all of the work
required from the author and is really hard to keep up the pace :(

The good part is that we're getting a lot of good and valuable information
from Blogs and other sites. However I still think technical books are a
great resource, specially for people getting to a technology for the first
time. Usually on blogs you don't get from A to Z.



On Mon, Nov 23, 2009 at 9:21 PM, Chris Anderson christheco...@gmail.comwrote:

 As a book author for Silverlight, believe me it's hard!  Unfortunately I
 don't have inside information either - so I'm left guessing as much as
 everyone else with when and what is coming.  Originally my book
 (Professional Business Applications in Silverlight for Apress) was due in
 December (for Silverlight 3), then it needed to be done by September to be
 viable.  It takes several months (about 3-4) from submission to be on
 shelves, making it nearly impossible with these rapid release cycles.  As a
 developer I love the constant feature additions and rapid growth of
 Silverlight, but as an author it's nigh on impossible.

 PS. I just looked at the top book from the picture you provided, and the
 top one is mine.  But it's not coming in that form (surprised it's still
 there) - there will be a Silverlight 4 version though (if I can write it in
 time before Silverlight 5 is announced!).  Unfortunately about 15,000 words
 (plus lots of code) of what I had written has now become redundant with the
 Silverlight 4 features announced.  I have to admit that really stings - all
 that work to be scrapped.

 Chris Anderson


 2009/11/23 Craig Dunn craig.d...@conceptdevelopment.net

 I can't help but feel overwealmed with their release cycles. :)

 Imagine if you were a book author! SL4 could be out before these SL3 books
 reach the shelves...

 http://twitpic.com/q21be

 cd

 On Mon, Nov 23, 2009 at 5:24 PM, Stephen Price 
 step...@littlevoices.comwrote:

 Is anyone playing with the Silverlight 4.0 beta?
 How come everyone here is so quiet about it? I'm on semi holidays in
 Canberra and missed the announcement. Thought I would have seen some
 discussion on it here tho.

 Shame on you. :p

 In particular, this new feature has caught my eye... The .NET Common
 Runtime (CLR) now enables the same compiled code to be run on the desktop
 and Silverlight without change.

 If I read that correctly then I should be able to do normal unit testing
 (ie using normal test runners such as Resharper, nUnit, TestDriven.net etc).
 Can anyone confirm that?

 Some pretty cool new features. I can't help but feel overwealmed with
 their release cycles. :)

 cheers,
 Stephen

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight



 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Silverlight for Embedded

2009-10-16 Thread Miguel Madero
On our previous meetings in Sydney, we have been talking about this. I found
more information here.
http://geekswithblogs.net/WindowsEmbeddedCookbook/archive/2009/10/01/silverlight-for-embedded-tutorial.aspx

The main drawback is that is C++. C# or VB.NET aren't supported. This is
enough to keep me away from it ATM :(

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


SDDN Sydney October's Meeting

2009-10-03 Thread Miguel Madero
This month we’ll have three talks about tools.

   - XAML Power Toys – Chris Anderson http://chrisa.wordpress.com/
   - Html to XAML Converter – Jason Schluter http://www.blender3dlive.com/
   - Telerik Controls – Miguel Madero http://www.miguelmadero.com/

As usual we will meet the first Tuesday of the month (October 6th) at the
Crown Hotel (162 Elizabeth St). We’ll get there at 6:00 pm to start some
open discussions and get a meal, to go on with the talks from 6:30 to 8:30
and then continue with the Networking part of the event.

Please confirm your assistance through the mail list (
ozsilverlight@ozsilverlight.com) or the facebook
grouphttp://www.facebook.com/editevent.php?guestsnewm=2eid=139696396129#/event.php?eid=139696396129index=1
.



-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Mocking frameworks...

2009-09-28 Thread Miguel Madero
Hi Stephen,

I've been using MoQ for the Desktop runtime. For the SL runtime I only did
manual mocking/stubbing/faking/whatever, since until recently there were not
options.

I really like MoQ and now that it works for SL I'd consider using it,
however now I'm getting my ViewModels, Converters, etc to compile for the
Desktop Runtime so I can test them in the build server using MSTest or XUnit
instead of the Silverlight Test Runner and when it comes to mocking
frameworks, I can use anything avaialble for the desktop (but I've only used
MoQ).

I had a similar issue when I was working with the .NET Compact Framework,
there was no Test Runner, so we needed to make our model and controllers
compile for the desktop and run them there. Then we got a test runner from
patterns and practices, but we never got to integrate it with the build
server, when VS08 came out, we had a new test runner integrated with the
IDE, but it was just too slow (as well as the one from PP) that we just got
back to running the tests in the Desktop Runtime.

There's somethign exciting about seeing your unit tests run in the real
device (or in the Browser in the case of SL), but after you get over that
excitment, you just realzie isn't practical (I'm talking mainly for the CF
and SL test runnner from MS, I'm not sure if the other ones are as good as
the desktop ones)

There're some subtle differences that you can encounter when testing in
different runtimes/oss/environments, so in the CF we tried to keep both test
projects in sync so when we didn't have time we ran the tests for the
desktop runtime and eventually we run  the same tests in the CF. However
after some time we found that this wasn't adding any value for us (apart
from some umanaged code tests that we couldn't mock) and we decided to have
CF tests only for thigns with platform dependencies.

Something similar applies for Silverlight, altough I've found that there're
way less dependencies to the SL Runtime (or are easier to abstract) than
what we had with the CF. Do you find scenarios where you really need to run
your code in the SL Runtime? Serialization is one of the few ones that
I've found



On Tue, Sep 29, 2009 at 12:17 PM, Stephen Price step...@littlevoices.comwrote:

 Hey all,
 I've used a little bit of TypeMock (I have a license) but due to the cost
 of the build server license it's put off projects I'm on from using it. I
 was just wondering what the most popular mocking frameworks out there are.
 I've used a little bit of Rhinomocks for Silverlight, and will be looking at
 Rhinomocks for .net. Not looked at Nmock yet, was wondering what everyone
 else are using and rave about.

 thx
 Stephen

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Wait for multiple Async calls to finish (SL3)

2009-08-12 Thread Miguel Madero
Ali is going to give a talk on the Rx framework at the next SDDN Event in
Sydney :)

On Wed, Aug 12, 2009 at 7:48 PM, Jordan Knight jordan.kni...@readify.netwrote:

  I had a quick look at this the other day and when I compiled up the
 reactive dll, the classes were different that in the example:



 ObservableExtensions

 DoAsync

 Didn't exist?



 I didn't really examine where I was going wrong in any great depth, so If
 you have any success I'd be interested to hear about it :)





 *Jordan Knight*
 Readify | Senior Consultant
 Lead Trainer - Rich Interactive Media

 Suite 408 LifeLabs Building | 198 Harbour Esplanade | Docklands | VIC 3008
 | Australia

 M: +61 403 532 404 | E: jordan.kni...@readify.net | W:
 http://www.readify.net | B: http://blog.webjak.net









 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Jake Ginnivan

 *Sent:* Wednesday, 12 August 2009 6:32 PM
 *To:* OzSilverlight@ozsilverlight.com
 *Subject:* RE: Wait for multiple Async calls to finish (SL3)




 http://themechanicalbride.blogspot.com/2009/07/introducing-rx-linq-to-events.html



 Have a look at this, the Silverlight team use it in their unit testing. I
 still have not used it yet, but really keen to dive in and use this stuff.



 *Jake Ginnivan*

 IT Coordinator



 ioGlobal Pty Ltd.

 ISO 9001 Quality Certified

 *Resource **Analytics**  Data Systems **Automation***

 T:  +61 8 6555 6510

 F:  +61 8 6311 3256

 M:  +61 403 846 400

 E:  *jake.ginni...@ioglobal.net***

 www.ioglobal.net



 *From:* OzSilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Asheesh Soni
 *Sent:* Wednesday, 12 August 2009 3:49 PM
 *To:* OzSilverlight@ozsilverlight.com
 *Subject:* Wait for multiple Async calls to finish (SL3)



 Any one knows a better / cleaner way to do this than:

 http://silverlight.net/forums/t/12437.aspx
 http://silverlight.net/forums/t/72631.aspx

 I have already dumped daisy-chaining of calls in favor of multiple async
 calls with a boolean flag for each.
 After calling all the async operations, I am using a DispatcherTimer ticker
 event to poll if all the flags have been set.
 Works like a charm, and a huge improvement in performance and readability
 over the chaining. But still not the perfect solution.

 I couldn't get this one to work:

 http://stackoverflow.com/questions/811855/threading-multiple-async-calls-silverlight
 The thread sleeps for ever on the 1st .waitone call.

 Any ideas?
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
   --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Wait for multiple Async calls to finish (SL3)

2009-08-12 Thread Miguel Madero
Attached is a brief example on how to do this using the WaitHandle in the
IAsyncResult returned by each async method.

The code is simple. In Silverlight I just do 10 service call that will add
an item to a ListBox. I'll wait until all the service calls end to add
another message to the list (this has to run in a different thread to avoid
blocking the UI). Also note that adding items to the list have to be done
through the Dispatcher sicne they will modify the UI. There're a bunch of
lamdas, but it's easy to follow.


 public MainPage()
{
InitializeComponent();
var results = new ObservableCollectionstring();
var asyncResults = new ListIAsyncResult();
resultsList.ItemsSource = results;
var service = new Service1Client() as Service1;

1.To(10).Do(i=
asyncResults.Add(service.BeginDoWork(ar =
Dispatcher.BeginInvoke(() =
results.Add(String.Format(Call {0} finished: {1}, i,
service.EndDoWork(ar,
null))
);

new Thread(()=
{
asyncResults.ForEach(a = a.AsyncWaitHandle.WaitOne());
Dispatcher.BeginInvoke(() = results.Add(Everything
finished));
}).Start();
}

Just to help with the testing, this is the service

public class Service1
{
private const int maxMilliSecs = 500;
private const int minMillisSecs = 100;
[OperationContract]
public int DoWork()
{
int millisSecsToWait = new Random().Next(maxMilliSecs -
minMillisSecs) + minMillisSecs;
Thread.Sleep(millisSecsToWait);
return millisSecsToWait;
}
}



On Wed, Aug 12, 2009 at 9:21 PM, Miguel Madero m...@miguelmadero.com wrote:

 Ali is going to give a talk on the Rx framework at the next SDDN Event in
 Sydney :)

 On Wed, Aug 12, 2009 at 7:48 PM, Jordan Knight 
 jordan.kni...@readify.netwrote:

  I had a quick look at this the other day and when I compiled up the
 reactive dll, the classes were different that in the example:



 ObservableExtensions

 DoAsync

 Didn't exist?



 I didn't really examine where I was going wrong in any great depth, so If
 you have any success I'd be interested to hear about it :)





 *Jordan Knight*
 Readify | Senior Consultant
 Lead Trainer - Rich Interactive Media

 Suite 408 LifeLabs Building | 198 Harbour Esplanade | Docklands | VIC 3008
 | Australia

 M: +61 403 532 404 | E: jordan.kni...@readify.net | W:
 http://www.readify.net | B: http://blog.webjak.net









 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Jake Ginnivan

 *Sent:* Wednesday, 12 August 2009 6:32 PM
 *To:* OzSilverlight@ozsilverlight.com
 *Subject:* RE: Wait for multiple Async calls to finish (SL3)




 http://themechanicalbride.blogspot.com/2009/07/introducing-rx-linq-to-events.html



 Have a look at this, the Silverlight team use it in their unit testing. I
 still have not used it yet, but really keen to dive in and use this stuff.



 *Jake Ginnivan*

 IT Coordinator



 ioGlobal Pty Ltd.

 ISO 9001 Quality Certified

 *Resource **Analytics**  Data Systems **Automation***

 T:  +61 8 6555 6510

 F:  +61 8 6311 3256

 M:  +61 403 846 400

 E:  *jake.ginni...@ioglobal.net***

 www.ioglobal.net



 *From:* OzSilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Asheesh Soni
 *Sent:* Wednesday, 12 August 2009 3:49 PM
 *To:* OzSilverlight@ozsilverlight.com
 *Subject:* Wait for multiple Async calls to finish (SL3)



 Any one knows a better / cleaner way to do this than:

 http://silverlight.net/forums/t/12437.aspx
 http://silverlight.net/forums/t/72631.aspx

 I have already dumped daisy-chaining of calls in favor of multiple async
 calls with a boolean flag for each.
 After calling all the async operations, I am using a DispatcherTimer
 ticker event to poll if all the flags have been set.
 Works like a charm, and a huge improvement in performance and readability
 over the chaining. But still not the perfect solution.

 I couldn't get this one to work:

 http://stackoverflow.com/questions/811855/threading-multiple-async-calls-silverlight
 The thread sleeps for ever on the 1st .waitone call.

 Any ideas?
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists

Re: Wait for multiple Async calls to finish (SL3)

2009-08-12 Thread Miguel Madero
Asheesh,

I'm comparing the different approaches, the one in StackOverFlow works well,
this is what I don't like:
* I think it's hard to work with multiple services using events instead of
callbacks (as in my example),
* They're using an AutoResetEvent, which we get for free if we use the
callbacks, so that means less things to set up.
* They're using a BackgroundWorker and a Thread
* They're using an event to notify, which is really not necessary (altough a
clear). We could directly do whatever we need after the WaitOne or after
calling Start (instead of raising the event).
* They're starting the BackgroundWorker and leave it there just waiting,
this should be done only just before calling the services.
* The event should be raised on the UI Thread

I did some changes to that sample. I can send it to you as a reference.
I don't think it would make a huge difference in performance, since any perf
hit due to thread synchronization logic would be nothing compare to multiple
service calls. However, I've not had a chance to do any perf testing.


*BTW. *I think you forgot to use the BackgroundWorker and that's why when
you tried to use this approach the application was locked on the first
WaitOne since it was done in the UI Thread (just as the even returning from
the ServiceCall).



On Wed, Aug 12, 2009 at 10:24 PM, Miguel Madero m...@miguelmadero.com wrote:

 Attached is a brief example on how to do this using the WaitHandle in the
 IAsyncResult returned by each async method.

 The code is simple. In Silverlight I just do 10 service call that will add
 an item to a ListBox. I'll wait until all the service calls end to add
 another message to the list (this has to run in a different thread to avoid
 blocking the UI). Also note that adding items to the list have to be done
 through the Dispatcher sicne they will modify the UI. There're a bunch of
 lamdas, but it's easy to follow.


  public MainPage()
 {
 InitializeComponent();
 var results = new ObservableCollectionstring();
 var asyncResults = new ListIAsyncResult();
 resultsList.ItemsSource = results;
 var service = new Service1Client() as Service1;

 1.To(10).Do(i=
 asyncResults.Add(service.BeginDoWork(ar =
 Dispatcher.BeginInvoke(() =
 results.Add(String.Format(Call {0} finished: {1}, i,
 service.EndDoWork(ar,
 null))
 );

 new Thread(()=
 {
 asyncResults.ForEach(a = a.AsyncWaitHandle.WaitOne());
 Dispatcher.BeginInvoke(() = results.Add(Everything
 finished));
 }).Start();
 }

 Just to help with the testing, this is the service

 public class Service1
 {
 private const int maxMilliSecs = 500;
 private const int minMillisSecs = 100;
 [OperationContract]
 public int DoWork()
 {
 int millisSecsToWait = new Random().Next(maxMilliSecs -
 minMillisSecs) + minMillisSecs;
 Thread.Sleep(millisSecsToWait);
 return millisSecsToWait;
 }
 }



 On Wed, Aug 12, 2009 at 9:21 PM, Miguel Madero m...@miguelmadero.comwrote:

 Ali is going to give a talk on the Rx framework at the next SDDN Event in
 Sydney :)

 On Wed, Aug 12, 2009 at 7:48 PM, Jordan Knight jordan.kni...@readify.net
  wrote:

  I had a quick look at this the other day and when I compiled up the
 reactive dll, the classes were different that in the example:



 ObservableExtensions

 DoAsync

 Didn't exist?



 I didn't really examine where I was going wrong in any great depth, so If
 you have any success I'd be interested to hear about it :)





 *Jordan Knight*
 Readify | Senior Consultant
 Lead Trainer - Rich Interactive Media

 Suite 408 LifeLabs Building | 198 Harbour Esplanade | Docklands | VIC
 3008 | Australia

 M: +61 403 532 404 | E: jordan.kni...@readify.net | W:
 http://www.readify.net | B: http://blog.webjak.net









 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Jake Ginnivan

 *Sent:* Wednesday, 12 August 2009 6:32 PM
 *To:* OzSilverlight@ozsilverlight.com
 *Subject:* RE: Wait for multiple Async calls to finish (SL3)




 http://themechanicalbride.blogspot.com/2009/07/introducing-rx-linq-to-events.html



 Have a look at this, the Silverlight team use it in their unit testing. I
 still have not used it yet, but really keen to dive in and use this stuff.



 *Jake Ginnivan*

 IT Coordinator



 ioGlobal Pty Ltd.

 ISO 9001 Quality Certified

 *Resource **Analytics**  Data Systems **Automation***

 T:  +61 8 6555 6510

 F:  +61 8 6311 3256

 M:  +61 403 846 400

 E:  *jake.ginni...@ioglobal.net***

 www.ioglobal.net



 *From:* OzSilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Asheesh Soni
 *Sent:* Wednesday, 12 August 2009 3:49 PM
 *To:* OzSilverlight@ozsilverlight.com

Re: Wait for multiple Async calls to finish (SL3)

2009-08-12 Thread Miguel Madero
Ross,

You're totally right, altough isn't as fun, that'll definitely perfom better
and should be the first option. I let myself go straight to VS to hack some
code and completely overlooked this.



On Wed, Aug 12, 2009 at 11:35 PM, Ross Jempson 
ross.jemp...@michaelhill.com.au wrote:

  Whilst the synchronising discussion is interesting in itself, perhaps the
 original problem could be solved by batching your logically grouped
 operations.  Assuming you ‘own’ the services, you could create less granular
 methods which return aggregated ‘datacontracts’.



 A variation of this idea is implemented quite nicely in ADO.NET data
 services, by supplying multiple DataServiceRequest to
 DataServiceContext.BeginExecuteBatch you get better performance and don’t
 have to synchronise the callbacks.



  (I’m only using that as an example by the way, as you can’t call custom
 service methods within a batch within that framework.)



 *From:* Miguel Madero [mailto:m...@miguelmadero.com]
 *Sent:* Wednesday, 12 August 2009 11:04 PM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: Wait for multiple Async calls to finish (SL3)



 Asheesh,

 I'm comparing the different approaches, the one in StackOverFlow works
 well, this is what I don't like:
 * I think it's hard to work with multiple services using events instead of
 callbacks (as in my example),
 * They're using an AutoResetEvent, which we get for free if we use the
 callbacks, so that means less things to set up.
 * They're using a BackgroundWorker and a Thread
 * They're using an event to notify, which is really not necessary (altough
 a clear). We could directly do whatever we need after the WaitOne or after
 calling Start (instead of raising the event).
 * They're starting the BackgroundWorker and leave it there just waiting,
 this should be done only just before calling the services.
 * The event should be raised on the UI Thread

 I did some changes to that sample. I can send it to you as a reference.
 I don't think it would make a huge difference in performance, since any
 perf hit due to thread synchronization logic would be nothing compare to
 multiple service calls. However, I've not had a chance to do any perf
 testing.


 *BTW. *I think you forgot to use the BackgroundWorker and that's why when
 you tried to use this approach the application was locked on the first
 WaitOne since it was done in the UI Thread (just as the even returning from
 the ServiceCall).


  On Wed, Aug 12, 2009 at 10:24 PM, Miguel Madero m...@miguelmadero.com
 wrote:

 Attached is a brief example on how to do this using the WaitHandle in the
 IAsyncResult returned by each async method.

 The code is simple. In Silverlight I just do 10 service call that will add
 an item to a ListBox. I'll wait until all the service calls end to add
 another message to the list (this has to run in a different thread to avoid
 blocking the UI). Also note that adding items to the list have to be done
 through the Dispatcher sicne they will modify the UI. There're a bunch of
 lamdas, but it's easy to follow.


  public MainPage()
 {
 InitializeComponent();
 var results = new ObservableCollectionstring();
 var asyncResults = new ListIAsyncResult();
 resultsList.ItemsSource = results;
 var service = new Service1Client() as Service1;

 1.To(10).Do(i=
 asyncResults.Add(service.BeginDoWork(ar =
 Dispatcher.BeginInvoke(() =
 results.Add(String.Format(Call {0} finished: {1}, i,
 service.EndDoWork(ar,
 null))
 );

 new Thread(()=
 {
 asyncResults.ForEach(a = a.AsyncWaitHandle.WaitOne());
 Dispatcher.BeginInvoke(() = results.Add(Everything
 finished));
 }).Start();
 }

 Just to help with the testing, this is the service

 public class Service1
 {
 private const int maxMilliSecs = 500;
 private const int minMillisSecs = 100;
 [OperationContract]
 public int DoWork()
 {
 int millisSecsToWait = new Random().Next(maxMilliSecs -
 minMillisSecs) + minMillisSecs;
 Thread.Sleep(millisSecsToWait);
 return millisSecsToWait;
 }
 }


On Wed, Aug 12, 2009 at 9:21 PM, Miguel Madero m...@miguelmadero.com
 wrote:

  Ali is going to give a talk on the Rx framework at the next SDDN Event in
 Sydney :)

 On Wed, Aug 12, 2009 at 7:48 PM, Jordan Knight jordan.kni...@readify.net
 wrote:

  I had a quick look at this the other day and when I compiled up the
 reactive dll, the classes were different that in the example:



 ObservableExtensions

 DoAsync

 Didn't exist?



 I didn't really examine where I was going wrong in any great depth, so If
 you have any success I'd be interested to hear about it :)





 *Jordan Knight*
 Readify | Senior Consultant
 Lead Trainer - Rich Interactive Media

 Suite

Re: DataGrid mouseover vsm

2009-08-11 Thread Miguel Madero
Stephen,

The DG itself doesn't have a MouseOver State. It's template it's a bit
simpler. You can modify the RowHeaderStyle, RowStyle, CellStyle (and
probably others) all of them have the mouse over state, it just depends on
which area of the DG you want to modify.




On Tue, Aug 11, 2009 at 12:28 AM, Stephen Price step...@littlevoices.comwrote:

 Hey all,
 This is probably simple when you know how, but I'm trying to customise the
 mouseover storyboard of a DataGrid. I'm using Blend 2 and have also looked
 in Blend 3 but when you create copy for the Edit Template option the copy
 has no states. I've also looked in the additional templates menu. Am I
 looking in the wrong place or maybe not drilling deep enough into the right
 part of the DataGrid?
 Or maybe its a manual thing being a part of the toolkit. The default style
 must be coming from somewhere... any ideas?

 cheers,
 Stephen
  --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: DataGrid mouseover vsm

2009-08-11 Thread Miguel Madero
 localprimitives:DataGridFrozenGrid.IsFrozen=True /

 localprimitives:DataGridCellsPresenter
 Grid.Column=1 Name=CellsPresenter
 localprimitives:DataGridFrozenGrid.IsFrozen=True /

 localprimitives:DataGridDetailsPresenter
 Grid.Row=1 Grid.Column=1 Name=DetailsPresenter /

 Rectangle Grid.Row=2 Grid.Column=1
 Name=BottomGridLine HorizontalAlignment=Stretch Height=1 /

 /localprimitives:DataGridFrozenGrid

 /ControlTemplate

 /Setter.Value

 /Setter

 /Style



 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Stephen Price
 *Sent:* Tuesday, 11 August 2009 6:14 PM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: DataGrid mouseover vsm



 Thanks for the reply. I had a look at those and there was no default for
 them. ie RowStyle is probably the one I want but it just has the create new
 option, no copy.



 Will have another look at it later tonight...



 cheers,

 Stephen

 On Tue, Aug 11, 2009 at 3:10 PM, Miguel Madero m...@miguelmadero.com
 wrote:

 Stephen,

 The DG itself doesn't have a MouseOver State. It's template it's a bit
 simpler. You can modify the RowHeaderStyle, RowStyle, CellStyle (and
 probably others) all of them have the mouse over state, it just depends on
 which area of the DG you want to modify.




  On Tue, Aug 11, 2009 at 12:28 AM, Stephen Price step...@littlevoices.com
 wrote:

 Hey all,



 This is probably simple when you know how, but I'm trying to customise the
 mouseover storyboard of a DataGrid. I'm using Blend 2 and have also looked
 in Blend 3 but when you create copy for the Edit Template option the copy
 has no states. I've also looked in the additional templates menu. Am I
 looking in the wrong place or maybe not drilling deep enough into the right
 part of the DataGrid?

 Or maybe its a manual thing being a part of the toolkit. The default style
 must be coming from somewhere... any ideas?



 cheers,

 Stephen
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists



   --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com


  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com

 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists


  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
   --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: SDDN Sydney August Meeting

2009-08-03 Thread Miguel Madero
Hi Greg,

Thanks for letting me know. Sorry about that. We'll be updating the site
soon.

See you there.

On Tue, Aug 4, 2009 at 12:11 AM, Gregory Koulax g...@segator.com wrote:

  Hi Miguel,



 The registration tool is out of order?







 Regards,

 *GREGORY KOULAX* | Principal



 *SEGATOR Pty Limited*

 Unit 1, First Floor, 17-21 Bowden Street

 ALEXANDRIA NSW 2015

 AUSTRALIA

 Tel: +612 9318 0122

 Mob: +61433 193 861

 Skype: gkoulax
   --

 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Miguel Madero
 *Sent:* Tuesday, 4 August 2009 12:08 AM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: SDDN Sydney August Meeting



 Just a reminder of todays meeting. Jose will be talking about Interactivity
 and Experience and Chris will lead a discussion on User Experience Design.
 You can't miss it.

 On Wed, Jul 22, 2009 at 10:57 PM, Miguel Madero m...@miguelmadero.com
 wrote:

 This month Jose Fajardo 
 http://cynergysystems.com/blogs/page/josefajardofrom Cynergy
 Systems http://cynergysystems.com/ will talk on “Don't lose site of
 what's important, Interactivity and Experience” at the Crown Hotel. Here are
 all the details:

 Crown Hotel
 162 Elizabeth St
 Sydney
 August 4th. 6:00 pm for drinks, 6:30 for the talk
 Use the registration tool on the top of the SDDN Sitehttp://www.sddn.org.au/
 .



 In our last couple of meetings we had low assistance and we might need an
 extra help to promote the meetings. I know there are a lot of Silverlight
 Developers out there and I think they can benefit from attending the User
 Group. Please help us spread the word.

 Also if you have any suggestions for this or future events, please let us
 know.



 For details about the talk, go 
 herehttp://miguelmadero.blogspot.com/2009/07/silverlight-designer-and-developer.html



 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com
   --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
   --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



SDDN Sydney August Meeting

2009-07-22 Thread Miguel Madero
This month Jose Fajardo
http://cynergysystems.com/blogs/page/josefajardofrom Cynergy
Systems http://cynergysystems.com/ will talk on “Don't lose site of what's
important, Interactivity and Experience” at the Crown Hotel. Here are all
the details:

Crown Hotel
162 Elizabeth St
Sydney
August 4th. 6:00 pm for drinks, 6:30 for the talk
Use the registration tool on the top of the SDDN Sitehttp://www.sddn.org.au/



In our last couple of meetings we had low assistance and we might need an
extra help to promote the meetings. I know there are a lot of Silverlight
Developers out there and I think they can benefit from attending the User
Group. Please help us spread the word.

Also if you have any suggestions for this or future events, please let us
know.


For details about the talk, go
herehttp://miguelmadero.blogspot.com/2009/07/silverlight-designer-and-developer.html


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: SQL 'in' Silverlight

2009-07-12 Thread Miguel Madero
This is really cool. I'll check it later.
A while ago I was working on something similar, but I was mainly focused on
synchronizing data and saving it. I didnt have much time to work on querying
capabilities.




On Mon, Jul 13, 2009 at 8:31 AM, Craig Dunn craig.d...@gmail.com wrote:

 Hey everyone - played around a bit with porting an old c# version of HSql
 (from java) to Silverlight. I'm not sure of the utility but it was an
 interesting exercise - still figuring out the kinks in isolatedstorage...
 seems to work fine 'in memory' though.

 post: http://conceptdev.blogspot.com/2009/07/sql-in-silverlight.html
 play: http://conceptdevelopment.net/Silverlight2/SharpSql02/default.html

 the 'default' SQL includes some basic data  queries - you can Execute the
 entire block, or select text to execute just like MgmtStudio... (just don't
 habitually hit F5 like was doing during testing!). the UI is pretty basic,
 so you must scroll with the bars.
 --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: ado.net data services query filtering

2009-07-09 Thread Miguel Madero
If you use a sniffer like Fiddler, Firebug or WebDevelopment Helper you
could see all the network traffic.

On Fri, Jul 10, 2009 at 3:16 PM, Ross Jempson 
ross.jemp...@michaelhill.com.au wrote:

  That seems like a reasonable suggestion.



 I had considered writing it as linq, but assumed it would have the same
 problem.  I didn’t realise you could check the rest URL,  thanks.



 *From:* Asheesh Soni [mailto:asheeshs...@gmail.com]
 *Sent:* Friday, 10 July 2009 1:47 PM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: ado.net data services query filtering



 Why don't you simply write a linq query and let it do the translation for
 you?
 And if you are curious, you can set a break point and see what REST url it
 is using to get the results.

 Or have I missed something really obvious and made a fool of myself?

 On Wed, Jul 8, 2009 at 2:59 PM, Ross Jempson 
 ross.jemp...@michaelhill.com.au wrote:

 Hi there,



 This might be slightly off topic, but I’ll try my luck.


 I am trying to figure out whether I can filter on child collections of an
 ado.net data services query in a Silverlight app.



 For example, the following examples work nicely, and are good for
 performance as I don’t need round trips to the server when populating child
 entity collections:





 this.DataContext.BeginExecuteScreen(new Uri(
 Screen?$expand=ScreenMenuItem/ScreenMenuItemCountry,ScreenBackgroundImage,ScreenVideoSubstituteImage,ScreenCountryText,ScreenCountryVideo
 ,

 UriKind.Relative),

ScreenLookupDataCallback, this.DataContext);





 this.DataContext.BeginExecuteMainMenuItemCountry(new 
 Uri(string.Format(MainMenuItemCountry?$expand=MainMenuItem/Screen$filter=CountryId
 eq {0}, _loc.ApplicationSettings.CountryId),

 UriKind.Relative),

MainMenuItemsDataCallback, this.DataContext);





 Notice in the second query I am filtering the ‘MainMenuItemCountry’ by
 CountryId.  Note how this filter is against the top level entity.



 I would like to do the same thing in the first query, but I want to filter
 by country for the ScreenMenuItem/ScreenMenuItemCountry entities.  Eg
 something like





 this.DataContext.BeginExecuteScreen(new 
 Uri(Screen?$expand=ScreenMenuItem/ScreenMenuItemCountry,ScreenBackgroundImage,ScreenVideoSubstituteImage,ScreenCountryText,ScreenCountryVideo$filter=
 ScreenMenuItem/ScreenMenuItemCountry/CountryId eq 61 ,

 UriKind.Relative),

ScreenLookupDataCallback, this.DataContext);



 However, this results in a bad request.  The following link implies it is
 not possible to filter the ‘expanded’ child collection, but I can’t be
 sure.  http://msdn.microsoft.com/en-us/library/cc668778.aspx



 Has anyone tried this?

 Cheers.

 Ross
   --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists


  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
   --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Silverlight/Expression Aussie Tour Thoughts welcomed.

2009-07-06 Thread Miguel Madero
SDDN in Sydney is today.
Next week on the 16th we'll have a nerd dinner (in case you're in Sydney or
for anyone else that's interested). All the details are
herehttp://www.nerddinner.com/726.





On Tue, Jul 7, 2009 at 11:44 AM, Nina Meiers n...@xd.com.au wrote:

  Yes – please count me in on Melbourne things.



 I love what you wrote there :-D



 Nina







 Nina Meiers



 *Nina Meiers (Microsoft MVP)*

 XD Design Pty Ltd



 P: 613 9551 5711

 F: 613 9551 6503

 S: nina.meiers

 E: *nina.mei...@xd.com.au*

 W:*http://www.xd.com.au
 http://mysupport.xd.com.au

 **Send a card a day and show you care http://www.sendoutcards.com/37568
 ***



 web design, web hosting, manage your own websites, eCommerce, eMarketing,
 SEA  SEO management, DotNetNuke Consultation  Delivery, Training and
 deployment





 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Scott Barnes
 *Sent:* Tuesday, 7 July 2009 11:28 AM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* RE: Silverlight/Expression Aussie Tour Thoughts welcomed.



 Ok I’ll put down 21st July.



 I now need to get signoff for the below dates by the Minister of Events,
 Planning, Vacation and Housing – The Mother of my children who will make my
 life hell should I miss an important date below that’s already been booked
 by some event she may or may not have told me – but highly likely I ignored
 due to Twitter/Facebook/TeamFortress occupying my attention at the time.



 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Steven Berry
 *Sent:* Monday, July 06, 2009 6:19 PM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* RE: Silverlight/Expression Aussie Tour Thoughts welcomed.



 Hi Scott,



 Definitely come to Melbourne, our SDDN user group, could may do a special
 One off meet, as were quite excited to see whats coming?



 Say 21st July?



 Steve



 *From:* Scott Barnes [mailto:scbar...@microsoft.com]
 *Sent:* Tuesday, 7 July 2009 11:21 AM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* RE: Silverlight/Expression Aussie Tour Thoughts welcomed.



 Hi All,



 Doing the finalizations today (should have it locked by this afternoon if
 all goes well).



 · Adelaide *(PENDING) *– 18th July.

 oI’m trying now to dovetail the codecamp into the schedule as I agree,
 it would be perfect timing for me to be there).

 · Sydney. *(PENDING) *– 15th July.

 o   What day next week? As maybe I can bring that forward and head into
 Sydney for the SDDN instead as that way I won’t impact too much of your guys
 after hour schedules? At the moment it’s likely I’ll just hit the Sydney SSW
 .NET UserGroup (via Adam Cogan)  meeting on the *15th July* – so is this
 the same as the SDDN?

 · Brisbane. *(PENDING)*

 o   I may have to push Brisbane 8th back as I’m talking to Mike and likely
 going to crash the local UG here this month.

 · Perth. *(**LOCKED**) *– 22nd  July.

 o   I’ll be doing my preso at the next perth SDDN.

 · Melbourne *(PENDING)*

 o   Still wondering what to do here, any thoughts as it’s the only city
 where I’ve not heard boo about me being there so may scratch it?

 · Canberra. *(PENDING)*.  *20th July*.

 o   Looks like I’ll be doing my spiel at the SSW .NET UG – 20th July (via
 Adam Cogan).



 One thought occurred to me in organizing this, is I’d love to meet up with
 the UG heads etc and see if we can put together a shared talent /calendar of
 some sort as maybe I’m just an ignorant ass (which is very likely) but it
 would be good to see a centralized approach to the ethos here… ie one
 website to rule them all or something like that? Love to mediate that
 between the community and Microsoft Australia  more (may even fund it).



 I’m absolutely excited to do this and am very grateful for folks helping me
 organize the above. Now to make sure my presentation inspires you all some
 more… damn that’s a lot of pressure now J





 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Grant Molloy
 *Sent:* Sunday, July 05, 2009 4:20 AM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: Silverlight/Expression Aussie Tour Thoughts welcomed.



 Scott,

 Have you finalised the locations yet?

 How do we book tickets ?





 Grant

 On Sun, Jun 28, 2009 at 4:22 AM, Scott Barnes scbar...@microsoft.com
 wrote:

 Hey All,



 I’m coming home for a month  and was thinking of doing an Aussie Tour of
 Silverlight/Expression 3 and answer any questions around our products
 futures etc.



 The below are the dates I’m thinking and was keen to get folks in each city
 to provide feedback around the said dates.



 · 08th JulyBrisbane

 · 22nd July   Perth

 · 23rd JulyMelbourne.

 · 27th JulySydney

 · 28th JulyCanberra.



 The material will be some 

Re: Exception handling / reporting RIA

2009-05-24 Thread Miguel Madero
I'm using  Daniel Vaughan Loggin and have been quite happy so far. We were
already using Log4Net in the server, so it fitted pretty well. We needed to
do some tricks to implement it since the article in CodeProject. If you are
interested I can send you more information on how we did it (sorry I don't
have it at hand at the moment).

Implementing an offline functionality should be somewhat straight forward.

For offline scenarios, I ported the Disconnected Service Agent from PP used
in the Mobile Client Software Factory to allow to temporarily save service
requests in queue and dispatch them when a connection is available. This
pattern works pretty well for atomic services that doesn't block the
functionality or when an application is completely designed to support
Offline Scenarios, which isn't the case for must SL apps, specially not
having an local DB. RIA Services uses a similar approach, but works on
Domain/Service Context instead of at a Service Operation level.



On Mon, May 25, 2009 at 1:02 PM, John OBrien j...@soulsolutions.com.auwrote:

  Since the majority of errors we have so far are actually WCF
 communication errors  this would make a lot of sense. Plus for power users
 we can always get the logs manually. Thanks.



 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Gilbert Corrales
 *Sent:* Monday, 25 May 2009 12:54 PM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: Exception handling / reporting RIA



 maybe a hybrid between isolated storage and remote error handling could
 work... in the case of error reporting the error we can log it temporary in
 isolated storage and later when the connection is reestablished we can log
 any information left

 might do for an interesting experiments.

 On Mon, May 25, 2009 at 11:14 AM, John OBrien j...@soulsolutions.com.au
 wrote:

 Has anyone come across a good architecture for handling exceptions in
 Silverlight gracefully?

 Ideally we want the user to get something generic but for the full error to
 be logged, since Silverlight runs on the client I assume we would need to
 implement a WCF service for error reporting?



 And clearly we don’t want an error to happen in the error handler itself,
 it needs to be very robust. Any pointers?



 John.
   --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists


  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
   --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: First Virtaul SDDN Meeting

2009-05-18 Thread Miguel Madero
Everyone,

Thanks to all of you who attend the first Virtual SDDN. I think we had some
interesting discussions. Some of them we can definitely continue on this
mail list or in the next Virtual SDDN. Unfortunately I didn't record this
meeting (I'll make sure to do it next time), but I'll include a list of
resources from the talk, but first of all I'd like to ask a couple of
questions.

1. What do you thing about the format?
a) I hate open spaces, bring me some speakers with Powerpoints.
b) It's good once in a while, but we should try a different format next
time (probably alternate)
c) I love it. Altough presentations are good, discussions add a lot of
value.
d) ???
2. How often would you like to have this type of events?
   a) Once a month.
   b) Fortnightly
   c) Eventually
   d) ???


During the talk we discussed about Patterns, we only had a chance to talk
about MVVM and Tom told us he have been using Prism with MVP and Unity.
These are some links
Prism http://compositewpf.codeplex.com/
MVVM by Nikhil http://www.nikhilk.net/Silverlight-ViewModel-Pattern.aspx
MVVM by 
Jonashttp://jonas.follesoe.no/YouCardRevisitedImplementingTheViewModelPattern.aspx

We also talked a bit about Memory Leaks.
Delay on Memory Leaks in
SLhttp://blogs.msdn.com/delay/archive/2009/03/11/where-s-your-leak-at-using-windbg-sos-and-gcroot-to-diagnose-a-net-memory-leak.aspx
I mentioned that we could use
WinDbghttp://www.google.com.au/url?sa=tsource=webct=rescd=1url=http%3A%2F%2Fwww.microsoft.com%2Fwhdc%2Fdevtools%2Fdebugging%2Finstallx86.Mspxei=p2oRSoDwBYrKM5K92FIusg=AFQjCNHf3h9385pKvQHMJRRGwiEwm4pl1Asig2=tcJmKfnydI_ZtTeU61vDIAor
SilverlightSpyhttp://silverlightspy.com/silverlightspy/download-silverlight-spy/to
detect Memory Leaks.
When it comes to WinDbg, Tess knows it all and she blogged about how to
setup WinDbg for
Silverlighthttp://blogs.msdn.com/tess/archive/2008/08/21/debugging-silverlight-applications-with-windbg-and-sos-dll.aspx

Andy and Stephen told us about the cool apps that they've written in
Silverlight, but we don't have a lot of resources to show atm.

At the end we talked a about Behaviours in Silverlight 3. Shawn Wildermouth
has a series on this
topichttp://wildermuth.com/2009/05/16/Writing_Behaviors_for_Silverlight_3_-_Part_1

We added a bonus topic on User Controls and we talked about the TreeView in
the Silverlight Toolkit. We also mentioned the need to navigate the
VisualTree to get to different Elements when needed. In this blog
posthttp://miguelmadero.blogspot.com/2008/07/use-visualtreehelper-to-navigate_18.htmlI
talked about how to use the VisualTreeHelper to do that and some
extensions to do it easily (the code is avaailable for download). I've an
updated version of this that supports more escenarios, like using
expressions and LINQ to query for UIElements, contact me if you're
interested.

I hope everyone enjoyed and got something out of this.
I'd love to have your feedback and see you again in another virtual or UG
meeting.

Thanks


On Mon, May 18, 2009 at 10:29 AM, Miguel Madero m...@miguelmadero.com wrote:

 This is the link for the 
 eventhttps://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName=gprcrzd1lgf2dhh4,
 please register before the meeting and be sure you have Live Meeting
 installed on your computer and your audio properly configured. Some people
 have asked me about the place and how is this a Virtual Event. We’ll be
 using this tool called Live Meeting that allow us to interact with audio,
 video and share the desktop, polls, QA, etc, but rather than trying to
 explain what Live Meeting is, you can just try it tonight. Just 
 registerhttps://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName=gprcrzd1lgf2dhh4and
  follow the instructions.
 If you have any doubts, please contact me.



 On Thu, May 14, 2009 at 12:40 AM, Miguel Madero m...@miguelmadero.comwrote:

 Everything has been really quite lately, so it's time to SPAM the list
 again,

 We're going to do a Virtual Meeting next monday at 9:00 pm Sydney Time, I
 think it ca be a great opportunity for everyone to participate.

 Instead of the typical presentation, we decided to have an open discussion
 around different topics.

 You can read all the details on my blog
 http://miguelmadero.blogspot.com/2009/05/first-virtual-silverlight-designer-and.html

 We will be using Live Meeting. I’ll email the link for the meeting ASAP.



 I hope to see you (hear you or at least read you) on monday.

 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com
  --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m

Re: First Virtaul SDDN Meeting

2009-05-18 Thread Miguel Madero
Thanks for the feedback.

Just summarizing.

Monthly or every 6 weeks sounds good. More often if there's something to
talk about. If there's a lot of interest in the list about something we
could just plan an ad-hoc Virtual Meeting.

I think alternating Discussion with presentation it's a good idea. Next time
we can try with a presentation first and then open discussion and we'll
choose through this list.

I'm sorry we exceeded the expected time. Some people have told me it was too
long. Next time we will make sure to keep it at 1:30. If someone wants to
stay, that could be an 'unofficial' part of the meeting. We've done it that
way for OzVirtual ALT.NET http://alt.net/ and I think it works well, few
people usually stay, but there's still a good option.



On Tue, May 19, 2009 at 8:38 AM, Scott Barnes scbar...@microsoft.comwrote:

  Doh I thought I was tonight as for some reason in my head it was 9pm my
 time.. I’ll definitely sync in at the next one! J



 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Miguel Madero
 *Sent:* Monday, May 18, 2009 7:15 AM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Re: First Virtaul SDDN Meeting



 Everyone,

 Thanks to all of you who attend the first Virtual SDDN. I think we had some
 interesting discussions. Some of them we can definitely continue on this
 mail list or in the next Virtual SDDN. Unfortunately I didn't record this
 meeting (I'll make sure to do it next time), but I'll include a list of
 resources from the talk, but first of all I'd like to ask a couple of
 questions.

 1. What do you thing about the format?
 a) I hate open spaces, bring me some speakers with Powerpoints.
 b) It's good once in a while, but we should try a different format next
 time (probably alternate)
 c) I love it. Altough presentations are good, discussions add a lot of
 value.
 d) ???
 2. How often would you like to have this type of events?
a) Once a month.
b) Fortnightly
c) Eventually
d) ???


 During the talk we discussed about Patterns, we only had a chance to talk
 about MVVM and Tom told us he have been using Prism with MVP and Unity.
 These are some links
 Prism http://compositewpf.codeplex.com/
 MVVM by Nikhil http://www.nikhilk.net/Silverlight-ViewModel-Pattern.aspx
 MVVM by 
 Jonashttp://jonas.follesoe.no/YouCardRevisitedImplementingTheViewModelPattern.aspx

 We also talked a bit about Memory Leaks.
 Delay on Memory Leaks in 
 SLhttp://blogs.msdn.com/delay/archive/2009/03/11/where-s-your-leak-at-using-windbg-sos-and-gcroot-to-diagnose-a-net-memory-leak.aspx
 I mentioned that we could use 
 WinDbghttp://www.google.com.au/url?sa=tsource=webct=rescd=1url=http%3A%2F%2Fwww.microsoft.com%2Fwhdc%2Fdevtools%2Fdebugging%2Finstallx86.Mspxei=p2oRSoDwBYrKM5K92FIusg=AFQjCNHf3h9385pKvQHMJRRGwiEwm4pl1Asig2=tcJmKfnydI_ZtTeU61vDIAor
 SilverlightSpyhttp://silverlightspy.com/silverlightspy/download-silverlight-spy/to
  detect Memory Leaks.
 When it comes to WinDbg, Tess knows it all and she blogged about how to
 setup WinDbg for 
 Silverlighthttp://blogs.msdn.com/tess/archive/2008/08/21/debugging-silverlight-applications-with-windbg-and-sos-dll.aspx

 Andy and Stephen told us about the cool apps that they've written in
 Silverlight, but we don't have a lot of resources to show atm.

 At the end we talked a about Behaviours in Silverlight 3. Shawn Wildermouth
 has a series on this 
 topichttp://wildermuth.com/2009/05/16/Writing_Behaviors_for_Silverlight_3_-_Part_1

 We added a bonus topic on User Controls and we talked about the TreeView in
 the Silverlight Toolkit. We also mentioned the need to navigate the
 VisualTree to get to different Elements when needed. In this blog 
 posthttp://miguelmadero.blogspot.com/2008/07/use-visualtreehelper-to-navigate_18.htmlI
  talked about how to use the VisualTreeHelper to do that and some
 extensions to do it easily (the code is avaailable for download). I've an
 updated version of this that supports more escenarios, like using
 expressions and LINQ to query for UIElements, contact me if you're
 interested.

 I hope everyone enjoyed and got something out of this.
 I'd love to have your feedback and see you again in another virtual or UG
 meeting.

 Thanks

  On Mon, May 18, 2009 at 10:29 AM, Miguel Madero m...@miguelmadero.com
 wrote:

 This is the link for the 
 eventhttps://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName=gprcrzd1lgf2dhh4,
 please register before the meeting and be sure you have Live Meeting
 installed on your computer and your audio properly configured. Some people
 have asked me about the place and how is this a Virtual Event. We’ll be
 using this tool called Live Meeting that allow us to interact with audio,
 video and share the desktop, polls, QA, etc, but rather than trying to
 explain what Live Meeting is, you can just try it tonight. Just 
 registerhttps://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName

Re: First Virtaul SDDN Meeting

2009-05-17 Thread Miguel Madero
This is the link for the
eventhttps://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName=gprcrzd1lgf2dhh4,
please register before the meeting and be sure you have Live Meeting
installed on your computer and your audio properly configured. Some people
have asked me about the place and how is this a Virtual Event. We’ll be
using this tool called Live Meeting that allow us to interact with audio,
video and share the desktop, polls, QA, etc, but rather than trying to
explain what Live Meeting is, you can just try it tonight. Just
registerhttps://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName=gprcrzd1lgf2dhh4and
follow the instructions.
If you have any doubts, please contact me.



On Thu, May 14, 2009 at 12:40 AM, Miguel Madero m...@miguelmadero.com wrote:

 Everything has been really quite lately, so it's time to SPAM the list
 again,

 We're going to do a Virtual Meeting next monday at 9:00 pm Sydney Time, I
 think it ca be a great opportunity for everyone to participate.

 Instead of the typical presentation, we decided to have an open discussion
 around different topics.

 You can read all the details on my blog
 http://miguelmadero.blogspot.com/2009/05/first-virtual-silverlight-designer-and.html

 We will be using Live Meeting. I’ll email the link for the meeting ASAP.



 I hope to see you (hear you or at least read you) on monday.

 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com
  --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



First Virtaul SDDN Meeting

2009-05-13 Thread Miguel Madero
Everything has been really quite lately, so it's time to SPAM the list
again,

We're going to do a Virtual Meeting next monday at 9:00 pm Sydney Time, I
think it ca be a great opportunity for everyone to participate.

Instead of the typical presentation, we decided to have an open discussion
around different topics.

You can read all the details on my blog
http://miguelmadero.blogspot.com/2009/05/first-virtual-silverlight-designer-and.html

We will be using Live Meeting. I’ll email the link for the meeting ASAP.



I hope to see you (hear you or at least read you) on monday.

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: OzSilverlightFeed

2009-05-13 Thread Miguel Madero
@Everyone,

First of all, I'm sorry for the long response. I've been somewhat busy and
didn't want to just add all the feeds without putting some thought behind.
It would be easier for me to just publish that, but I don't think
subscribers would appreciate that and that's the main goal.

Thanks for the comments and for nominating your feeds. I'll see the details
with each one individually, but this are the general points ordered by
importance (I'm always open to more feedback/suggestions):

1. Posts related to Silverlight. Ideally we should aim for 100% Silverlight
content. I knot that's not all you have in your mind and I'm sure the rest
is also interesting, but in this case, people will be subscribing to
Silverlight Content. So we need a way to filter that. What seems easier at
the moment is to get the feeds for certain categories, for example in
wordpress instead of subscribing to myblog.com/feed/ we would get
myblog.com/category/silverlight/feed/
I don't know how to do the same with other blog engines.

If you can provide me with a 100% SL Feed that would be fantastic. Otherwise
don't worry, as long as it has a high percentage of SL content I think we
can still include it.

I might do some regular expressions in Yahoo Pipes, but I'm not sure of
taking this path, what if someone mentions SDDN, Blend and Animations or
other words that I don't consider part of the filter, so this is error
prone.

2. To be involved somehow with the OzSilverlight Community, (e.g. not
necessarily living here, like Scott and Jonas that have participated in the
list and presented at different events in Australia.

3. To blog frequently. Once a month? Although this isn't as important as the
focus of the posts.


Thanks


On Wed, Apr 29, 2009 at 1:38 AM, Ola Karlsson ola.e.karls...@gmail.comwrote:

 Hi Miguel,
 Great initiative :)

 In regards to the criterias etc. I guess it should be someone, who either
 live/work in Australia or have very close connections to Australia,
 yes Scott, being Australian but living abroad I reckon would qualify you ;)

 Secondly as it's a Silverlight feed, the majority of the content on the
 blog should obviously be Silverlight related.

 People could email you with suggestions regarding new additions and
 possibly removing old ones (reason for removing could be for example if the
 person has shifted focus away from Silverlight).

 So basically, keep up what you're already doing :)


 I'd of course also would like to add my blog
 http://feeds2.feedburner.com/WebDevelopmentAdventures as a suggestion for
 the feed :) the idea is to write about wed development in general but so far
 it's pretty much just been Silverlight (and the odd personal rant).

 Well that's my two cents.

 Cheers,
 Ola


 On Mon, Apr 27, 2009 at 8:51 PM, Miguel Madero m...@miguelmadero.comwrote:

 Everyone,

 I've put together a feed to aggregate blogs of people from Australian
 writing about Silverlight. The idea is to have a complimentary tool for the
 Australian Silverlight community to know each other, learn a bit about what
 everybody is doing apart from using the mailing list or attending SDDN
 events.

 This is the feed:
 http://feeds2.feedburner.com/OzsilverlightFeedhttps://mail.readify.net/redir.aspx?C=6569594baed0440c8d0f50989b1917ddURL=http%3a%2f%2ffeeds2.feedburner.com%2fOzsilverlightFeed

 At the moment I have few blogs in the feed. I'd like the community to help
 me maintain this list suggesting new blogs to add. These are the current
 blogs:
 http://blog.webjak.net/feed/
 http://miguelmadero.blogspot.com/feeds/posts/default
 http://feeds2.feedburner.com/SilverzineRss
 http://silverzine.com/resources/feed/
 http://feeds2.feedburner.com/ChrisA
 http://feeds2.feedburner.com/shanemo
 http://delicategeniusblog.com/?feed=rss2
 http://feeds.feedburner.com/follesoe?format=xml
 http://www.cynergysystems.com/blogs/rss/josefajardo


 In order to make the feed relevant and focused for the subscribers, I'd
 like to keep it limited to Silverligh bloggers from Australia.


 I'd like to know your feedback on this feed. Which blogs would you like me
 to add? What should be the criteria to add/remove blogs, etc.

 Thanks
 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com
  --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists


  --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists

Quick Reminder SDDN Meeting Tonight in Sydney

2009-05-04 Thread Miguel Madero
Quick reminder. Silverlight Designers and Developers Meeting Tonight at
Pyrmont Bridge Hotel @ 6:00PM
http://miguelmadero.blogspot.com/2009/04/first-meeting-of-silverlight-designer.html


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Accessing the bindings

2009-04-30 Thread Miguel Madero
We can programmatically add a binding doing something like
textBox.SetBinding() is there a way to Get the Bindings?


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Accessing the bindings

2009-04-30 Thread Miguel Madero
Looks like it's not possible (yet). In SL3 we'll have a
txt.GetBindingExpression()


Thanks Jordan and Stephen :)

On Fri, May 1, 2009 at 2:03 PM, Miguel Madero m...@miguelmadero.com wrote:

   We can programmatically add a binding doing something like
 textBox.SetBinding() is there a way to Get the Bindings?


 --
 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 m...@miguelmadero.com
 --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



SDDN Meeting in Sydney. May 5th

2009-04-29 Thread Miguel Madero
Silverlight Designer and Developer Network
Our next meeting is on Tuesday the 5th of May in Sydney

 What's on?

 This meeting we will see *Chris Anderson*
(bloghttp://chrisa.wordpress.com/),
from Peer Placements will be discussing advanced styling in Silverlight for
both developers and designers. Topics will cover styling strategies, tools,
advanced xaml techniques, fashions, and a discussion on designing user
experiences.

 *Jordan Knight* (Blog http://blog.webjak.net/) from Readify will run
through the exciting new features in *Silverlight 3*, and demonstrate how
you might use them in a real working reference application. This in depth
session will cover perspective 3D, pixel shaders, navigation features, out
of browser and much more. Other concepts like Model-View-ViewModel,
dependency injection, unit testing and designing template friendly (read
designer friendly) applications will also be touched upon.

 WIN!

 Attendees will have the opportunity to win a copy of the full Expression 2
suite, worth $1000!

 When and Where?

 The date and time: Tuesday May 5 at 6:00 PM for a 6:30 PM start.

 The venue is the Pyrmont Bridge Hotel, Level 2, Pyrmont, NSW. See
maphttp://www.google.com/maps?f=qsource=s_qhl=engeocode=q=96+Union+Street+Pyrmont+2009sll=37.0625,-95.677068sspn=32.514368,64248047ie=UTF8z=17iwloc=Afor
details.

 Attendance is FREE, but please RSVP by entering your details in the
registration in the registration tool on the site (http://www.sddn.org.au)
or send an email to i...@sddn.org.au.

 Who will this group interest?

 The focus of the group is not just on developers. Traditionally developers
have had great community support, whereas designers not so much… now that
Silverlight 2 is out we plan to change this.

 Silverlight is as interesting for developers as it is for designers. Due in
part to Silverlight’s excellent separation of design and development
concerns we have new problems to solve around finding the best ways to work
together.

 To this end the SDDN will facilitate an ongoing discussion and promote the
development of ideas and best practices for anyone who works with
Silverlight.

 To register interest head over to http://www.sddn.org.au. *Use the
registration tool in the header of the site*.

-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Perth Silverlight user group meeting (SDDN)

2009-04-19 Thread Miguel Madero
Sounds great.
Enjoy the event.

Is it going to be recorded? I'd like to learn a bit more on RIA Services.


For people interested in RIA Services, I'd recommend to check the PDF.

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Toolbox Treeview control

2009-03-28 Thread Miguel Madero
You can also try using datbinding and then change and bind the
IsSelectedProperty to a property in your datasource. Then instead of
modifying the elements (which will get overwritten once the TreeView is
created), you modify the objects, so once the treeview is created it will
get the value for IsSelectedProperty from the object.

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Blend 3

2009-03-26 Thread Miguel Madero
Why was it a nightmare last time?

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Blend 3

2009-03-23 Thread Miguel Madero
Thanks for the info. I'll also send my list.
The worst issue I found is that sometimes when you modify the Text in the
TextBox the Source it's not updated. I've not been able to reproduce it in a
blank project. I'll also try to compile a list of issues and submit them.

Thanks

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Blend 3

2009-03-22 Thread Miguel Madero
Any ideas on when will this happen?

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: VSM in ListboxItem DataTemplate

2009-03-12 Thread Miguel Madero
It's somewhat problematic to navigate the VisualTree. Sometimes even looking
at the XAML isn't evident which controll will be the parent as you would
need not only to know your XAML, but also the ControlTemplates the define
the controls that you're using.
A while ago I created some extensions for the VisualStateManager that can
help in this and other types of scenarios.

You can see part
1http://miguelmadero.blogspot.com/2008/07/use-visualtreehelper-to-navigate.html
 and part 
2http://miguelmadero.blogspot.com/2008/07/use-visualtreehelper-to-navigate_18.html


For this escenario with the Extension method we could use the following
syntax:

ListBoxItem lbi = button.GetParentListBoxItem();

The code is available in my blog. I've added a couple more methods, if you
find it interesting, just e-mail me and I can send you the updated version.

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Blend crash

2009-02-15 Thread Miguel Madero
I've found the same problem in some scenarios. Just to let you know you're
not alone, because I don't know how to fix it :(
It wasn't the only place, but I remember that if I used a converter in a
TemplateColumn in a DataGrid it failed.

On  Mon, Feb 16, 2009 at 11:45 AM, Stephen Price
step...@perthprojects.comwrote:

 Yeah I have tried that. Forgot to post the error (forgotten that I had done
 that... until I tried it again and recognised the error)
 {Cannot access a disposed object.\r\nObject name: 'NativeObject'.}

 Flat out atm but will see if I can reproduce it in a standalone project
 later today.

 cheers,
 Stephen


 On Mon, Feb 16, 2009 at 10:41 AM, Jordan Knight jordan.kni...@readify.net
  wrote:

  Hey Stephen,



 What is the error?



 Have you tried attaching VS debugger to Blend to get a better error.



 I've not experienced this myself...



 Do you have many different converts?



 Perhaps you could post a replication project so I can try it on my
 machine...



 Cheers,



 Jordan.



 *From:* ozsilverlight@ozsilverlight.com [mailto:
 ozsilverli...@ozsilverlight.com] *On Behalf Of *Stephen Price
 *Sent:* Monday, 16 February 2009 11:34 AM
 *To:* ozsilverlight@ozsilverlight.com
 *Subject:* Blend crash



 Has anyone used a Converter on a binding and not have it crash when the
 file is opened with Blend?



 I can't have any converters on my bindings at all or Blend dies
 dramatically. I've found a short thread on the Expression Blend forums with
 other people with the same issue. Was wondering if its everyone or just a
 small number of ppl?



 Blend version is v2.1.1760.0. Silverlight v2.0.31005.0



 The converters work fine when run from VS2008 or Blend, it's just crashing
 Blend when opened. (I have to remove/rename them to be able to open the
 file)



 cheers,

 Stephen
  --

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
   --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists


  --
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists




-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com

Support procedure: https://www.codify.com/lists/support
List address: ozsilverlight@ozsilverlight.com
Subscribe: ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists



Re: Silverlight Reporting apps

2009-02-07 Thread Miguel Madero
We have invoked ASP.NET pages to display Reporting Services or HTML
reports, It's also really easy using the Reporting Services API, to
redirect a client directly to a PDF that he can open in the explorer.

It would be great to have a better ingration, but we never had time to
do it. It would be possible, to directly consume the SSRS WebServices
to avoid havingn to create another website to host the control.
Jonas, publish an article about printint in SL 2.0 it's an interesing
approach. 
http://jonas.follesoe.no/PrintingInSilverlight2UsingCSSAndASPNETAJAX4.aspx

On Sun, Feb 8, 2009 at 1:49 AM, Joseph Cooney jos...@learnwpf.com wrote:
 Just in case you didn't know already the printing support in SL2 is pretty
 bad. I'm sure SL would make a great front-end for entry selection but when
 it comes to actual report rendering for print you'll probably need to choose
 something else (at least until SL3 comes out).

 Joseph

 On Fri, Feb 6, 2009 at 9:19 PM, Bruce Hopkins bhopk...@chattcollege.com
 wrote:

 Thanks Chris, this looks very interesting and has a lot of the
 functionality I was thinking about already built in. I'm going to dig into
 this code.


 Thanks
 Bruce Hopkins
 Director Information Technology
 Chattahoochee Technical College
 770-528-4574
 
 From: ozsilverlight@ozsilverlight.com [ozsilverli...@ozsilverlight.com] On
 Behalf Of Chris Anderson [christheco...@gmail.com]
 Sent: Friday, February 06, 2009 12:28 AM
 To: ozsilverlight@ozsilverlight.com
 Subject: Re: Silverlight Reporting apps

 Hi Bruce

 I written about reporting in Silverlight applications as a part of my
 Building Line Of Business Applications in Silverlight article series on the
 SilverlightShow.net website.  While this isn't using an Oracle it should be
 straightforward to convert.  Here's a link:


 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-6.aspx

 Chris

 2009/2/6 Jonathan Parker jonathanparkerem...@gmail.com

 You can use Entity framework with Oracle as well to write your web
 service:

 http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtAdoNet35Provider

 On Fri, Feb 6, 2009 at 10:25 AM, Caleb Jenkins
 caleb.jenk...@improvingenterprises.com wrote:

 Bruce,



 You should look at the charting a in the Silvelright Control Toolkit
 (http://codeplex.com/silverlight)

 Silverlight applications don't have direct access to any back end
 databases (SQL Server or Oracle). So the database will have to sit behind
 some sort of access layer (typically a WCF Service or ADO.NET Data
 Services). You should be able to use the same concepts found on
 http://silverlight.net/learn for accessing SQL data and apply them to your
 Oracle database. Silverlight doesn't care about the specific database
 because it can't talk directly to it anyways.



 HTH!



 Caleb Jenkins

 Principal Consultant, Microsoft MVP, INETA National Speaker

 mobile: 469.867.4552 | blog: http://developingUX.com | video:
 http://communitycast.tv | twitter: http://twitter.com/calebjenkins



   Improving  – It's what we do. www.improvingenterprises.com
 Learning Solutions | Certified Consulting | Rural-Sourcing



 From: ozsilverlight@ozsilverlight.com
 [mailto:ozsilverli...@ozsilverlight.com] On Behalf Of Bruce Hopkins
 Sent: Thursday, February 05, 2009 5:20 PM
 To: ozsilverlight@ozsilverlight.com
 Subject: Silverlight Reporting apps



 Does anyone know of any open source or demo type apps to show how to
 create a reporting application with a Silverlight frontend that pulls data
 from an Oracle backend? I've got a little idea I want to play around with a
 bit and some examples may be useful.







 Thanks

 Bruce Hopkins

 770-528-4574

 Director Information Systems

 Chattahoochee Technical College

 http://www.chattcollege.com







 

 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com

 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists
 
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists

 
 Support procedure: https://www.codify.com/lists/support
 List address: ozsilverlight@ozsilverlight.com
 Subscribe: ozsilverlight-subscr...@ozsilverlight.com
 Unsubscribe: ozsilverlight-unsubscr...@ozsilverlight.com
 List FAQ: http://www.codify.com/lists/ozsilverlight
 Other lists you might want to join: http://www.codify.com/lists

 
 Support procedure: 

RE: Not SL related But .NET World

2009-01-02 Thread Miguel Madero
In the case of ASP.NET each website will be a different entry point so
each website will have a different web.config. 

 

Let's say you have two machines (UI and BLL) and you request the
default.aspx on the first website (http://uimachine/Default.aspx) and this
in turns call a webservice (http://bllmachine/SomeWebService.svc) each will
have its own configuration. 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:miguel.mad...@integradorestecnologicos.com m...@miguelmadero.com 
 +61 (0) 406-704-161

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: OzSilverlight@ozsilverlight.com
[mailto:ozsilverli...@ozsilverlight.com] On Behalf Of Muhammad Niaz
Sent: Saturday, 3 January 2009 2:21 AM
To: OzSilverlight@ozsilverlight.com
Subject: RE: Not SL related But .NET World

 

Ok Miguel, I agree with you about Entry Point of App but in case of if
Layers are on the same machine.

 

 

But when they are different machines like WebServices (have BLL as you ask).


But I think in that case we only have WSDL I think so. ?

Just calling of the WebMethods.?

I am not getting your this point.

 

 

 

 

 

 

 

Muhammad Niaz

Sr. Software Engineer

+92 321 569 4195

 

 

 

 

From: Miguel Madero [mailto:m...@miguelmadero.com] 
Sent: Friday, January 02, 2009 7:36 PM
To: OzSilverlight@ozsilverlight.com
Subject: RE: Not SL related But .NET World

 

It depends on the apps point of entry and in some sense, the physical
distribution of your app. Let's think the UI it's a console app
(console.exe), the user executes it and that loads other assemblies (bll.dll
and dal.dll), then config file for console.exe will contain the
configuration for the app including the ConnectionStrings. 

Something similar would happen if you have a winforms, website or wpf app
and all the other layers loaded in the same process or app domain (as
referenced dlls). 

 

If the layers are also split in different processes or machines, e.g. BLL is
in a different WebSite (e.g. exposes as webservices) we will have a
configuration for the client and another one for the BLL since each of those
will have their own point of entry. 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:miguel.mad...@integradorestecnologicos.com m...@miguelmadero.com 
 +61 (0) 406-704-161

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: OzSilverlight@ozsilverlight.com
[mailto:ozsilverli...@ozsilverlight.com] On Behalf Of Muhammad Niaz
Sent: Friday, 2 January 2009 9:44 PM
To: OzSilverlight@ozsilverlight.com
Subject: Not SL related But .NET World

 

Hi All,

This is not SL related question, but .NET :P related. Here is
the scenario.

 

 

Suppose I have 4 Projects in one solution.

 DTOs

 DAL

 BLL

 UI

 

This is a normal N Tiers App. So what is the problem here I am explaining.

 

I call BLL method in UI Layer which internally call DAL(offcourse) but in
DAL there is no App.Config, but you know its calling from UI Layer.

So in UI Layer Web.Config/App.Config contains ConnectionString not in DAL.

So when I call any BLL  method how its pick up the UI
connectionString.

 

 

I know it works but how, please explain technically.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Muhammad Niaz

Sr. Software Engineer

SigmaTec | +92 42 5887084

 

  _  

List address:  mailto:ozsilverlight@ozsilverlight.com
ozsilverlight@ozsilverlight.com
Subscribe:  mailto:ozsilverlight-subscr...@ozsilverlight.com
ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe:  mailto:ozsilverlight-unsubscr...@ozsilverlight.com
ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ:  http://www.codify.com/lists/ozsilverlight
http://www.codify.com/lists/ozsilverlight
Other lists you might want to join:  http://www.codify.com/lists
http://www.codify.com/lists

  _  

List address:  mailto:ozsilverlight@ozsilverlight.com
ozsilverlight@ozsilverlight.com
Subscribe:  mailto:ozsilverlight-subscr...@ozsilverlight.com
ozsilverlight-subscr...@ozsilverlight.com
Unsubscribe:  mailto:ozsilverlight-unsubscr...@ozsilverlight.com
ozsilverlight-unsubscr...@ozsilverlight.com
List FAQ:  http://www.codify.com/lists/ozsilverlight
http://www.codify.com/lists/ozsilverlight
Other lists you might want