Hello,
Is there a possibility to add functionality for double click on the tilepane header? I want the TilePane thats double clicked to become maximized, or when it's maximized it should become normal.
Thanks in advance,
Arjan
Thanx Marin,
This works exactly like I want it to.
Hi Arjan,It is possible to use both DragDropManager and DoubleClick.There is some conflict when dragging a control and the control captures the mouse. We are going to improve this in the next service release.Add this code to the Tile class to allow DoubleClick and DragDropManager:protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e){ base.OnMouseLeftButtonUp(e); this.CheckForDoubleClick(e); this.ReleaseMouseCapture();}protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e){ base.OnMouseLeftButtonDown(e); if (this.TileState != TileState.Normal && this.IsMouseOverheader(e)) this.CaptureMouse();}Regards,Marin
I like this. The user will not worry about the mouse position ;)Add this code to the OnMouseLeftButtonUp method:base.OnMouseLeftButtonUp(e);ContentPresenter cp = this.GetTemplateChild("headerContentPresenter") as ContentPresenter;Point p = e.GetPosition(this);if(p.Y > cp.ActualHeight) return; Regards,Marin
Hello Marin,
After further investigation I found out that the problem arises when there is a combination of DoubleClick and adding DragDropManager on a TilePane, so I guess I have to choose which one of them I want to use? A combination is not possible?
Got it working now, thanx. Started over again and now it seems fine. One more question however, now the TileState changes no mather where I double click in the tilepane. Is it possible to do this only on the header?
Thanx,