I use actually Visual Studio and this new fetaures. I effectively like your design and i'm waiting for your newt book ;-)
in waiting such a thing, maybe you could help me on a little problem. I don't want to annoying you with that but if you know...
I take your architecture with Silverlight and I'm stopped by inheritance with the generic class. I 've already make a MASTERPAGE-Like system with silverlight. each new child page is a UserControl in this fondation and I use the WCF service to be able to use my Entity Class Object.
apparently, we can't use abstract class to use the designer in visual studio with generic inheritance...
Code:
namespace App.UI.Silverlight
{
public partial class BasePage: UserControl {}
public partial class BaseEditPage<T> : BasePage where T: WCFService.ENTBaseEO, new() {}
public partial class MySomethingEdit: BaseEditPage<WCFService.ENTSomethingEO> {}
}
for this code, no problem. I think the problem is only the declaration on the XAML file:
Code:
<my:BaseEditPage x:Class="App.UI.Silverlight.MySomethingEdit"
x:TypeArguments="appwcf:ENTSomethingEO"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:my="clr-namespace:App.UI.Silverlight;assembly=MyAppAssembly"
xmlns:mywcf="clr-namespace:App.UI.Silverlight.WCFService;assembly=MyAppAssembly"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
<...>
This won't compile. Probably because the hidden file of the xaml (xxxxxx.g.cs) don't generate the GENERIC structure inheritance "BaseEditPage<ENTSomethingEO>". It's always only inheritance from BaseEditPage !
Do you know something about that and eventually, how do you plan to make your design class correspond to WPF design logic ?
To read you,
Patrice