Bon pour récupérer la langue et utiliser les ressources pour la localisation c'est OK si et seulement si j'utilise le code, mais si je fais xmlns:Trad="clr-namespace:Vins.My.Resources" et que j'essaye de faire
<UserControl.Resources> <Trad:Traduction x:Name="Lang"/> </UserControl.Resources>
La j'ai une erreur à l'execution Détails de l'erreur de la page Web
Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0) Horodateur : Mon, 13 Apr 2009 17:49:07 UTC
Message : Unhandled Error in Silverlight 2 Application AG_E_PARSER_UNKNOWN_TYPE [Line: 7 Position: 33] à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) à Vins.Page.InitializeComponent() à Vins.Page..ctor() à Vins.App.Application_Startup(Object o, StartupEventArgs e) à System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) à MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName) Ligne : 1 Caractère : 1 Code : 0
Bruno POUPON webmaster@primactif.com HTTP://WWW.PRIMACTIF.COM
|