Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Blinking effect in ShapeNode (Read 2887 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Blinking effect in ShapeNode
Feb 8th, 2011 at 3:23pm
Print Post  
Hi,

We have ShapeNodes in our Diagram. We are applying trigger on ShapeNode when "IsMouseOver" property is "true" and setting its "BitMapEffect" property to "bitmapeffect".

OuterGlowBitmapEffect bitmapeffect = new OuterGlowBitmapEffect();
           bitmapeffect.GlowColor = Color.FromRgb(255, 140, 000);
           bitmapeffect.GlowSize = 6;
           bitmapeffect.Noise = 0;
           bitmapeffect.Opacity = 1.0;

When mouse leaves from ShapeNode(quickly), shape node blinks for a moment. It seems that node is first hide and then visible again.

Could you please suggest on it? What could be the problem?

Thanks and Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Blinking effect in ShapeNode
Reply #1 - Feb 9th, 2011 at 7:18am
Print Post  
Hi,

I could not make the nodes blink, can you send an example to support@mindfusion.eu?

Additionally, BitmapEffect is obsolete property and you should use Effect instead. There is no Effect class equivalent to the outer-glow BitmapEffect, but you can get something close enough using DropShadowEffect, e.g. try this:

var glowEffect = new DropShadowEffect();
glowEffect.Color = Color.FromRgb(255, 140, 000);
glowEffect.ShadowDepth = 0;
glowEffect.BlurRadius = 10;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Blinking effect in ShapeNode
Reply #2 - Feb 9th, 2011 at 4:02pm
Print Post  
Hi,

We are applying trigger on MouseOver property of ShapeNode and setting its Effect property to DropShadowEffect, but it is not working.

<Style TargetType="{x:Type d:ShapeNode}">
           <Style.Triggers>
               <Trigger Property="IsMouseOver" Value="True">
                   <Setter Property="Effect">
                       <Setter.Value>
                           <DropShadowEffect BlurRadius="10" Color="Aqua" Opacity="1" ShadowDepth="5" />
                       </Setter.Value>
                   </Setter>
               </Trigger>
           </Style.Triggers>
       </Style>

Let know the solution.

Thanks and Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Blinking effect in ShapeNode
Reply #3 - Feb 9th, 2011 at 4:30pm
Print Post  
The node might have a local value for this property and it is with higher priority than the trigger value. Try clearing it by calling node.ClearValue(EffectProperty) to see if the trigger will work.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint