Nothing gets displayed when debugging Microsoft Surface

Posted by leftend on Stack Overflow See other posts from Stack Overflow or by leftend
Published on 2010-06-01T20:11:40Z Indexed on 2010/06/01 20:13 UTC
Read the original article Hit count: 278

I am trying to write my first Microsoft Surface application, and am doing the development on the Surface unit itself. I successfully re-created the quick "Photos" application that is shown on the PDC Video, however, now that I'm trying to create my own app - nothing actually shows up when I run it. I'm mainly just adding ScatterViews right now - and they show up fine in the designer, but as soon as I hit F5 - the shell is shown on the surface - but none of the ScatterViews show up.

Here's my xaml code so far. Am I missing something??

<s:SurfaceWindow x:Class="SurfaceUITreeDemo.TreeDemo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    Title="WYITT Tree Demo" AllowsTransparency="False" Background="Beige">
  <s:SurfaceWindow.Resources>
    <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/TreeDemoBackground.jpg"/>
  </s:SurfaceWindow.Resources>

  <Grid Background="{StaticResource WindowBackground}" >
        <s:ScatterView Name="test">
            <Image Source="C:\dev\Network-Alt-icon.png"/>
        </s:ScatterView>

            <s:ScatterView Height="100" Margin="456,160,348,0" Name="scatterView1" VerticalAlignment="Top" Background="Black">
            <s:ScatterViewItem Height="100" Width="150">
                <Image Source="C:\dev\Network-Alt-icon.png"/>
            </s:ScatterViewItem>
            <s:ScatterViewItem></s:ScatterViewItem>
            ScatterView
        </s:ScatterView>
    </Grid>
</s:SurfaceWindow>

© Stack Overflow or respective owner

Related posts about surface

Related posts about microsoft-surface