是否可以在Splash Screen中使用PathListBox。 [英] Is it possible to use PathListBox in Splash Screen.

查看:78
本文介绍了是否可以在Splash Screen中使用PathListBox。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我在启动画面中使用简单的PathListBox动画。但它给了我错误的装配错误如下;



错误:Silverlight应用程序中的未处理错误

代码:2005

类别:ParserError

消息:未知命名空间http://schemas.microsoft.com/expression/2010/controls。

文件:http: //localhost/LDAddonModules.Web/ClientBin/LDAddonModules.xap

行:35

职位:122





启动画面编码如下;

Dear All,

I am using simple PathListBox animation in splash screen. But it’s giving me error of missing assembly is as follows;

Error: Unhandled Error in Silverlight Application
Code: 2005
Category: ParserError
Message: Unknown namespace http://schemas.microsoft.com/expression/2010/controls.
File: http://localhost/LDAddonModules.Web/ClientBin/LDAddonModules.xap
Line: 35
Position: 122


Splash screen coding is as follows;

<UserControl 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:my="clr-namespace:SilverFlow.Controls;assembly=SilverFlow.Controls"

             xmlns:ec="http://schemas.microsoft.com/expression/2010/controls" 

             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 

             xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 

             x:Class="Silverlight_4_Trial.nMainPage"

    d:DesignHeight="768" d:DesignWidth="1360" mc:Ignorable="d">
    <UserControl.Resources>
        <Style x:Key="TextBlockStyle1" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontFamily" Value="DigifaceWide"/>
            <Setter Property="FontSize" Value="30.333"/>
            <Setter Property="Height" Value="35"/>
        </Style>

        <Storyboard x:Name="MoveLetters" RepeatBehavior="ForEver">
            <DoubleAnimation Duration="0:0:10" To="1" Storyboard.TargetProperty="(PathListBox.LayoutPaths)[0].(LayoutPath.Start)" Storyboard.TargetName="pathListBox" d:IsOptimized="True">
                <DoubleAnimation.EasingFunction>
                    <BounceEase EasingMode="EaseIn"/>
                </DoubleAnimation.EasingFunction>
            </DoubleAnimation>
        </Storyboard>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
    	<i:Interaction.Triggers>
    		<i:EventTrigger>
    			<ei:ControlStoryboardAction Storyboard="{StaticResource MoveLetters}"/>
    		</i:EventTrigger>
    	</i:Interaction.Triggers>
        <Grid.Background>
            <ImageBrush Stretch="UniformToFill" ImageSource="Splsh_Bck.png"/>
        </Grid.Background>
        <Button x:Name="btnOpnPg" Content="Click me" Click="btnOpnPg_Click" Grid.Row="0" Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Top"/>
    	<ec:PathListBox x:Name="pathListBox" Height="112.5" Margin="504,3,511,0" VerticalAlignment="Top" WrapItems="True">
    		<ec:PathListBox.LayoutPaths>
    			<ec:LayoutPath SourceElement="{Binding ElementName=___PathName_}" Distribution="Even" Capacity="25" FillBehavior="NoOverlap" Orientation="OrientToPath" Start="0.03"/>
    		</ec:PathListBox.LayoutPaths>
    		<TextBlock Text="T" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="H" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="I" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="N" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="K" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text=" " Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="B" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="R" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="O" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="K" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="I" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="N" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="K" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="I" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="G" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text=" " Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="T" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="H" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="I" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="N" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="K" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text=" " Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="L" Style="{StaticResource TextBlockStyle1}"/>
    		<TextBlock Text="D" Style="{StaticResource TextBlockStyle1}"/>
            <TextBlock Text=" " Style="{StaticResource TextBlockStyle1}"/>
    	</ec:PathListBox>
        <Path x:Name="___PathName_" Data="M500,150 L539,81 L573,50 L610,28 L647,18 L684,18 L728,21 L767,34 L796,52 L818,80 L842,118 L863,161" Height="143" Margin="500,18,497,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top"/>
        <StackPanel Orientation="Horizontal"/>
    </Grid>
</UserControl>





Kindly guide me how to remove this error



Thanks & Regards







Anil Kamble



Kindly guide me how to remove this error

Thanks & Regards



Anil Kamble

推荐答案

You can find the solution here: http://social.msdn.microsoft.com/Forums/en-US/silverlightgen/thread/999e8306-1c12-47fe-b6fc-2b62f7c20570[^]



Best regards.
You can find the solution here: http://social.msdn.microsoft.com/Forums/en-US/silverlightgen/thread/999e8306-1c12-47fe-b6fc-2b62f7c20570[^]

Best regards.


这篇关于是否可以在Splash Screen中使用PathListBox。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆