http://karlshifflett.wordpress.com/2009/11/19/silverlight-3-4-library-sharin
g-with-net-4-0-library-or-wpf/
No more linked files!!!
Enjoy this great feature.
kdawg
ValidatesOnDataErrors (enables IDataErrorInfo)
TargetNullValue (enables binding to Nullable types correctly)
StringFormat (say good-bye to most of those converters)
-----Original Message-----
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com]
--
Quidquid latine dictum sit, altum sonatur.
- Whatever is said in Latin sounds profound.
War is peace. Freedom is slavery. Bugs are features.
-----Original Message-----
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com]
On Behalf Of Karl Shifflett
Sent: Thursday, November 19, 2009 8:21 AM
To: wpf-di...@googlegroups.com
Shawn,
Not exactly sure how far this goes.
I don't think there is magic here, just compat between namespaces in both plaform's .dlls.
I can look into the deep details when I get back from vacation.
I've been using/testing this and have not had any issues with my framework and entity sharing.
Karl
-----Original Message-----
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com]
On Behalf Of Karl Shifflett
Sent: giovedì 19 novembre 2009 14:31
To: wpf-di...@googlegroups.com
Subject: [WPF Disciples] Re: Silverlight 3 & 4 Library Sharing with .NET 4.0
Library or WPF (fixed link)
I posted on Silverlight 3 & 4 Library Sharing with .NET 4.0 Library or WPF.
-----Original Message-----
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com]
On Behalf Of Karl Shifflett
Sent: Thursday, November 19, 2009 5:21 AM
To: wpf-di...@googlegroups.com
Michael,
You commented, “I faced a lot of problems. Sometimes, we can't compile the project for some reasons.”
That was last year, this capability is new.
If you start with a Silverlight Class library that does not reference Silverlight specific code, this works.
If you reference Silverlight Prism and expect cross compile, not sure you’ll get it.
Maybe Glenn Block can comment on this.
What I’ve seen as the problem is, developers mix compatible code with non-compatible code. This was actually very easy to do with File Linking and is a supported scenario.
What I have found is that keeping the apples in one basket and the oranges in another basket always works. Mixing the two, can under certain circumstances cause issues.
All that said, the “Utility of the Feature” is where the debate could be.
I love this feature for the capability to share business entities and framework code that I use in WPF too.
I’m sure there are other scenarios where developers will take this, but will hit a wall. When that happens, report it on MS Connect.
Cheers,
Karl
Not sure this feature enables that scenario but that scenario might just be
enabled having nothing to do with this.
Best place to get the answer is here:
http://forums.silverlight.net/forums/53.aspx
Cheers,
Karl
Glenn
> <http://karlshifflett.wordpress.com/2009/11/19/silverlight-3-4-library-shari
> ng-with-net-4-0-library-or-wpf/>
> g-with-net-4-0-library-or-wpf/
>
> No more linked files!!!
>
> Enjoy this great feature.
>
> kdawg
>
>
>
>
>
>
>
> --
> Don't go the way life takes you.
> Take life the way you go
>
> http://michaelsync.net
>
>
--
Sent from my mobile device
I've done Part I of a 2 part series on writing design-times for custom
controls for Visual Studio 2010.
http://karlshifflett.wordpress.com/2009/11/20/extensibility-series-wpf-silve
rlight-design-time-code-sharing-part-i/
The design-time code is actually pretty easy to write.
The above post takes you through getting the metadata loaded. I've included
a tutorial breadcrumb that walks you through the metadata loading pieces.
This post also makes use of a common design-time assembly that has the code
for both the WPF & Silverlight versions of the custom control I provided.
On my way to Hawaii to board a ship to write code for a week.
Cheers,
kdawg
During testing of my control, I discovered a bug in the WPF GridSplitter
during the process. That took me time to prove it was not my control, get
the bug submitted into the bug system and figure out a workaround.
I'll write the blog post after Thanksgiving.
Cheers,
kdawg
-----Original Message-----
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com]
On Behalf Of Karl Shifflett
Sent: Friday, November 20, 2009 9:50 PM
To: wpf-di...@googlegroups.com
Glenn
--
--
Assembly Portability is not quite all non-UI assemblies. Going from memory, I recall mscorlib, System.dll, System.Core.dll and System.ComponentModel.Composition (maybe there is one more than that). You of course have to use 'compatible' APIs within the assemblies.
Richard Lander (the PM owning) will be posting on this soon.. let's wait until then and then share our feedback. He is eager to hear it.
Thanks!
We are working on a new portable subset in CLR that will work across
all runtimes. ( Eventually it will likely have portable UI
abstractions as well.
1. Provide some guidance material. Explain how you can use partial
classes/methods to keep code clean of too many pragmas that cause
maintainance issues.
2. Provide official #defines that are automatically defined by the
various platforms (I honestly don't remember if this was done, I just
have a vague recollection of having to define my own in Onyx).
3. Make platform choice something that you can tie to a project's
configuration, rather than to the project! This is the big one. Today,
you have to have separate project's and use file linking in one of
them. This is a tedious and error prone task. It would be much better
if I could have a single project with "WPF Debug"/"WPF
Release"/"Silverlight Debug"/"Silverlight Release" configurations.
This could even benefit developers that want to have projects that
target different versions of the runtime.