You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a little trouble setting up my layout initializer following some of the examples and tutorials I've found online. Below is similar to how I'd like my layout to be:
However, this is how it's currently looking:
Below is how I'm implementing the BeforeInsertAnchorable method.
publicboolBeforeInsertAnchorable(LayoutRootlayout,LayoutAnchorableanchorableToShow,ILayoutContainerdestinationContainer){if(anchorableToShow==null){thrownew ArgumentNullException(nameof(anchorableToShow));}if(destinationContainer!=null&& destinationContainer.FindParent<LayoutFloatingWindow>()!=null){returnfalse;}
anchorableToShow.CanShowOnHover =false;if(anchorableToShow.Content is IProjectExplorerToolViewModel or IConsoleToolViewModel){vargroup=new LayoutAnchorGroup();
group.Children.Add(anchorableToShow);
layout.BottomSide.Children.Add(group);
anchorableToShow.ToggleAutoHide();returntrue;}if(anchorableToShow.Content is ISceneHierarchyToolViewModel){vargroup=new LayoutAnchorGroup();
group.Children.Add(anchorableToShow);
layout.LeftSide.Children.Add(group);
anchorableToShow.ToggleAutoHide();returntrue;}if(anchorableToShow.Content is IPropertiesToolViewModel or IEntitySystemsToolViewModel){vargroup=new LayoutAnchorGroup();
group.Children.Add(anchorableToShow);
layout.RightSide.Children.Add(group);
anchorableToShow.ToggleAutoHide();returntrue;}returnfalse;}
If anyone can point me in the right direction that would be lovely. For now, I don't care much for saving/loading layouts and just want to have a layout similar to the first screenshot shown above.
I guess my issues are:
How can I add an anchorable pane to another anchorable pane like in the first screenshot (see the project explorer and console tool windows).
How can I resize the initial width and height of the tool windows and perhaps set a minimum and maximum?
Also, is there a better way to ensure that anchorable panes are not automatically hidden when added to a group? This seems almost like a bug having to call ToggleAutoHide for each group.
The text was updated successfully, but these errors were encountered:
I'm having a little trouble setting up my layout initializer following some of the examples and tutorials I've found online. Below is similar to how I'd like my layout to be:
However, this is how it's currently looking:
Below is how I'm implementing the
BeforeInsertAnchorable
method.And here is my
LayoutRoot
If anyone can point me in the right direction that would be lovely. For now, I don't care much for saving/loading layouts and just want to have a layout similar to the first screenshot shown above.
I guess my issues are:
ToggleAutoHide
for each group.The text was updated successfully, but these errors were encountered: