(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Forums

Search in:

Go

Is it possible to use PathListBox in Silverlight Splash Screen.

  • AnilSKamble
    AnilSKamble
    0 points
    0 posts
    Nov 27, 2012, 09:40 AM
        Report Abuse
    Dear All,

    I am using simple PathListBox animation in Silverlight 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/...donModules.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


    Reply
There are no posts in this thread.

    To reply to this thread you must Log In to your account


    Thread


    Tags: 
    silverlight
    • Asked
      496 days ago
    • Viewed
      232
    • Last Activity

    Related Threads


    Shortcuts