How to automatically position window like Popup?
I created virtual keyboard implemented as custom control inhereted from Window
. I want to know if the开发者_运维知识库re is a way to automatically position keyboard near TextBox
like it does Popup
when it's PopupPlacement
property wasn't set. Or I should implement my custom algorithm?
UPDATE:
I need to move my virtual keyboard from one TextBox
to another and position it near *TextBox* so that it fits into the screen.
You could try using ToolTip class - it has an PlacementTarget property to allow you to lock it to specific UIElement. I think you should be able to modify it to suit your needs.
I implemented custom algorithm.
精彩评论