Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7495199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:59:52+00:00 2026-05-29T17:59:52+00:00

Using the Windows 8 developer preview I’m trying to use a simple User Control

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:59:53+00:00Added an answer on May 29, 2026 at 5:59 pm

    Check http://asyncui.codeplex.com/SourceControl/changeset/view/7969#139603

    You can create a UserControl by 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:

    <UserControl
        x:Class="Xyzzer.AsyncUI.MainPage"
        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"
        mc:Ignorable="d"
        d:DesignHeight="768"
        d:DesignWidth="1366">
    
        <Grid
            x:Name="LayoutRoot"
            Background="#FF0C0C0C">
            <Grid
                VerticalAlignment="Top"
                Height="140">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition
                        Width="120" />
                    <ColumnDefinition
                        Width="*" />
                </Grid.ColumnDefinitions>
                <Button
                    x:Name="BackButton"
                    IsEnabled="False" />
                <TextBlock
                    x:Name="PageTitle"
                    Text="Some Page!"
                    Grid.Column="1" />
            </Grid>
        </Grid>
    </UserControl>
    

    and code behind like this:

    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Windows.Foundation;
    using Windows.UI.Popups;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Data;
    
    namespace Xyzzer.AsyncUI
    {
        partial class MainPage
        {
            public MainPage()
            {
                InitializeComponent();
            }
        }
    }
    

    You can then use that control elsewhere in XAML like this:

    <xa:MainPage
        xmlns:xa="using:Xyzzer.AsyncUI" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I use Visual Studio 2011 running on the Windows 8 Developer Preview to
Possible Duplicate: using legacy assemblies in metro style app I have downloaded and installed
i am using the windows developer preview with the visual studio 11, when i
Has anyone managed to get Ninject working in Metro Style app using the Windows
Being a Windows developer I'm currently working on my own project using LAMP. I
We encountered a problem with using Subversion on Windows. A developer committed a file
I have developed a Windows service using Visual Studio 2008. I want to install
I have a site developed in ASP.NET and hosted on a windows server using
I'm running Visual Studio Developer Preview 2011 on a Windows 7 x64 machine. I'm
Hello I am a beginning android developer using windows and the eclipse IDE to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.