hwnd-adorner icon indicating copy to clipboard operation
hwnd-adorner copied to clipboard

Resizing control problem

Open sueds opened this issue 10 years ago • 3 comments

Whenever I resize my control adornment child end up clipped. How can force the resize whenever I need to?

sueds avatar Jul 24 '15 12:07 sueds

I need some information for trying to help you

michaelsutton avatar Jul 24 '15 12:07 michaelsutton

Hi,

So I'm using hwndhost to render dx11 inside wpf. I'm using the hwndHostPresenter this way :

< host:HwndHostPresenter > < host:HwndHostPresenter.HwndHost > < controls:DX11HwndHost AllowDrop ="True" / > < / host:HwndHostPresenter.HwndHost >

For the grouping I'm still layout out everything in wpf with no code behind whatsoever.

So my windows can change size but the problem I have is that the control are cropped or moved when I maximize the windows for instance. I checked your sample and the adorner move place when you maximize the windows. So I was wondering where do you control the layout of the adorner child ?

In my application you can drop object onto the screen, so I'm using the border has a container and set background to a color to force drop on it using previewDrop. so when you drop object onto the scene the cropped part of the control appears. So I'm looking for some clue on why it is cropped and how can force to not be cropped like when you drop object onto the scene.

It has to do with the layout but I still haven't figure out what.

thanks

sueds avatar Jul 24 '15 12:07 sueds

Hi, have you figure it out? I'm keep having the same issue with scaling widnow up. Adorner's being clipped.

Rudnicky avatar Dec 04 '18 14:12 Rudnicky