locked
WPF app failed the Direct3D test

    Question

  • I developed a Windows Store app which passed certification process. Then I submitted an upgrade which contains minor code changes. This time the second version did not pass certification process because it failed Direct3D test. But my application is not using any Direct3D interface. It is using DirectX via WPF. Is there something I need to declare in app manifest?
    Sunday, October 14, 2012 8:26 AM

Answers

  • It was probably a bug in the Windows Store. Next submissions were okay.

    Tuesday, January 22, 2013 9:59 AM

All replies

  • Can you explain what your app is doing more clearly?

    You cannot use WPF in a Windows Store app.

    --Rob

    Sunday, October 14, 2012 8:24 PM
    Moderator
  • It is standard XAML + C# app.
    Sunday, October 14, 2012 11:02 PM
  • Are you using the ad control in your app by any chance?  Can you give me more details about the controls you are using in your app?  What is the 'Minor Code Change' you did?

    Jeff Sanders (MSFT)

    Monday, October 15, 2012 6:37 PM
    Moderator
  • Minor change - I just changed string pointing my service and changed string specifying format of TimeSpan.ToString method.

    I don't use an ad control.

    This is my XAML code:

    <common:LayoutAwarePage
        x:Class="Dajbych.KosmoCountdown.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:Dajbych.KosmoCountdown"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:vm="using:Dajbych.KosmoCountdown.ViewModels"
        xmlns:common="using:Dajbych.KosmoCountdown.Common"
        mc:Ignorable="d">
        <common:LayoutAwarePage.DataContext>
            <vm:DataViewModel/>
        </common:LayoutAwarePage.DataContext>
    
        <Grid Style="{StaticResource LayoutRootStyle}">
            <Grid.RowDefinitions>
                <RowDefinition Height="140"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            
            <!-- Landscape režim -->
            <Grid Name="portrait" Width="1140" Height="570" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="190"/>
                    <RowDefinition Height="190"/>
                    <RowDefinition Height="190"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="285"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="285"/>
                </Grid.ColumnDefinitions>
                <Image Grid.Row="0" Grid.Column="0" Width="285" Height="190" Source="{Binding Page1.Image}" Visibility="{Binding Page1.IsEmpty}" />
                <Image Grid.Row="1" Grid.Column="2" Width="285" Height="190" Source="{Binding Page2.Image}" Visibility="{Binding Page2.IsEmpty}" />
                <Image Grid.Row="2" Grid.Column="0" Width="285" Height="190" Source="{Binding Page3.Image}" Visibility="{Binding Page3.IsEmpty}" />
                <TextBlock Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Page1.Title}" Visibility="{Binding Page1.IsEmpty}" Style="{StaticResource SubheaderTextStyle}" Margin="20,0,0,0" Height="35" VerticalAlignment="Top" TextAlignment="Left" />
                <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Page2.Title}" Visibility="{Binding Page2.IsEmpty}" Style="{StaticResource SubheaderTextStyle}" Margin="0,0,20,0" Height="35" VerticalAlignment="Top" TextAlignment="Right" />
                <TextBlock Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Page3.Title}" Visibility="{Binding Page3.IsEmpty}" Style="{StaticResource SubheaderTextStyle}" Margin="20,0,0,0" Height="35" VerticalAlignment="Top" TextAlignment="Left" />
                <TextBlock Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Page1.Description}" Visibility="{Binding Page1.IsEmpty}" Style="{StaticResource BodyTextStyle}" Margin="20,35,0,0" TextAlignment="Left" />
                <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Page2.Description}" Visibility="{Binding Page2.IsEmpty}" Style="{StaticResource BodyTextStyle}" Margin="0,35,20,0" TextAlignment="Right" />
                <TextBlock Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Page3.Description}" Visibility="{Binding Page3.IsEmpty}" Style="{StaticResource BodyTextStyle}" Margin="20,35,0,0" TextAlignment="Left" />
            </Grid>
    
            <!-- Portrait a snapped režim -->
            <ScrollViewer Name="snapped" Grid.Row="1" Visibility="Collapsed" Padding="10,0,10,10">
                <StackPanel Orientation="Vertical" Width="320">
                    <TextBlock Text="{Binding Page1.Header}" Visibility="{Binding Page1.IsEmpty}" Style="{StaticResource SubheaderTextStyle}" Margin="0,30,0,10" />
                    <Image Width="285" Height="190" Source="{Binding Page1.Image}" Visibility="{Binding Page1.IsEmpty}" Margin="0,5,00,5" />
                    <TextBlock Text="{Binding Page1.Description}" Visibility="{Binding Page1.IsEmpty}" Style="{StaticResource BodyTextStyle}" />
                    <TextBlock Text="{Binding Page2.Header}" Visibility="{Binding Page2.IsEmpty}" Style="{StaticResource SubheaderTextStyle}" Margin="0,30,0,10" />
                    <Image Width="285" Height="190" Source="{Binding Page2.Image}" Visibility="{Binding Page2.IsEmpty}" Margin="0,5,00,5" />
                    <TextBlock Text="{Binding Page2.Description}" Visibility="{Binding Page2.IsEmpty}" Style="{StaticResource BodyTextStyle}" />
                    <TextBlock Text="{Binding Page3.Header}" Visibility="{Binding Page3.IsEmpty}" Style="{StaticResource SubheaderTextStyle}" Margin="0,30,0,10" />
                    <Image Width="285" Height="190" Source="{Binding Page3.Image}" Visibility="{Binding Page3.IsEmpty}" Margin="0,5,00,5" />
                    <TextBlock Text="{Binding Page3.Description}" Visibility="{Binding Page3.IsEmpty}" Style="{StaticResource BodyTextStyle}" />
                </StackPanel>
            </ScrollViewer>
    
            <TextBlock Name="title" Grid.Row="0" Text="{StaticResource AppName}" Style="{StaticResource PageHeaderTextStyle}" Margin="130,60,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <TextBlock Name="countdown" Grid.Row="0" Text="{Binding Countdown, Converter={StaticResource TimeSpanToCountdownConverter}}" Visibility="{Binding IsTime, Converter={StaticResource BooleanToVisibilityConverter}}" Style="{StaticResource HeaderTextStyle}" Margin="0,60,130,0" VerticalAlignment="Top" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="1" Visibility="{Binding IsEmpty, Converter={StaticResource BooleanToVisibilityConverter}}" HorizontalAlignment="Center" Text="Data budou dostupná až se zařízení připojí k internetu a stáhne aktuální obsah." VerticalAlignment="Center" Style="{StaticResource SubheaderTextStyle}"/>
    
            <VisualStateManager.VisualStateGroups>
    
                <!-- Visual states reflect the application's view state -->
                <VisualStateGroup x:Name="ApplicationViewStates">
                    <VisualState x:Name="FullScreenLandscape"/>
                    <VisualState x:Name="Filled"/>
    
                    <!-- The back button respects the narrower 100-pixel margin convention for portrait -->
                    <VisualState x:Name="FullScreenPortrait">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="title" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0,40,0,0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="snapped" Storyboard.TargetProperty="IsEnabled">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
                            </ObjectAnimationUsingKeyFrames>
                            
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="title" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Center"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="snapped" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="portrait" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="countdown" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0,100,0,0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="countdown" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Center"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
    
                    <!-- The back button and title have different styles when snapped -->
                    <VisualState x:Name="Snapped">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="title" Storyboard.TargetProperty="Style">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SubheaderTextStyle}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="countdown" Storyboard.TargetProperty="Style">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SubheaderTextStyle}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="title" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0,30,0,0"/>
                            </ObjectAnimationUsingKeyFrames>
    
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="title" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Center"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="snapped" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="portrait" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="countdown" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0,80,0,0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="countdown" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Center"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard> 
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
        </Grid>
    </common:LayoutAwarePage>
    Monday, October 15, 2012 6:51 PM
  • Can you email me here?

    http://blogs.msdn.com/jpsanders/contact.aspx


    Jeff Sanders (MSFT)

    Monday, October 15, 2012 7:38 PM
    Moderator
  • It was probably a bug in the Windows Store. Next submissions were okay.

    Tuesday, January 22, 2013 9:59 AM