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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:27:40+00:00 2026-06-07T05:27:40+00:00

I have applied TranslateTransform on a control, but the control’s margin remains the same.

  • 0

I have applied TranslateTransform on a control, but the control’s margin remains the same.

var margin = this.Margin;
this.RenderTransform = new TranslateTransform(diff.X, diff.Y);
if (diff.X != 0 && diff.Y != 0)
{
    if (margin == this.Margin)
        MessageBox.Show("Margins are equal");            
}

I want margin to be “updated” after Transform. How can I do that?

  • 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-06-07T05:27:43+00:00Added an answer on June 7, 2026 at 5:27 am

    You can’t do it automatically, because RenderTransform will not affect any Layout properties.

    From MSDN

    RenderTransform – A transform that modifies the appearance of the
    element but is applied after the layout pass is complete. By using the
    RenderTransform property instead of the LayoutTransform property, you
    can obtain performance benefits.

    And you can’t use a LayoutTransform instead.

    Note that, when they are used with the LayoutTransform property,
    TranslateTransform objects appear to have no effect on elements.

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

Sidebar

Related Questions

I am fairly new to PHP, but have applied my previous knowledge of programming,
I thought this question would answer my question, but I have applied the following
This question is a sequel to this question (I have applied the answer, but
I have some div's and have applied resizable & draggable methods to it. But
I have applied this code for iframe id. <iframe id='<?php echo 'fraDisabled'.$i.$post->ID; ?>' src='<?php
I am having a form in which i have applied the javascript validations, but
I have applied DataAnnotation based validations to two of my properties like this [Required(ErrorMessage
Is this possible to select with keyboard tab a Span Object? I have applied
We have applied the backgroud image(round corner image from web site) for DIV control.
Hello I have applied jquery show/hide function in my website but the problem is

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.