Hi.
If you want to use "{yourUserControl}.g.cs" for automatic binding xaml object, I don't know how it's possible.
But if you want to port a 1.1 project to 2.0, there is a simple way.
Try this.
1. xaml file's BuildAction must be changed 'SilverlightPage'(or 'EmbededResource') to 'Resource'.
2. in 1.1,
System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream("{xaml file's path in 1.1 Style}");
_root = (Canvas)this.InitializeFromXaml(new System.IO.StreamReader(s).ReadToEnd());
Change this part as follows.
System.Windows.Resources.StreamResourceInfo sri = System.Windows.Application.GetResourceStream(new System.Uri("{xaml file's path in 2.0 Style}", System.UriKind.Relative));
string sXaml = (new System.IO.StreamReader(sri.Stream)).ReadToEnd();
this._root = InitializeFromXaml(sXaml) as Canvas;
and I make a remark about 'xaml file's path'
in 1.1 -> '{namespace}.{filename}.xaml'
in 2.0 -> '/{assemblyname}; component/{subdirectory}/{filename}.xaml'
If you change like this, you cannot use auto-generation of xaml object. So you must manually bind all xaml object to use, as you did in 1.1 alpha.
but you don't need to update all the *g.cs files everytime.
I hope that this answered your question. Good luck!