Bing map control - Still showing data when you zoom in too far

2009-10-22 Thread David Burela
One issue i have with the bing map control, is that when you zoom in past the 
level where there is data, you get the no image icon everywhere.
Is there any way to keep the last real data, but still zoom in. Sure it would 
be pixelated, but that is preferable over showing nothing

David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Bing map control - Still showing data when you zoom in too far

2009-10-22 Thread David Burela
How about an interim fix? Are we able to detect client side if the tiles aren't 
available past a certain zoom level, so we can lock the zoom?

i.e. zoom factor 17 has tiles, they then try to zoom to 18. There aren't any 
tiles, so we manually set the zoom level back to 17?

David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/

From: ozsilverlight-boun...@ozsilverlight.com 
[ozsilverlight-boun...@ozsilverlight.com] On Behalf Of John OBrien 
[j...@soulsolutions.com.au]
Sent: Friday, 23 October 2009 10:30 AM
To: 'ozSilverlight'
Subject: RE: Bing map control - Still showing data when you zoom in too far

It’s a known issue David, we’re solving this currently on the server side. For 
performance in our pilot intranet application we put a tilehandler between the 
application and the real tiles, we’re caching tiles in SQL2008. From here it 
wasn’t too hard to detect no-image tiles then recursively fetch the tile above, 
resize and crop (and then cache as well).

My understanding is that a fix will be provided for the final release but it 
will rely on knowing where the imagery is in advance. Typically this is not 
compatible with your custom imagery overlays so it will be interesting to see 
the solution in the coming months.

John.

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela
Sent: Thursday, 22 October 2009 11:53 PM
To: ozSilverlight
Subject: Bing map control - Still showing data when you zoom in too far

One issue i have with the bing map control, is that when you zoom in past the 
level where there is data, you get the no image icon everywhere.
Is there any way to keep the last real data, but still zoom in. Sure it would 
be pixelated, but that is preferable over showing nothing

David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Databinding with Bing maps control

2009-11-02 Thread David Burela
For anyone that might be interested, I wrote a quick blog post on how to do 
databinding with the bing maps control
http://davidburela.wordpress.com/2009/11/02/databinding-shapes-with-the-bing-maps-control-for-silverlight/

Basicaly just need to create some data templates.
Hope it helps someone

David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: New release of the Silverlight Bing Maps control

2009-11-10 Thread David Burela
although one thing that IS annoying, is that it looks like you now need a bing 
maps key in order to use the control...


David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/

From: ozsilverlight-boun...@ozsilverlight.com 
[ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela 
[david.bur...@readify.net]
Sent: Wednesday, 11 November 2009 9:30 AM
To: ozSilverlight
Subject: New release of the Silverlight Bing Maps control

For anyone who hasn't seen the announcement yet today, they have released a new 
version of the silverlight bing maps control
http://www.microsoft.com/maps/

Changes to the SDK can be seen here 
http://msdn.microsoft.com/en-us/library/ee681889.aspx
the interesting one for me, is the inclusion of the MapItemsControl class, 
http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.mapitemscontrol.aspx
It allows for databinding to a map layer now, meaning I can get rid of the 
custom stuff on my blog :-)


David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Silverlight 4.0 beta

2009-11-22 Thread David Burela
The best place to read how to get started and the new features is here
http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx

David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/

From: ozsilverlight-boun...@ozsilverlight.com 
[ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Stephen Price 
[step...@littlevoices.com]
Sent: Monday, 23 November 2009 5:24 PM
To: ozSilverlight
Subject: Silverlight 4.0 beta

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


RE: $10 million with Bing Maps and the NAVTEQ LBS Challenge

2009-11-23 Thread David Burela
can you actually use the bing maps silverlight control in the competition?

I had a look at the competition rules. it said that you had to use the NAVTEQ 
maps + it had to run on one of their official devices, which were 3 windows 
mobile phones (and silverlight doesn't run on them)

David Burela
Readify | Senior Developer
Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia
M: +61 (0)407 363 860 | E: 
david.bur...@readify.netmailto:david.bur...@readify.net| W: 
www.readify.nethttp://www.readify.net/

From: ozsilverlight-boun...@ozsilverlight.com 
[ozsilverlight-boun...@ozsilverlight.com] On Behalf Of John OBrien 
[j...@soulsolutions.com.au]
Sent: Saturday, 14 November 2009 12:44 PM
To: 'ozSilverlight'
Subject: $10 million with Bing Maps and the NAVTEQ LBS Challenge

Fellow Silverlight devs,
As you know the new Bing Maps Silverlight control was released this week and 
now I have the exciting news that you can use it in a web application to win 
your share of $10,000,000 with the NAVTEQ Location Based Solution comp. Details 
are mainly focused around the mobile phone entries (where is Silverlight for 
mobile when we need it?) so I did an interview with Laura from NAVTEQ to get 
the details for us web developers.

http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/638/Win-your-share-of-10-000-000-with-Bing-Maps-and-Navteq.aspx

Any questions feel free to ask :)
John.
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Addins in expression blend 3

2010-02-01 Thread David Burela
For anyone that is interested, here is what i've found so far with Jason 
Stangroome's help.


1.   Reference Microsoft.Expression.Framework

2.   Make your class implement Microsoft.Expression.Framework.IPackage

3.   Done, blend will pass in the application context into your class so 
that you can interact with blend
You then just need to start blend like so blend.exe -addin:BurelaAddin.dll


You can get blend to start the addin automatically with a bit of extra work.

1.   Create a manifest text file (BurelaAddin.addin)

2.   Put in a single line in the manifest file that points to your .dll 
AddIn AssemblyFile=BurelaAddin.dll /

3.   Putt the manifest file and your dll in a subfolder of your blend 
directory called Addins

4.   Blend will now automatically start your addin

One heads up, there is a difference in how your addin starts up based on how 
you start blend

· Starting blend with Blend.exe -addin:BurelaAddin.dll: Blend will 
fully start up and THEN load your addin

· Starting blend by putting addin in /Addins: Blend will start your 
addin BEFORE blend has fully initialised. This means you can't do things like 
add menu items, as they don't exist yet.

Here is a quick example of how to do this yourself.
public class Class1 : IPackage
{
private IApplicationService _applicationService;

public void Load(IApplicationService applicationService)
{
_applicationService = applicationService;
applicationService.WindowService.Initialized += 
WindowService_Initialized;

//applicationService.CommandBarService.CommandBars[0].Items.AddMenu(Burelamenu,
 Burelamenu);//will crash if we don't use -addin:
}

void WindowService_Initialized(object sender, EventArgs e)
{

_applicationService.CommandBarService.CommandBars[0].Items.AddMenu(BurelaMenu,
 BurelaMenu);//Won't crash now, because the app has inited

var fileMenu = 
_applicationService.CommandBarService.CommandBars[0].Items[0] as 
ICommandBarMenu;
if (fileMenu != null)
fileMenu.Items.AddMenu(BurelamenuItem, BurelamenuItem);
}

public void Unload()
{

}
}

-David Burela

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Jonas Follesø
Sent: Tuesday, 2 February 2010 2:19 AM
To: ozSilverlight
Subject: Re: Addins in expression blend 3

Hi David,

I simply haven't found time to get my Colorful add-in up and running on 
Expression 3.0.

You are right that the add-in modell changed. It was actually never intended as 
a real add-in modell, but something used by the expression team to do things 
like automated testing.

Anyways, your best bet is to fire up Reflector and start digging around. I did 
that some time back, and could find a bomunch of hooks that looks interesting, 
so I am sure it is still possible to write add-ins.

Let us know if you find some useful information, as I still need to get mine 
updated to 3.0 :)

Good luck!

-jonas
On Mon, Feb 1, 2010 at 5:20 AM, David Burela 
david.bur...@readify.netmailto:david.bur...@readify.net wrote:
There doesn't seem to be too much information out there on creating add-ins for 
expression blend.
The main add-ins that existed (unify, colourful expression, xaml editor) are 
all still compiled for expression blend 2 but the add-in model changed in blend 
3, so looking at the source code on codeplex isn't a help.

Anyone got some links to get started?
-David Burela

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

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


RE: Extension model in Blend

2010-02-02 Thread David Burela
Looking forward to your post
I put together my notes in case it helps anyone and posted them on my blog 
along with a sample project
http://davidburela.wordpress.com/2010/02/02/guide-to-creating-expression-blend-3-addins/

David Burela

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Jose Fajardo
Sent: Tuesday, 2 February 2010 3:17 PM
To: ozsilverlight@ozsilverlight.com
Subject: Extension model in Blend

Hey David,

I will blog about this soon BUT if you want to learn how to extend Blend, go 
through the Microsoft.Extension.Prototyping* dll's. Sketchflow was built using 
the private blend addin model.

I believe a future version of Blend will have a public extension model. For now 
it's built your own plugins at your own risk..

Hit me up if you need some help working out how to do it all, or wait a week or 
two when i finally get out a couple of posts explaining how it works.

l8r


From: ozsilverlight-boun...@ozsilverlight.com 
[ozsilverlight-boun...@ozsilverlight.com] On Behalf Of 
ozsilverlight-requ...@ozsilverlight.com 
[ozsilverlight-requ...@ozsilverlight.com]
Sent: Tuesday, 2 February 2010 1:00 PM
To: ozsilverlight@ozsilverlight.com
Subject: ozsilverlight Digest, Vol 6, Issue 2

Send ozsilverlight mailing list submissions to
ozsilverlight@ozsilverlight.com

To subscribe or unsubscribe via the World Wide Web, visit
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
or, via email, send a message with subject or body 'help' to
ozsilverlight-requ...@ozsilverlight.com

You can reach the person managing the list at
ozsilverlight-ow...@ozsilverlight.com

When replying, please edit your Subject line so it is more specific
than Re: Contents of ozsilverlight digest...


Today's Topics:

   1. Addins in expression blend 3 (David Burela)
   2. Re: Addins in expression blend 3 (Jonas Folles?)


--

Message: 1
Date: Mon, 1 Feb 2010 15:20:02 +1100
From: David Burela david.bur...@readify.net
Subject: Addins in expression blend 3
To: ozSilverlight ozsilverlight@ozsilverlight.com
Message-ID:
469842e4eeba3d40bb5ae906cef5fa5d15f92fe...@rpex01.solar.system
Content-Type: text/plain; charset=us-ascii

There doesn't seem to be too much information out there on creating add-ins for 
expression blend.
The main add-ins that existed (unify, colourful expression, xaml editor) are 
all still compiled for expression blend 2 but the add-in model changed in blend 
3, so looking at the source code on codeplex isn't a help.

Anyone got some links to get started?
-David Burela
-- next part --
An HTML attachment was scrubbed...
URL: 
http://prdlxvm0001.codify.net/pipermail/ozsilverlight/attachments/20100201/6adaecf2/attachment-0001.html

--

Message: 2
Date: Mon, 1 Feb 2010 16:19:23 +0100
From: Jonas Folles? jo...@follesoe.no
Subject: Re: Addins in expression blend 3
To: ozSilverlight ozsilverlight@ozsilverlight.com
Message-ID:
bf5dfdbd1002010719qa6a01b6j520acb73c692e...@mail.gmail.com
Content-Type: text/plain; charset=windows-1252

Hi David,

I simply haven't found time to get my Colorful add-in up and running on
Expression 3.0.

You are right that the add-in modell changed. It was actually never intended
as a real add-in modell, but something used by the expression team to do
things like automated testing.

Anyways, your best bet is to fire up Reflector and start digging around. I
did that some time back, and could find a bomunch of hooks that looks
interesting, so I am sure it is still possible to write add-ins.

Let us know if you find some useful information, as I still need to get mine
updated to 3.0 :)

Good luck!

-jonas

On Mon, Feb 1, 2010 at 5:20 AM, David Burela david.bur...@readify.netwrote:

  There doesn?t seem to be too much information out there on creating
 add-ins for expression blend.

 The main add-ins that existed (unify, colourful expression, xaml editor)
 are all still compiled for expression blend 2 but the add-in model changed
 in blend 3, so looking at the source code on codeplex isn?t a help.



 Anyone got some links to get started?

 -David Burela

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


-- next part --
An HTML attachment was scrubbed...
URL: 
http://prdlxvm0001.codify.net/pipermail/ozsilverlight/attachments/20100201/0e54dcbf/attachment-0001.html

--

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


End of ozsilverlight Digest, Vol 6, Issue 2
***

Note:  The information contained

RE: Silverlight site.

2010-03-10 Thread David Burela
ick, i'm not a fan of the fold out thing at all
Whe whole everything jumps about animation is really offputting for me. maybe 
if it was slower, or less bouncy it'd be acceptable.

But how it is right now, I'm not a fan
-David Burela


From: ozsilverlight-boun...@ozsilverlight.com 
[ozsilverlight-boun...@ozsilverlight.com] On Behalf Of 
carl.scarl...@bankwest.com.au [carl.scarl...@bankwest.com.au]
Sent: Thursday, 11 March 2010 3:11 PM
To: ozsilverlight@ozsilverlight.com
Subject: RE: Silverlight site.

I like the foldy display.  Unfortunately it doesn’t work for me at work (where 
I’m stuck with IE6 due to our SOE *pout*).

The first time I selected something, half the foldy thing stayed visible and 
the scrollable selector didn’t appear.  I couldn’t navigate back until I used 
the browser’s back button, and then I got stuck at the #business_8 URL.

I had to force a page reload (Ctrl+F5).  It started to run better (the foldy 
thing correctly transitioned to the scrollable selector) but I still can’t go 
back.

It also took a while to load the page (the large gradient background image 
takes too long.

Nice try by MS.  I like what they’re trying to do.  Maybe it works better on 
IE8 (maybe I’ll try tonight).

Carl.

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Scott Barnes 
scott.bar...@readify.net
Sent: Thursday, 11 March 2010 11:55 AM
To: ozSilverlight ozsilverlight@ozsilverlight.com
Subject: Silverlight site.

http://www.microsoft.com/silverlight
has been  updated.

Thoughts? (i.e. i had nothing to do with it so unload good/bad)


__
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

___

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 information please visit http://www.messagelabs.com/email
__
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Any good books on Silverlight 3 4 and on MVVM

2010-03-28 Thread David Burela
I'd recommend spending the same amount of time watching the videos from Mix10
http://live.visitmix.com/Videos

Especially these MVVM sessions
Understanding the MVVM pattern http://live.visitmix.com/MIX10/Sessions/EX14
Building your own MVVM framework http://live.visitmix.com/MIX10/Sessions/EX15

There are a few sites that list all of the pure Silverlight sessions, but if 
you scan down through them you can easily pick out which ones would be the most 
relevant for you
-David Burela


From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Vinay Tripathi
Sent: Monday, 29 March 2010 2:34 PM
To: ozsilverlight@ozsilverlight.com
Subject: Any good books on Silverlight 3  4 and on MVVM

Hi ,

I was just wondering if you guys got any suggestions on some good books on 
Silverlight 3  4 and on MVVM?


Regards,

Vinay Tripathi


National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended 
recipient, please immediately notify us at 
postmas...@nab.com.aumailto:postmas...@nab.com.au or by replying to the 
sender, and then destroy all copies of this email. Except where this email 
indicates otherwise, views expressed in this email are those of the sender and 
not of National Australia Bank Ltd. Advice in this email does not take account 
of your objectives, financial situation, or needs. It is important for you to 
consider these matters and, if the e-mail refers to a product(s), you should 
read the relevant Product Disclosure Statement(s)/other disclosure document(s) 
before making any decisions. If you do not want email marketing from us in 
future, forward this email with unsubscribe in the subject line to 
unsubscripti...@nab.com.aumailto:unsubscripti...@nab.com.au in order to stop 
marketing emails from this sender. National Australia Bank Ltd does not 
represent that this email is free of errors, viruses or interference.
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: How to hack Expression Blend.

2010-04-02 Thread David Burela
Along a similar path, here are my notes on how to create your own addins for 
expression blend
http://davidburela.wordpress.com/2010/02/02/guide-to-creating-expression-blend-3-addins/

-David Burela

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Tim Heuer
Sent: Friday, 2 April 2010 4:36 AM
To: ozSilverlight
Subject: RE: How to hack Expression Blend.

Awesome.

Tim Heuer | +1 (602) 405-4567 | Microsoft Silverlight
blog: http://timheuer.com/blog/ | twitter: 
@timheuerhttp://twitter.com/timheuer

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Scott Barnes
Sent: Thursday, April 01, 2010 6:58 AM
To: ozSilverlight
Subject: FYI: How to hack Expression Blend.

In case any of you are curious, here's some basic how to on hacking 
Expression Blend's UI, tonight I wrote a quick blog post documenting it (ie you 
can really goof around with the UI inside the tool)

How to hack Expression Blend - http://bit.ly/9e4GQd

Would love to know if any of you are tinkering around in this space as well? 
any insights/tips?
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Introducing the Developer Blog Banter

2010-07-29 Thread David Burela
I am cross posting this to the Silverlight list, as people here might have
some very different responses to the standard ozDotNet mailing list.

 

 

Hi all,

I just announced edition #1 of the Developer Blog Banter. The Developer Blog
Banter is a regular article where passionate developers in the community
blog on a common topic. 

The purpose of the DBB is to get more conversation happening in the
developer community. I would love to see more discussion and cross posting
happening on our blogs.

 

To participate, all you need to do is write a blog post related to the topic
and track back to the original topic blog post. The list of participants
will be updated on the topic page so that everyone will be able to read how
other developers responded. I think it could be really interesting for us
all to see how others approach their development.

 

The central page with information is at

http://davidburela.wordpress.com/developer-blog-banter/

 

And the first topic to link back to is here

http://davidburela.wordpress.com/2010/07/30/developer-blog-banter-1-what-is-
your-preferred-technology-stack/

 

I hope many of you will participate, I look forward to seeing the wide range
of responses!

-David Burela

Senior Consultant

Hazaa

 

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


Re: Silverlight RIA Services

2010-08-16 Thread David Burela
Have you tried hitting the service directly in a browser?
You can do a basic check to ensure that the domain service is actually being
hosted.

If your fully qualified class name was
Myapp.RiaProject.Services.MyDomainService
then you would browse to it by just replacing the dots with - and adding
.svc
localhost:1234://Myapp-RiaProject-Services-MyDomainService.svc

-David Burela
Hazaa

On 15 August 2010 21:29, KO CHANG kochang@gmail.com wrote:

 Hi Shingi,

   It all look right to me, however, I am curious about the static
 declaration on title within the metadata class.  Is there a reason why it is
 static?

 Ko


 On Thu, Aug 12, 2010 at 9:19 PM, Shingi Mutandwa 
 shingi.mutan...@gmail.com wrote:



 The EDMX and the RIA services are in different projects and therefore the
 “Generate metadata” checkbox is disabled when generating the domain service
 in Visual Studio. However we created a partial class in the same project
 containing the EDMX and applied the [include] attr like so:-



 [MetadataType(typeof(PersonMetadata))]
 public partial class Person
 {
 internal static class PersonMetadata
 {
 [Include]
 public static Title Title { get; set; }
 }
 }



 And this is the method inside the domain service:-



 public IQueryablePerson GetPeople()




 {

return this.ObjectContext.People.Include(Title);

 }





 And here is the generated data contract on the client:-



 public sealed partial class Person : Entity




 {



 /// summary



 /// Gets or sets the associated see cref=Title/ entity.
 /// /summary

 [Association(Title_Person, TitleId, Id, IsForeignKey=true)]




 [XmlIgnore()]
 public Title Title

 {

 get

 {

 if ((this._title == null))

 {

 this._title = new EntityRefTitle(this, Title, 
 this.FilterTitle);




 }

 return this._title.Entity; // * throws exception here



 }

 set

 {

 …

 }

 }



 ….

 }



 Exception Details:-

 {System.InvalidOperationException: This EntityContainer does not contain
 an EntitySet of type 'Deintegro.DAL.Data.Title'. If the type is external to
 this EntityContainer, please make sure you’ve called AddReference to
 establish the external link.
at
 System.ServiceModel.DomainServices.Client.EntityContainer.GetEntitySet(Type
 entityType)
at System.ServiceModel.DomainServices.Client.EntityRef`1.get_Entity()
at Deintegro.DAL.Data.Person.get_Title()}System.Exception
 {System.InvalidOperationException}




 On Thu, Aug 12, 2010 at 8:57 PM, Shingi Mutandwa 
 shingi.mutan...@gmail.com wrote:

 Deleted the generated_code folder but I am still having the same issue.
 The domain service class was generated by Visual studio and I did not add
 anything to it.


 On Thu, Aug 12, 2010 at 8:09 PM, KO CHANG kochang@gmail.com wrote:

 Hi Shinji,

   It is likely that you didn't declare any ria service operation
 regarding the entity.

 For example, have you got any [Insert], [Update], [Delete], [Query]
 methods within the domain service?

 Ko


 ___
 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


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


Design time data

2010-08-16 Thread David Burela
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


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

2010-08-16 Thread David Burela
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 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

Decoupling from RIA services

2010-09-01 Thread David Burela
I am working on a new Silverlight application.
It is a standard MVVM application using RIA services to retrieve the data.

I am trying to not have the domain service in my ViewModel, and I have
managed to get 99% of the domain context out.
The only thing that I am just left with, is a EntitySet as the base of one
of my collections, which I'm not too worried about. But for testing, etc. I
need to be able to new up one of these.

When i go
var entityset = new EnitySetProducts();
It does create a new EntitySet. However, it doesn't initialise it's internal
list. So when I try to add items to it in my tests the whole thing throws
null reference exceptions. Does anyone have a way of creating EntitySets
client side so I can have everything decoupled from my domain context?

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


Re: Decoupling from RIA services

2010-09-03 Thread David Burela
I am using ViewModels that use IRepositoryTEntity. I had methods on the
IRepository that would return EntitySetTEntity.
The problem with them, was that I was not able to create EntitySets for a
unit test...

I solved that problem by just having the repository process the results and
return back a List or ObservableCollection.
I was only using EntitySets because of a control I was using, so I just
ripped apart their source code and replaced the underlying EntitySet
collection with an ObservableCollection.

Up until that point I had everything working well and decoupled.
The entire ViewModel just had ObservableCollections and IRepositoryTEntity
and was completely unit testable.
View - ViewModel - IRepository - Ria DataContext

The next problem came when I tried to apply paging on top of this.

I created a new PagingCollectionTEntity to hold this. It implements the
IPagableCollectionView interface, which all paging grids use (builtin
silverlight, Telerik, etc.). The grid would make the calls to the interface
that it was paging, and the PagingCollectionTEntity would automatically
pass on the correct parameters to the repository.

The problem I had then was how can you apply arbitrary filtering to your
grid through a repository. You can filter a grid by any column and you need
those to go through. Creating 50 methods/parameters on a repository isn't
feasible. So I tried to get my grid/PagingCollection to work on the
IQueryable.
*The problem being you can not assign an IQueryable object to the
datacontext*

You can create your own IQueryable with
Enumerable.EmptyTEntity.AsQueryable().  Usually you could just union that
with a query you already have going. If you could do that, you could pass
your IQueryable down to the datacontext and everything would be fine.
However you can only GET the IQueryable from a datacontext, you can not SET
it. And they have not exposed the .Union() method on the datacontext query.
If they did expose either a union or a way to set the IQueryable, then it
would be possible to have a completely decoupled viewmodel that allowed you
to do arbitrary paging  filtering :-(

-David Burela



On 3 September 2010 16:18, Steven Nagy steven.n...@readify.net wrote:

 Hi David,



 We are using RIA and a standard ViewModel takes an IRepositoryT where T :
 Entity.

 When I want to track lists of items I use ObservableCollectionT as well
 and add it to the EntitySet if I want it commited to the database.

 Under the hood, an IRepositoryProduct and IRepositoryCategory will use
 the same domain context however we are in the process of adjusting this to
 use the same domain context only per ViewModel (ie unit of work) and this is
 managed by the IOC container.



 However I never really need to create NEW entity sets and was unsure how to
 answer your question. Usually with .Include(“Products”) you would get all
 the products with a category, or at least an empty entity set if there are
 none, and you can still add to that existing entity set on the Category
 entity.



 *Steven Nagy
 *Readify | Senior Consultant

 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 *David Burela
 *Sent:* Thursday, 2 September 2010 4:45 PM
 *To:* ozSilverlight
 *Subject:* Re: Decoupling from RIA services



 Answer: Just hack it out and use an ObservableCollection instead.



 On 2 September 2010 14:10, David Burela david.bur...@gmail.com wrote:

 I am working on a new Silverlight application.

 It is a standard MVVM application using RIA services to retrieve the data.



 I am trying to not have the domain service in my ViewModel, and I have
 managed to get 99% of the domain context out.

 The only thing that I am just left with, is a EntitySet as the base of
 one of my collections, which I'm not too worried about. But for testing,
 etc. I need to be able to new up one of these.



 When i go

 var entityset = new EnitySetProducts();

 It does create a new EntitySet. However, it doesn't initialise it's
 internal list. So when I try to add items to it in my tests the whole thing
 throws null reference exceptions. Does anyone have a way of creating
 EntitySets client side so I can have everything decoupled from my domain
 context?



 -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


Ria Services : Where clause with multiple items

2010-09-06 Thread David Burela
This seems like a simple problem but I am stumped.

I have a screen with a number of filters. In one instance I have checkboxes
of countries (Australia, China, Japan, etc).
I want to filter to only show products that are located in the checked
countries. So products listed in Australia OR in China OR in Japan.

My issue is that the RIA servies query object, only lets you chain up ANDs

var query = ProductDomainContext.ProductSelectQuery();
if(AustraliaIsSelected)
query = query.Where(p = p.Country == Australia);
if(ChinaIsSelected)
query = query.Where(p = p.Country == China);

Doing it this way will end up with a query where the country is Australia
AND China.
I was hoping I could go

var checkedCountries = new []{Australia, China};
query = query.Where(p = checkedCountries.Contains(p.Country)

But RIA complains that it does not support the contains operation.
Any ideas?

-David Burela



P.S.
I can't do it on one line like this

query.Where(p = p.Country==Australia || p.Country == China);

Because at runtime I don't know how many are there. The above is just a
simplified example
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Ria Services : Where clause with multiple items

2010-09-06 Thread David Burela
This sounded like the perfect solution.
But unfortunately RIA crashes
*Nested query expressions are not supported*

-David Burela

On 6 September 2010 16:41, Peter Gfader pe...@gfader.com wrote:

 Hi David

 Check out  the PredicateBuilder from J. Albahiri (Nesting Predicates)

 Source here
 http://www.albahari.com/nutshell/predicatebuilder.aspx

 http://www.albahari.com/nutshell/predicatebuilder.aspx.peter.gfader.
 http://blog.gfader.com/
 http://twitter.com/peitor


 On Mon, Sep 6, 2010 at 4:15 PM, David Burela david.bur...@gmail.comwrote:

 This seems like a simple problem but I am stumped.

 I have a screen with a number of filters. In one instance I have
 checkboxes of countries (Australia, China, Japan, etc).
 I want to filter to only show products that are located in the checked
 countries. So products listed in Australia OR in China OR in Japan.

 My issue is that the RIA servies query object, only lets you chain up ANDs

 var query = ProductDomainContext.ProductSelectQuery();
 if(AustraliaIsSelected)
 query = query.Where(p = p.Country == Australia);
 if(ChinaIsSelected)
 query = query.Where(p = p.Country == China);

 Doing it this way will end up with a query where the country is Australia
 AND China.
 I was hoping I could go

 var checkedCountries = new []{Australia, China};
 query = query.Where(p = checkedCountries.Contains(p.Country)

 But RIA complains that it does not support the contains operation.
 Any ideas?

 -David Burela



 P.S.
 I can't do it on one line like this

 query.Where(p = p.Country==Australia || p.Country == China);

 Because at runtime I don't know how many are there. The above is just a
 simplified example

 ___
 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


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


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

2010-09-07 Thread David Burela
Your talk was 6.5GB in 1080p
last night I cleaned up the audio (removed background noise / fans), and set
it rendering. It has been going for 12 hours so far and has another 3+ hours
to go.
Then I'll need to split it into 2 halves because vimeo only supports files
up to 2gb.
Should be up by tomorrow night

-David Burela

On 17 August 2010 15:54, Miguel Madero m...@miguelmadero.com wrote:

 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

Free beta certification exams for Silverlight 4

2010-10-14 Thread David Burela
I thought the list would be interested in this
Microsoft just announced the availability of beta exams for Silverlight 4 
Windows Azure. They will be available until November 17th.
It is a free way to experience what Microsoft certifications are like, and
it will help prepare you if you do want to take the exams later

http://davidburela.wordpress.com/2010/10/15/free-silverlight-azure-beta-exams/

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


Melbourne SDDN - Thursday 27th April

2011-04-27 Thread David Burela
Hi all.
A reminder that tomorrow night is Melbourne SDDN (Silverlight Designer 
Developer Network).

There are 2 talks (upcoming WinPhone7 updates), free pizza, and a chance to
talk to other fellow xamlites.
details here: http://sddn.org.au/meetings/melbourne/melbourne-april-meeting/

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


Tip: Silverlight page authorisation

2011-05-15 Thread David Burela
I found a way to easily secure any Silverlight application (that is using
the Navigation framework), and thought I would share it with the list.
To secure your application you only need to put around 15 lines of xaml into
MainPage.xaml
The syntax is similar to the page authorisation config in an ASP.Net
application

authLoader:NavigationAuthRule Uri=/Views/CustomerPage.xaml
authLoader:Deny Users=? /
authLoader:Allow Users=* /
/authLoader:NavigationAuthRule

http://www.davidpoll.com/2010/01/01/opening-up-silverlight-4-navigation-authenticationauthorization-in-an-inavigationcontentloader/

There are two controls:
*AuthContentLoade*r will check that the user is allowed to access the page.
If they aren't then an UnauthorizedAccessException is thrown.
To catch this the AuthContentLoader control is wrapped in a *ErrorPageLoader
* control. This is configured to catch the Unauthorized exception and can
redirect to a login screen

Hope it helps someone
-David Burela
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Melbourne May SDDN meeting

2011-05-23 Thread David Burela
Just a quick reminder to all that the Melbourne SDDN meeting is on this
Thursday
http://sddn.org.au/meetings/melbourne/melbourne-may-meeting/


We have two sessions this month. A design session presented by *Silverlight
MVP* Alex Knight, and a session on creating pixel shaders!
Date: Thursday May 26th
Time: Pizza 5:30, sessions start at 6pm
Address: Microsoft Theater
Level 5, 4 Freshwater Place
Southbank
Melbourne, Victoria 3004
Australia

Register here: http://sddn-may.eventbrite.com/

*UX Crash course: Design, workflow and something else*
Alex Knight gives a crash course in creating experiences that will leave
users wanting more. We will take a quick tour through the processes used to
take your project from a simple idea, to a masterpiece and throw in a few
other tips and tricks along the way.
Alex Knight works as a Designer at Xamling, and as a Silverlight MVP, he
focuses on creating rich and enjoyable experiences for Desktop, web and
Mobile.

*Create a Perfect Alpha Channel for video*
Want to understand Pixel Shaders a little better?  Clinton will show you how
to think when designing pixel shaders, how they behave and their
limitations.  He'll work through an example on creating the Perfect Alpha
Channel for video embedded in Silverlight using a common practice used in
After Effects and 3D/Stereosopic video.
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Melbourne May SDDN meeting

2011-05-24 Thread David Burela
Update: The meeting has been postponed until next month. Due to an issue
with the booking

-David Burela

On 24 May 2011 15:09, David Burela david.bur...@gmail.com wrote:

 Just a quick reminder to all that the Melbourne SDDN meeting is on this
 Thursday
 http://sddn.org.au/meetings/melbourne/melbourne-may-meeting/


 We have two sessions this month. A design session presented by *Silverlight
 MVP* Alex Knight, and a session on creating pixel shaders!
 Date: Thursday May 26th
 Time: Pizza 5:30, sessions start at 6pm
 Address: Microsoft Theater
 Level 5, 4 Freshwater Place
 Southbank
 Melbourne, Victoria 3004
 Australia

 Register here: http://sddn-may.eventbrite.com/

 *UX Crash course: Design, workflow and something else*
 Alex Knight gives a crash course in creating experiences that will leave
 users wanting more. We will take a quick tour through the processes used to
 take your project from a simple idea, to a masterpiece and throw in a few
 other tips and tricks along the way.
 Alex Knight works as a Designer at Xamling, and as a Silverlight MVP, he
 focuses on creating rich and enjoyable experiences for Desktop, web and
 Mobile.

 *Create a Perfect Alpha Channel for video*
 Want to understand Pixel Shaders a little better?  Clinton will show you
 how to think when designing pixel shaders, how they behave and their
 limitations.  He'll work through an example on creating the Perfect Alpha
 Channel for video embedded in Silverlight using a common practice used in
 After Effects and 3D/Stereosopic video.

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


Silverlight tip: server side RIA services custom validation

2011-06-03 Thread David Burela
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


SDDN Melbourne - June 30

2011-06-27 Thread David Burela
This month Silverlight MVP Alex Knight is speaking on UX workflow

*UX Crash course: Design, workflow and something else*
Alex Knight gives a crash course in creating experiences that will leave
users wanting more. We will take a quick tour through the processes used to
take your project from a simple idea, to a masterpiece and throw in a few
other tips and tricks along the way.

*Alex Knight* works as a Designer at Xamling, and as a Silverlight MVP, he
focuses on creating rich and enjoyable experiences for Desktop, web and
Mobile.

*Create a Perfect Alpha Channel for video*

Want to understand Pixel Shaders a little better? Clinton will show you how
to think when designing pixel shaders, how they behave and their
limitations. He'll work through an example on creating the Perfect Alpha
Channel for video embedded in Silverlight using a common practice used in
After Effects and 3D/Stereosopic video.

*Clinton *has a keen interest in Video with several short film awards under
his belt also a sound engineer who produced remixes for Kylie Minogue,
Bardot and other acts in the early 2000's. He began computer programming on
a ZX81 in 1983 and has continued this passion through the years with a main
focus on media and 3D vision(stereoscopy). He is also creator of Stereosopic
calculation software Stereoscopic Master, created in WinForms, now
Silverlight.

Details: http://sddn-may-2011.eventbrite.com/

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


Re: Build

2011-09-21 Thread David Burela
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 there 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


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


SDDN Melbourne - September. Windows 8

2011-09-22 Thread David Burela
Registrations for this month's SDDN are now open
http://sddn-sep-2011.eventbrite.com/

It is focused on Windows 8, WinRT, future of XAML, etc.
Hope to see a lot of you there.
-David Burela
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Ria services, Data annotations

2012-03-01 Thread David Burela
I've got a weird problem.

There are tables in a database with these additional columns CreatedById,
ModifiedById. (They are nvarchar, not null)
There is then an entity framework model for this (again, strings, not null).
RIA services is used to share the entities with the client.

The problem is in Silverlight side. If I create a new Product class,
display it in a Dataform to allow the user to edit price, etc. I can't
submit product to the domain service because validation fails CreatedById
can not be null. It makes no sense to set those values on the client side
as they could spoof those files. I have logic on the domain service side
that looks at the current authenticated user and automatically sets those
fields.

But I can't submit them because validation keeps failing on those 2 fields.
Is there a [NotRequired] property I could put on the domain service
metadata file?
-David Burela
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


XDDN Melbourne - March - Windows 8

2012-03-14 Thread David Burela
Hi all.
If you are in Melbourne, XDDN is doing a session on Windows 8 next week
(Wed 21st March)
http://xddn-melbourne-march2012.eventbrite.com/

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


Windows 8 Developer camps

2012-03-26 Thread David Burela
Microsoft are organising a number of Windows 8 Developer camps around
Australia in capital cities.
The full list of dates can be found here
http://www.lalaninja.com.au/2012/03/19/windows-8-developer-camps-australia/

If you're interested in Windows 8 development, it will be a day full of
presentations, and a chance to sit in a room and hack away with
other passionate developers.
Register if you're interested. The Melbourne one is this weekend

-David Burela
Senior Consultant
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Regenerating Ria services metadata

2012-04-04 Thread David Burela
This has been bugging me for years with Ria services.
You generate the domain service and the associated metadata when you first
create the domain service.
Then you update the Entity Framework model

I keep searching online for ways to regenerate the metadata file, but all I
find is post after post of people requesting the same feature.
Has anyone put out a visual studio extension that lets us just right click
*regenerate* the metadata yet?
-David Burela
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Issue with RIA services and 302 redirects

2012-04-22 Thread David Burela
Long story short,
I am using ADFS + WIF in my silverlight app.
But after an hour the token expires, the silverlight framework
automatically requests a new token from the ADFS server.
So far so good, BUT the responses are now 302 redirects to the new URL.

From what I can research, it looks like Silverlight RIA services calls have
NO idea how to handle 302 responses, and so the domain service call just
fails.
Does anyone know if it is possible to get the client side generat
domainService context classes to handle 302 redirects correctly?
-David Burela
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Creating Office documents

2012-05-22 Thread David Burela
I know that you can create Word  Excel documents with 3rd party
components, without having office installed on the client
e.g.
http://samples.infragistics.com/sllob/infragistics-word
http://samples.infragistics.com/sllob/infragistics-excel

If you want a free component to do it, there might be a way to do it with
the open office library and do it server side? But then you still need to
find a way to send it to the client, as Greg mentioned
-David Burela

On 19 May 2012 13:36, Greg Keogh g...@mira.net wrote:

 Les, one of my colleagues must be one of the few living people on earth who
 has managed to decrypt the open office SDK and has written library code
 that
 creates documents directly. It's all written in C++ so unfortunately it
 can't be used on the SL client side. There is nowhere to save the generated
 file anyway except for isolated storage (buried deep in the file system
 somewhere). OR... can DL apps write to My Documents? I forget.

 Perhaps the idea of creating the documents on the server and placing them
 in
 a public web folder has merit. Then I must wonder if it's possible to have
 a
 hyperlink in an SL app that can open a URL just like an a tag does, I'll
 bet that's forbidden as well but I'll run a search on it.

 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


Is it time to open source Silverlight?

2013-11-21 Thread David Burela
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