Help! What is wrong!

Oct 8, 2010 at 1:33 AM

What is wrong with this code below:

<UserControl x:Class="Test.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"
             xmlns:balder3d="clr-namespace:Balder.Objects.Geometries;assembly=Balder"
             xmlns:rendering="clr-namespace:Balder.Rendering;assembly=Balder"
             xmlns:balder="clr-namespace:Balder;assembly=Balder"
             xmlns:control="clr-namespace:Balder.Display;assembly=Balder"
    mc:Ignorable="d" d:DesignHeight="512" d:DesignWidth="512">
    <Grid Width="450" Height="450" Background="Black">
        <control:Viewport Width="100" Height="100">
            <balder3d:Box Width="10" Height="10" Color="Red" x:Name="viewport">

            </balder3d:Box>
        </control:Viewport>
    </Grid>
</UserControl>

I have all of the assembly things correct. I am fairly new at this.

Coordinator
Oct 8, 2010 at 6:08 AM

I recommend watching the Getting Started screencast.

There are quite a few things wrong in your Xaml.

Coordinator
Oct 8, 2010 at 6:11 AM

Also the integrate with Balder articles by Xianzhong Zhu, part 1,2,3, found on the frontpage are useful.

 

Hope this helps.