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 384879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:25:25+00:00 2026-05-12T15:25:25+00:00

At this point 2 Projection implementations are provided in Silverlight, but none of them

  • 0

At this point 2 Projection implementations are provided in Silverlight,
but none of them really do what I want.

I need something like the PlaneProjector class but
it only needs a RotationY property and it should raise an event
whenever this property is changed.

I can’t create a sub class from PlaneProjector as it is sealed,
so my only remaining option (I think) is to create a sub class from
System.Windows.Media.Projection… but I can hardly any information about this class.

Does anybody know how to implement your own custom Projectors for Silverlight?

Update

The thing is:

I have animations which change the RotationY property of the PlaneProjection.
One animation from 0 to 180
One animation from 180 to 0

I need to be notified of every change to RotationY so I can update the UI properly.

  • 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-12T15:25:25+00:00Added an answer on May 12, 2026 at 3:25 pm

    It is not possible to create custom implementation of Projection.

    What is the issue with the PlaneProjection class? If the only issue is the lack of an event when the property changes, don’t forget that you can data-bind to these properties and get notifications that way.

    Here is one possibility. Instead of animating the RotationY property directly, you can animate a proxy value that is data-bound to the RotationY property. Here is an example class that you could use:

    public class ValueProxy : FrameworkElement
    {
        public static readonly DependencyProperty ValueProperty =
            DependencyProperty.Register("Value", typeof(object), typeof(ValueProxy), new PropertyMetadata(OnPropertyChanged));
    
        public object Value
        {
            get { return GetValue(ValueProperty); }
            set { SetValue(ValueProperty, value); }
        }
    
        private static void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ValueProxy obj = (ValueProxy)d;
            if (obj.PropertyChanged != null)
            {
                obj.PropertyChanged(obj, null);
            }
        }
    
        public event EventHandler PropertyChanged;
    }
    

    This class has an event that will fire whenever the “Value” property gets changed. Now you can use it in Xaml like so:

    <Grid x:Name="LayoutRoot" >
        <Grid.Resources>
            <Storyboard x:Name="sb1">
                <DoubleAnimation Storyboard.TargetName="valueProxy" Storyboard.TargetProperty="Value" From="0" To="180" FillBehavior="Stop" />
            </Storyboard>
            <c:ValueProxy x:Name="valueProxy" Value="{Binding RotationY, ElementName=pp, Mode=TwoWay}" PropertyChanged="ValueProxy_PropertyChanged" />
        </Grid.Resources>
    
        <Button Content="Play Animation" Width="200" Height="200" Click="Button_Click" >
            <Button.Projection>
                <PlaneProjection x:Name="pp" RotationY="0" />
            </Button.Projection>
        </Button>
    </Grid>
    

    Notice that the animation is targeting the ValueProxy object and not the PlaneProjection. There is an event on ValueProxy that will notify you whenever the value changes. Does this help you achieve what you are trying to do?

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

Sidebar

Related Questions

I have create a module which at this point does nothing but exist the
I want to build a 2 dimensional (non ragged at this point) object array.
I am faced with the following issue and at this point I feel like
At this point I'm not sure if these leaks might be CoreData related or
Up to this point we have not yet needed a new masterpage for our
I'm convinced at this point that I should be creating subclasses of std::exception for
I've edited this quite a bit and bolded my question at this point. I
Having programmed through emacs and vi for years and years at this point, I
It seems (at least that is our understanding of the issue at this point)
I've been tasked with fixing an old VSS database. At this point in time,

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.