Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5933001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:54:46+00:00 2026-05-22T14:54:46+00:00

I have a path defined as such: <Viewbox Visibility=Collapsed x:Name=Tick Grid.Column=1 Grid.Row=1> <Canvas MaxWidth=100

  • 0

I have a path defined as such:

<Viewbox Visibility="Collapsed"  x:Name="Tick" Grid.Column="1" Grid.Row="1">
   <Canvas MaxWidth="100" MaxHeight="100"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                                         Width="100" Height="100" Canvas.Left="0" Canvas.Top="0">
         <Path ...Fill="#FF00B800" x:Name="MyPath" (path dimensions, lines, etc) .../>
   </Canvas>
</Viewbox>

Now what I’d like to do is manipulate fill such that it will cause the path to have a fade in/fade out effect. Basically make fills alpha component either move towards opaque or transparent based on whether or not the viewbox the path is inside is Visible. So when visible the path fades in, when collapsed the path fades out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:54:46+00:00Added an answer on May 22, 2026 at 2:54 pm

    The effect you are trying achieve is a classy one but there is a serious problem with your current plan. When the Visibility of a higher-level element, Viewbox in this case, is set to Visibility.Collapsed, the element and all sub-elements are immediately no longer visisble. It is at this point that you want the fade-out of the Path to begin.

    So the Path is already not visible and starting an animation to gradually reduce its opacity will no do any good because it is already gone. In other words, by the time the visibility is set to Visiblity.Collapsed, it is too late to do anything useful with things inside the element because the user won’t see them. If you could, you would want to see into the future and know that you are going to change the visibility and start an animation so that it finishes before you “close the curtain” on the element.

    The same problem doesn’t apply to when we make the element visible because everything is perfect: we become visible and start the fade-in animation. But since half of the effect is not going to work, we still have a big problem.

    The solution to this problem is move up a level and see what we’re trying to do. In the XAML we only have passive elements, Viewbox, Canvas, and Path. But maybe these are acting more like controls or assisting controls, for example being the check for a CheckBox or a checkbox-like control.

    A control can have states:

    • Normal, MouseOver
    • Pressed, Disabled
    • Unfocused, Focused

    and those states can have transition effects, thanks to the VisualStateManager.

    So if the fade-in and fade-out effects are part of control behavior, then we have a whole sophisticated powerful toolset available to solve our problem. I don’t know if this is the case in your situation.

    Even if it is not the case, a very workable approach to transition effects on Silverlight is to transform your elements into a lookless control, solely for the purpose of utilizing the VisualStateManager, because it makes things so easy. Perhaps this alternative can work in your situation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a path defined: when /the admin home\s?page/ /admin/ I have scenario that
I have a class called Path for which there are defined about 10 methods,
I have a Path (a star figure): <Path x:Name=NiceStar StrokeThickness=10 Stroke=#ff000000 StrokeMiterLimit=1 Data=F1 M
I have some path c:\server\folderName1\another name\something\another folder\ . How i can extract from there
Actually I have such a code: NSString *path = [[NSBundle mainBundle] pathForResource: @connect ofType:
This is strange I have a constant defined as such: define(RJ_FILES_PATH, RJ_SITE_DIRECTORY.\assets\files\\); However when
I have a GLOB expression such as: file( GLOB HEADER_FILES path/*.h ) And would
In Android, I have a Path object which I happen to know defines a
I have a path and I need to determine if it is a directory
I have a path like C:\application\photo\gallery\sketches . Now I need to check whether this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.