silverlight: fade away button?

I am making a button invisible once it gets clicked. Is there any nice animation (programmably from code behind) code that fade the button away instead of sudden disappearance?


This should help you. Just call FadeOut(myButton) :

    private void FadeOut(UIElement fe, int seconds = 2)
        DoubleAnimation animation = new DoubleAnimation() { To = 0, Duration = new Duration(new TimeSpan(0, 0, seconds)) };
        Storyboard sb = new Storyboard();
        Storyboard.SetTarget(animation, fe);
        Storyboard.SetTargetProperty(animation, new PropertyPath(UIElement.OpacityProperty));

Need Your Help

Is it possible to use Avro with Hadoop 0.20?

api hadoop hdfs

I'm interested in using Avro to save and read files from Hadoop HDFS and I saw some Jira's in Hadoop issue tracker regarding implementing support for Avro but there were no examples how to enable A...

Load common content for the whole Django site

django django-views

I want to load a list notifications for almost all the web application I am building. Should I do in every view function or View Class?