Layout Transform of Document Window

Docking/MDI for WPF Forum

Posted 14 years ago by Dharmesh Solanki
Version: 9.1.0505
Avatar
Hi All,
I am using Latest Version of Actipro.

I want to develop Tab Preview kind functionality like IE 7.Means as many tabs or document window are open we can see opened document's preview in one of tab.

So for that I want to Layout Transform of DocumentWindow.

My Code is below

DocumentWindow _doc = (DocumentWindow)Activator.CreateInstance(DocumentWindow1.GetType());
_doc.LayoutTransform.SetValue(ScaleTransform.ScaleXProperty, 0.5);
_doc.LayoutTransform.SetValue(ScaleTransform.ScaleYProperty, 0.5);

but I am getting this error

"Cannot set a property on object 'Identity' because it is in a read-only state."

so any one have idea how to develop this functionality ?

or resolve this error ?

Thanks in advance,

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Dharmesh,

Unfortunately without seeing code, it's not really possible for us to give you any help with that error. If you'd like us to look at something complex like this, please email over a simple sample project that shows the issue.

Thanks!


Actipro Software Support

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
On second look, your particular error is due to you not creating a LayoutTransform so its default value is an Identity transform. What you need to do is first set the LayoutTransform to a new ScaleTransform. Then perhaps the error will go away.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.