Angular | Grid Samples
React|그리드 샘플
Hi!
I'm using the new XamDockManager, my structure consists of a SpiltPane/ContentHost that contains a usercontrol that is a glorified navigation bar - really a re-styled listbox that initially hosts a horizontally oriented stack panel. It's InitialLocation="DockedTop". The only other control is the content which is another usercontrol that houses various other usercontrols. Initially the list box usercontrol displays correctly at the top as I expect...however I I drag it to DockRight or DockLeft its with increases to occupy the entire right have of the ui. I can't figure out what's determining the width...I do have an event that fires on PaneDragEnded to change the orientation of the stackpanel to Vertical but this only fires after the drop.
How do I control the width of the SplitPane and it's contents? Do I need to react to the PaneDragOver and reset the width so the XamDockManager can size it correctly? Is there a better way to do this? Any help will be appreciated.
I've enclosed a screen shots of the final result (your upload limitations prevented my uploading the before and during screen shots) as well as the xaml for the main display (Window1.Xaml) and the user control (amUCtrlOpenViewsPanel.xaml).. btw the scroll arrows don't display correctly yet when the bar is vertical. It's a know issue.
Thanks!
Glenn
For the sizing logic, we followed Visual Studio's behavior. Basically, the size of the current pane being dragged is used as the basis for the pane preview (and drop). That size is restricted based on a calculated maximum value which depends on where you are dropping. For the outer global docking indicator it would be half the dockmanager panel size. You can handle the PaneDragEnded event and adjust the Width of the containing root SplitPane. Since the pane was put into a floating window, the size of the floating splitpane would have been used. You can initialize the size of the floating window using the ToolWindowLoaded event setting either the XamDockManager.FloatingSize of the SplitPane of the e.Window or the Width/Height of the e.Window.
You may also want to submit a suggestion for adding an Extent property to the NewRootPaneAction class so you can control the extent of the new split from within the PaneDragOver event. You can submit feature requests here - http://devcenter.infragistics.com/Protected/RequestFeature.aspx