none
Problem with MouseEnter

    Question

  • I have created XAML page and put it in ASP.NET page. When I try to view that asp.net page i have the next error:

    ErrorCode:2024

    ErrorType:ParseError

    Message: Invalid atribute value BLOCKED SCRIPT onMouseEnter for property MouseEnter

     this is the line of code in my xaml page that contain error:

     <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="BLOCKED SCRIPTonMouseEnter">

    and this is the script that handles the MouseEnter event 

     <script type="text/javascript">
        function onMouseEnter(sender, args)
        {
        var animName = (sender.Width==60) ?
                  "rasteAnim" : "opadaAnim"
                  
        var sl = sender.getHost();
        var anim = sl.content.findName(animName);
        if (anim)
        anim.begin();
        }
        </script>

    The script is located in <head> part of my aspx page. Is there any solution for my problem.

    Monday, February 25, 2008 11:02 AM

All replies

  • Why do you have MouseEnter="BLOCKED SCRIPTonMouseEnter"? I would try just changing it to

    <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="onMouseEnter">

    Just a thought...

    Tuesday, February 26, 2008 1:42 AM
  • Hello

    You wright a wrong function name bcoz in func name u provide a space Plz remove that space  

    <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="BLOCKED_SCRIPTonMouseEnter">

    Tuesday, February 26, 2008 4:46 AM
  • In my code instead of BLOKED_SCRIPT it's written javascript in all places with : on the end, I just can't write properly on this forum. So, just change BLOKED_SCRIPT with javascript an plz help me to solve my problem. Thank you all.

    Tuesday, February 26, 2008 3:44 PM
  • Hi:

      No there should only be the function name. You cannot add scripts in that way (not like what you do in html).

      Just a sample. This will work:

    function TbMouseEnter(sender,eventArgs)
     {
     alert('hello')
     }

      <TextBlock Canvas.Left="500" Text="AA" x:Name="Tb" MouseEnter="TbMouseEnter"></TextBlock>

      while this will not:

    function TbMouseEnter(sender,eventArgs)
     {

     }

      <TextBlock Canvas.Left="500" Text="AA" x:Name="Tb" MouseEnter="alert('hello');TbMouseEnter"></TextBlock>

    Regards

    Wednesday, February 27, 2008 1:27 AM
  • @Allen Chen

    I have listened your advice and changed line of code i my xaml page, but i now have another error in the same line: AG_E_PARSER_PROPERTY_VALUE 

    Wednesday, February 27, 2008 6:06 AM
  •  Hi -

     The error is because your text block is not closed properly. Add a forward slash before the closing ">":

    <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="onMouseEnter"/>
     

    Jeff 

    Wednesday, February 27, 2008 10:13 AM
  • I have allready closed text block. The whole textblock code looks like this.

    <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="onMouseEnter">
        <TextBlock.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="1" ScaleY="1"/>
            <SkewTransform AngleX="0" AngleY="0"/>
            <RotateTransform Angle="0"/>
            <TranslateTransform X="0" Y="0"/>
          </TransformGroup>
        </TextBlock.RenderTransform>
      </TextBlock>

    Thursday, February 28, 2008 6:13 AM
  • Is this a Silverlight 1.1/2.0 application? In Silverlight 1.1/2.0 your handlers are suposed to be in managed code, not JavaScript. If your Canvas contains a x:Class attribute it will expect you handler to be in that class, not in an external JavaScript. I can't really find a way to let your objects use both JavaScript and managed handlers. So if you need it to be a JavaScript handler, yo have to declare an event from managed code, make the class scriptable and then in your managed handler for mousenter raise the event and let the JavaScript handle that event. That would be my solution...

    Thursday, February 28, 2008 7:58 AM
  • This is Silverlight 1.0 application. Actually i am developing ASP.NET web site and i am using xaml pages for some functionalities of my website.Can I use  your solution in SL 1.0 app or only in SL 1.1/2.0 app? 

    Thursday, February 28, 2008 8:05 AM
  • My solution was based on you solution being 2.0. Does your xaml code have a x:Class attribute? That is the only way I can get the same problem is by trying to use a JavaScript eventhandler from a 2.0 application.
    I created the following XAML:

    <Canvas xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
       <
    TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20
         
    RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="onMouseEnter">
       <
    TextBlock.RenderTransform>
          <
    TransformGroup>
          <
    ScaleTransform ScaleX="1" ScaleY="1"/>
          <
    SkewTransform AngleX="0" AngleY="0"/>
          <
    RotateTransform Angle="0"/>
          <
    TranslateTransform X="0" Y="0"/>
          </
    TransformGroup>
       </
    TextBlock.RenderTransform>
       </
    TextBlock>
    </
    Canvas>

    And the following javascript and it works...:

    function onMouseEnter(sender,args)
    {
       alert(
    "Hello");
    }

    Thursday, February 28, 2008 2:19 PM
  • Same error again.

    This is my xaml page. I used Expression blend 2 (Silverlight 1.0 application) to make this page. After the xaml code I put the code of my aspx page and that page will show my xaml page.

    <Canvas x:Name="parentCanvas"
            xmlns="http://schemas.microsoft.com/client/2007"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Loaded="Page_Loaded"
            x:Class="Diplomski_1._0_Silverlight.PageLogIgrac;assembly=ClientBin/Diplomski%201.0%20Silverlight.dll"
            Width="1024"
            Height="768"
            Background="#FF848484"
            >
      <Canvas.Resources>
        <Storyboard x:Name="rasteAnim">
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.5"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.5"/>
          </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="opadaAnim">
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2.5"/>
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2.5"/>
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
          </DoubleAnimationUsingKeyFrames>
        </Storyboard>
      </Canvas.Resources>
      <Canvas Width="400" Height="198">
        <Rectangle Width="400" Height="198" RadiusX="91.5" RadiusY="91.5">
          <Rectangle.Fill>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              <GradientStop Color="#FFFDFF00" Offset="0"/>
              <GradientStop Color="#FF848484" Offset="0.542"/>
            </LinearGradientBrush>
          </Rectangle.Fill>
        </Rectangle>
        <TextBlock Width="312" Height="98" Text="eduIGRA" TextWrapping="Wrap" FontSize="72" FontWeight="Bold" Foreground="#FF000000" Canvas.Left="56"/>
        <TextBlock Width="320.167" Height="95.637" FontSize="72" FontWeight="Bold" Text="eduIGRA" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5" Canvas.Left="78.814" Canvas.Top="63">
          <TextBlock.Foreground>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              <GradientStop Color="#FF848484" Offset="0.364"/>
              <GradientStop Color="#FF000000" Offset="1"/>
            </LinearGradientBrush>
          </TextBlock.Foreground>
          <TextBlock.RenderTransform>
            <TransformGroup>
              <ScaleTransform ScaleX="1" ScaleY="-1"/>
              <SkewTransform AngleX="-0.148" AngleY="0"/>
              <RotateTransform Angle="0"/>
              <TranslateTransform X="-24.488" Y="0"/>
            </TransformGroup>
          </TextBlock.RenderTransform>
        </TextBlock>
      </Canvas>
      <Canvas Width="1021.18" Height="49.781" Canvas.Top="141">
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="24.906"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="49.812"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="74.718"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="99.624"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="124.53"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="149.436"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="174.343"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="199.249"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="224.155"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="249.061"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="273.967"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="298.873"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="323.779"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="348.685"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="373.591"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="398.497"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="423.403"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="448.309"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="473.215"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="498.122"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="523.028"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="547.934"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="572.84"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="597.746"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="622.652"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="647.558"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="672.464"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="697.37"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="722.276"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="747.182"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="772.088"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="796.995"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="821.901"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="846.807"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="871.713"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="896.619"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="921.525"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="946.431"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="971.337"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="996.243"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="0.031" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="24.937" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="49.843" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="74.749" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="99.655" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="124.562" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="149.468" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="174.374" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="199.28" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="224.186" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="249.092" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="273.998" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="298.904" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="323.81" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="348.716" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="373.622" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="398.528" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="423.434" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="448.341" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="473.247" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="498.153" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="523.059" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="547.965" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="572.871" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="597.777" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="622.683" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="647.589" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="672.495" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="697.401" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="722.307" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="747.214" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="772.12" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="797.026" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="821.932" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="846.838" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="871.744" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="896.65" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="921.556" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="946.462" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="971.368" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="996.274" Canvas.Top="24.875"/>
      </Canvas>
      <Canvas Width="1021.18" Height="49.781" Canvas.Top="467">
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="24.906"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="49.812"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="74.718"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="99.624"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="124.53"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="149.436"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="174.343"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="199.249"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="224.155"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="249.061"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="273.967"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="298.873"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="323.779"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="348.685"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="373.591"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="398.497"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="423.403"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="448.309"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="473.215"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="498.122"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="523.028"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="547.934"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="572.84"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="597.746"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="622.652"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="647.558"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="672.464"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="697.37"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="722.276"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="747.182"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="772.088"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="796.995"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="821.901"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="846.807"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="871.713"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="896.619"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="921.525"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="946.431"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="971.337"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="996.243"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="0.031" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="24.937" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="49.843" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="74.749" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="99.655" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="124.562" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="149.468" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="174.374" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="199.28" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="224.186" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="249.092" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="273.998" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="298.904" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="323.81" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="348.716" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="373.622" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="398.528" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="423.434" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="448.341" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="473.247" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="498.153" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="523.059" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="547.965" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="572.871" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="597.777" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="622.683" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="647.589" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="672.495" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="697.401" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="722.307" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="747.214" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="772.12" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="797.026" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="821.932" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="846.838" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="871.744" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="896.65" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="921.556" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="946.462" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="971.368" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="996.274" Canvas.Top="24.875"/>
      </Canvas>
      <Rectangle Width="250" Height="100" Stroke="#FF000000" Canvas.Left="639" Canvas.Top="280" RadiusY="31.5" RadiusX="31.5" StrokeThickness="3">
        <Rectangle.Fill>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Pad">
            <GradientStop Color="#FF000000" Offset="0"/>
            <GradientStop Color="#FFFFFFFF" Offset="1"/>
          </LinearGradientBrush>
        </Rectangle.Fill>
      </Rectangle>
      <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="onMouseEnter">
        <TextBlock.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="1" ScaleY="1"/>
            <SkewTransform AngleX="0" AngleY="0"/>
            <RotateTransform Angle="0"/>
            <TranslateTransform X="0" Y="0"/>
          </TransformGroup>
        </TextBlock.RenderTransform>
      </TextBlock>
    </Canvas>

    This is code rom aspx page: 

     <%@ Page Language="C#" AutoEventWireup="true" CodeFile="LogIgrac.aspx.cs" Inherits="LogIgrac" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <script type="text/javascript" src="silverlight.js"></script>
        <script type="text/javascript">
        function onMouseEnter(sender, args)
        {
        alert("Hello");
    //    var animName = (sender.Width==60) ?
    //              "rasteAnim" : "opadaAnim"
    //              
    //    var sl = sender.getHost();
    //    var anim = sl.content.findName(animName);
    //    if (anim)
    //    anim.begin();
    //    }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div id="slControlHost">
        <script type="text/javascript">
         Silverlight.createObjectEx(
         {source: 'PageLogIgrac.xaml',
          parentElement:document.getElementById('slControlHost'),
          id:'slControl',
          properties:{
          width:'1024',
          height:'768',
          inplaceInstallPrompt:false,
          background:'#00FFFFFF',
          isWindowless:'true',
          framerate:'24',
          version:'0.90.0'
         },
       events:{
        onError:null,
        onLoad:null
       },
       context:null
      }
     );    
        </script>
        </div>
        </form>
    </body>
    </html>

     

    Thursday, February 28, 2008 3:21 PM
  • Hi:

      I tested your code on my side and it works fine. Could you test it in a new project to see if it works?

      BTW,

        function onMouseEnter(sender, args)
        {
        alert("Hello");
    //    var animName = (sender.Width==60) ?
    //              "rasteAnim" : "opadaAnim"
    //              
    //    var sl = sender.getHost();
    //    var anim = sl.content.findName(animName);
    //    if (anim)
    //    anim.begin();
    // <---Remove this  }


    Regards

    Thursday, February 28, 2008 9:01 PM
  • As I have said before. You have a x:Class attribute in your root canvas and because of this your code expects the handler to be in managed code in your dll-file and not in javascript on your page.

    <Canvas x:Name="parentCanvas"
            xmlns="http://schemas.microsoft.com/client/2007"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Loaded="Page_Loaded"
            x:Class="Diplomski_1._0_Silverlight.PageLogIgrac;assembly=ClientBin/Diplomski%201.0%20Silverlight.dll"    <----- This line is the problem...
            Width="1024"
            Height="768"
            Background="#FF848484"
            >

    Friday, February 29, 2008 3:46 AM
  • @Allen Chen: I tried in a new project just like you said me and it's not working again. Same error.

    @ZeroKoll: My app will not work if I delete that line of code. Is there any other way to connect storyboard with mouse events? I will try anything else, I need that to work. If you know any useful link, sample code or something else plz send me. Thnx.

    P.S. As I said, I'm using SL 1.0 applications and I'm developing ASP.NET 3.5 web app.   

    Friday, February 29, 2008 8:32 AM
  • But that line of code tells Silverlight that it is a 1.1 application using managed code. And having that means that you have to have your handler in managed code and not in JavaScript. Silverlight 1.0 does not use an assembly and hence does not support the x:Class attribute.

    Friday, February 29, 2008 10:10 AM
  • Can you or anyone else explain me how to create control for mouse enter or any other event. What changes do I have to make in my code or I need to write new? Thnx
    Saturday, March 01, 2008 11:09 AM
  • try adding the following to the class Diplomski_1._0_Silverlight.PageLogIgrac

    protected void onMouseEnter(object sender, EventArgs e)
    {
       // do what you want to be done...
    }

    Saturday, March 01, 2008 12:45 PM
  • Hi:

      Try following steps to test:

    1. Create a new project, New Web Site->SilverLight Script Web

    2. Replace Scene.xaml with:

    <Canvas xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
      <Canvas.Resources>
        <Storyboard x:Name="rasteAnim">
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.5"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.5"/>
          </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="opadaAnim">
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2.5"/>
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2.5"/>
            <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
          </DoubleAnimationUsingKeyFrames>
        </Storyboard>
      </Canvas.Resources>
      <Canvas Width="400" Height="198">
        <Rectangle Width="400" Height="198" RadiusX="91.5" RadiusY="91.5">
          <Rectangle.Fill>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              <GradientStop Color="#FFFDFF00" Offset="0"/>
              <GradientStop Color="#FF848484" Offset="0.542"/>
            </LinearGradientBrush>
          </Rectangle.Fill>
        </Rectangle>
        <TextBlock Width="312" Height="98" Text="eduIGRA" TextWrapping="Wrap" FontSize="72" FontWeight="Bold" Foreground="#FF000000" Canvas.Left="56"/>
        <TextBlock Width="320.167" Height="95.637" FontSize="72" FontWeight="Bold" Text="eduIGRA" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5" Canvas.Left="78.814" Canvas.Top="63">
          <TextBlock.Foreground>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              <GradientStop Color="#FF848484" Offset="0.364"/>
              <GradientStop Color="#FF000000" Offset="1"/>
            </LinearGradientBrush>
          </TextBlock.Foreground>
          <TextBlock.RenderTransform>
            <TransformGroup>
              <ScaleTransform ScaleX="1" ScaleY="-1"/>
              <SkewTransform AngleX="-0.148" AngleY="0"/>
              <RotateTransform Angle="0"/>
              <TranslateTransform X="-24.488" Y="0"/>
            </TransformGroup>
          </TextBlock.RenderTransform>
        </TextBlock>
      </Canvas>
      <Canvas Width="1021.18" Height="49.781" Canvas.Top="141">
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="24.906"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="49.812"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="74.718"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="99.624"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="124.53"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="149.436"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="174.343"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="199.249"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="224.155"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="249.061"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="273.967"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="298.873"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="323.779"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="348.685"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="373.591"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="398.497"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="423.403"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="448.309"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="473.215"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="498.122"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="523.028"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="547.934"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="572.84"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="597.746"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="622.652"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="647.558"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="672.464"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="697.37"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="722.276"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="747.182"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="772.088"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="796.995"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="821.901"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="846.807"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="871.713"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="896.619"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="921.525"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="946.431"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="971.337"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="996.243"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="0.031" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="24.937" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="49.843" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="74.749" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="99.655" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="124.562" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="149.468" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="174.374" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="199.28" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="224.186" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="249.092" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="273.998" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="298.904" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="323.81" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="348.716" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="373.622" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="398.528" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="423.434" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="448.341" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="473.247" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="498.153" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="523.059" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="547.965" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="572.871" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="597.777" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="622.683" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="647.589" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="672.495" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="697.401" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="722.307" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="747.214" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="772.12" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="797.026" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="821.932" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="846.838" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="871.744" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="896.65" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="921.556" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="946.462" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="971.368" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="996.274" Canvas.Top="24.875"/>
      </Canvas>
      <Canvas Width="1021.18" Height="49.781" Canvas.Top="467">
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="24.906"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="49.812"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="74.718"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="99.624"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="124.53"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="149.436"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="174.343"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="199.249"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="224.155"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="249.061"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="273.967"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="298.873"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="323.779"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="348.685"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="373.591"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="398.497"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="423.403"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="448.309"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="473.215"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="498.122"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="523.028"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="547.934"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="572.84"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="597.746"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="622.652"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="647.558"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="672.464"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="697.37"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="722.276"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="747.182"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="772.088"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="796.995"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="821.901"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="846.807"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="871.713"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="896.619"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="921.525"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="946.431"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="971.337"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="996.243"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="0.031" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="24.937" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="49.843" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="74.749" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="99.655" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="124.562" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="149.468" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="174.374" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="199.28" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="224.186" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="249.092" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="273.998" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="298.904" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="323.81" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="348.716" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="373.622" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="398.528" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="423.434" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="448.341" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="473.247" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="498.153" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="523.059" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="547.965" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="572.871" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="597.777" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="622.683" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="647.589" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="672.495" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="697.401" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="722.307" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="747.214" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="772.12" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="797.026" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="821.932" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="846.838" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="871.744" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="896.65" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="921.556" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="946.462" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF454545" RadiusX="0" RadiusY="0" Canvas.Left="971.368" Canvas.Top="24.875"/>
        <Rectangle Width="24.906" Height="24.906" Fill="#FF686868" RadiusX="0" RadiusY="0" Canvas.Left="996.274" Canvas.Top="24.875"/>
      </Canvas>
      <Rectangle Width="250" Height="100" Stroke="#FF000000" Canvas.Left="639" Canvas.Top="280" RadiusY="31.5" RadiusX="31.5" StrokeThickness="3">
        <Rectangle.Fill>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Pad">
            <GradientStop Color="#FF000000" Offset="0"/>
            <GradientStop Color="#FFFFFFFF" Offset="1"/>
          </LinearGradientBrush>
        </Rectangle.Fill>
      </Rectangle>
      <TextBlock Width="60" Height="25" Canvas.Left="737" Canvas.Top="318" Text="IGRAJ" TextWrapping="Wrap" FontSize="20" RenderTransformOrigin="0.5,0.5" x:Name="textBlock" MouseEnter="onMouseEnter">
        <TextBlock.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="1" ScaleY="1"/>
            <SkewTransform AngleX="0" AngleY="0"/>
            <RotateTransform Angle="0"/>
            <TranslateTransform X="0" Y="0"/>
          </TransformGroup>
        </TextBlock.RenderTransform>
      </TextBlock>
    </Canvas>

    3. Replace Scene.js with:

    if (!window.ScriptWeb6)
     window.ScriptWeb6 = {};

    ScriptWeb6.Scene = function()
    {
    }

    ScriptWeb6.Scene.prototype =
    {
     handleLoad: function(plugIn, userContext, rootElement)
     {
      this.plugIn = plugIn;
      
     
     }
     
    }

    4. Add javascript to Default.html:

    ......

        <script type="text/javascript">
        function onMouseEnter(sender, args)
       {
     
       alert("Hello");
       
    }
        </script>
    </head>

    .....

    5. Start debugging. When mouse enters the TextBlock you should see the message box.

    Regards

     

    Monday, March 03, 2008 3:45 AM