Using the Windows 8 developer preview I’m trying to use a simple User Control I have created using the built in Windows Metro style template.
As yet I have not been able to get my application to resolve the reference to the control even though it is in the same project and namespace as the page referencing it. I just get “The type was not found”
I’ve looked through the “Build” samples and could not find an sample C# project that uses a user control.
Does anyone know where I could find one?
Using the Windows 8 developer preview I’m trying to use a simple User Control
Share
Check http://asyncui.codeplex.com/SourceControl/changeset/view/7969#139603
You can create a
UserControlby right clicking your project and selecting Add/New Item (Ctrl+Shift+A) and selecting “User Control” from the list of item templates. You then name it and end up with the XAML that you can modify to add more UI like here:and code behind like this:
You can then use that control elsewhere in XAML like this: