Click here to Skip to main content
15,894,460 members

Is it possible to use PathListBox in Splash Screen.

Anil_S.Kamble asked:

Open original thread
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;
HTML
<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
Tags: Silverlight

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900