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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:59:58+00:00 2026-06-14T00:59:58+00:00

When a WPF item is frozen, the docs says it cannot be changed. I’m

  • 0

When a WPF item is frozen, the docs says it cannot be changed. I’m just not very sure what “change” mean by in this context.

For example, if I create an instance of a shape and then freeze it, is it possible to do things like rotate or translate it even though it is frozen?

  • 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-14T01:00:00+00:00Added an answer on June 14, 2026 at 1:00 am

    Short answer:

    Once an object is frozen, you cannot modify any properties on it. This applies recursively.

    Longer answer:

    First of all, the Shape class (and thus Path, Ellipse, Rectangle etc.) are not freezable.

    But assuming you are talking about Geometry, which is freezable, then the general answer is no, because attempting to modify properties of a frozen object is not possible. For example, the following code will throw an exception

    var geo = new LineGeometry();
    geo.Freeze();
    // InvalidOperationException:
    geo.Transform = new TranslateTransform(10, 10);
    

    And freezing is recursive, so its not possible to cheat the system like this:

    var tx = new TranslateTransform(10, 10);
    var geo = new LineGeometry();
    geo.Transform = tx;
    geo.Freeze();
    // InvalidOperationException:
    tx.X = 20;
    

    But, back to your original question about shapes, which are constructed out of geometries (but doesn’t derive from them).

    You can freeze the geometry of your shape, and still apply transformations to that shape. This works because the transform is on the shape object, and not on the freezable:

    var geo = new LineGeometry(new Point(0,0), new Point(10,10));
    geo.Freeze();
    var myShape = new Path { Data = geo };
    // This is fine, even though the geometry is frozen
    myShape.RenderTransform = new TranslateTransform(10, 10);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure what to do as far as managing the _namePrefixes for this
so i came across this interesting article on WPF exception handling: http://srtsolutions.com/public/item/251263 it works
I'm trying to change the background of the selected item in a WPF ListBox.
Is it possible to make a WPF menu item that, when clicked, does not
I've following ListView Item (in a WPF Form): <ListView Name=listViewTeam ItemsSource={Binding Path=TeamList}> <ListView.View> <GridView
I have a WPF listbox and have updated the list item data template to
In WPF, I know I can use ListView.ScrollIntoView to scroll a particular item into
When I disable a control in WPF, like say a menu item like MenuItem
How can I add WPF form into tab item of tab control? like I
I have a WPF treeview with dynamic levels (TreeView Item uses a Hierachical data

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.