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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:48:15+00:00 2026-05-14T07:48:15+00:00

Anyone got any neat solutions to prevent a Silverlight ChildWindow being moved? thanks, Mark

  • 0

Anyone got any neat solutions to prevent a Silverlight ChildWindow being moved?

thanks,
Mark

  • 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-14T07:48:15+00:00Added an answer on May 14, 2026 at 7:48 am

    I’m not sure you’d call this neat but…

    • Create yourself a new Templated control and call it ImmovableChildWindow.
    • Modify the class it inherits from to be ChildWindow.
    • Open Themes/generic.xaml you will find an initial style for the ImmoveableChildWindow
    • In the Silverlight documentation you’ll find the existing template for a ChildWindow at ChildWindow Styles and Templates.
    • Note the existing TargetType value for the ImmovableChildWindow style.
    • Copy’n’ paste the whole default style for a ChildWindow from the documentation into your themes/generic.xaml file.
    • Replace TargetType for this copy to the same value as the exiting ImmovaleChildWindow style.
    • You can now delete the initial style. Leave only the large copy of ChildWindow style now targeting ImmovableChildWindow.
    • Find within the Template setter change the TargetType of to the same value as the style TargetType
    • Search through the template and find a Border with the name Chrome. Delete the x:Name="Chrome" attribute. (This is what we are really after).

    Now when you create a new ChildWindow item it will by default inherit form ChildWindow, if you want it to be immovable you need modify it to inherit from ImmovableChildWindow instead (change the base type in the code-behind and the root tag name in the xaml).

    The ChildWindow attaches events to the FrameWorkElement with the name “Chrome” which enables the child window to be moved about. However being a well-behaved templated control, if it can’t find a FrameworkElement called “Chrome” it just continues to work without that feature.

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

Sidebar

Related Questions

Has anyone got any experience/thoughts on the CSLA.netContrib project on codeplex - here .
Has anyone got any idea why the menu is rendering below the rotating images
anyone got any ideas on how to reproduce the gloss of iPhone app icons
Anyone got any experience of teams doing pair programming where there is a mixed
Anyone got any ideas? The above error occurs when the following code is run:
Has anyone got any example code for creating a unique number sequence to be
Has anyone got any idea how this google code works? i got the following:
Has anyone got any suggestions on where to start with building a google map
Has anyone got any idea why in WPF .NET 4 the treeview TreeViewItem.Expanded event
I want to learn to program the canvas element. Anyone got any recommendations of

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.