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

  • Home
  • SEARCH
  • 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 7007023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:33:12+00:00 2026-05-27T21:33:12+00:00

I have a set of transforms that I apply to make a fancy reflection

  • 0

I have a set of transforms that I apply to make a fancy reflection for controls. I want to be able to apply the same stuff to other elements, but I don’t know how to group it together, and apply it as a resource.

Can someone help me? Here is some code, this applies the transform to the first textbox. It looks a lot but is pretty simple, it is just a rectangle under a control, with a few transforms and other visual effects applied. What I want is to do the same with this rectangle but apply it to other controls (and so somehow parameterize the bindings.)

        <StackPanel Margin="40">
            <TextBlock x:Name="TitleDisp" FontSize="40" FontFamily="Verdana" Opacity="0.8" HorizontalAlignment="Center">Sample Title</TextBlock>
            <Rectangle Height="{Binding Path=ActualHeight, ElementName=TitleDisp}" Width="{Binding Path=ActualWidth, ElementName=TitleDisp}">
                <Rectangle.Fill>
                    <VisualBrush Visual="{Binding ElementName=TitleDisp}"/>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75"/>
                        <SkewTransform AngleX="10" AngleY="8"/>
                        <TranslateTransform X="30" Y="-10"/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
                <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0,1">
                        <GradientStop Offset="0" Color="Transparent"/>
                        <GradientStop Offset="1" Color="#77000000"/>
                    </LinearGradientBrush>
                </Rectangle.OpacityMask>
                <Rectangle.Effect>
                    <BlurEffect/>
                </Rectangle.Effect>
            </Rectangle>
        </StackPanel>
  • 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-27T21:33:13+00:00Added an answer on May 27, 2026 at 9:33 pm

    I think Adorners are what you are looking for here. They render on top of the controls in their own layer, and you can adorn any UIElement you wish, in your case you would be adorning the textbox with the rectangle that has those properties defined. The MSDN article on Adorners is a good start and it is a pretty easy read.

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

Sidebar

Related Questions

I have make a script. That set li items on different positions on the
I have set up an admin panel for charter, yacht and other vehicles reservation
I have set my default RVM to ruby 1.9.2 . I want to remove
I have a PHP-based web app that I'm trying to apply Apache's mod_rewrite to.
I have problem related with question I've set contentsScale and after that text looking
We have a set of views (quite a few) that we're trying to implement
I have a unique set of processes that all need to be automated. We
I want to set up a ASP.NET MVC route that looks like: routes.MapRoute( Default,
Ok, So I have an Image object that I want to rotate around its
I have an iPad app that is set to start in landscape mode. From

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.