Questions about dock panels for the web projects

StatusIDPriorityType
Closed24959TrivialQuestion
ProfileReply
stristanClient

Hello and Happy Holidays!
1. Is the dock panels module compatible with XAF new web style?
2. Can the dock panel be visible by default in the list view?
2. Can I remove all header buttons from the dock panel to disable user to hide/move/maximize it?

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Agent

Hello Stanislaw,

>> 1. Is the dock panels module compatible with XAF new web style?

Unfortunately the dock panels module is not combining with XAF new web style.

>> 2. Can the dock panel be visible by default in the list view?

The dock panel be visible by default in the list view if you set property View = ViewName_ListView:
DockPanelToListView

 

Please feel free to contact us if you need any further assistance on this subjects.

Thanks, Sasha.

stristan

Hello, Sasha!
Thanks for the reply!
Please, add feature request to add compatibility support with DockPanels module with XAF's new web style, because latter seem is very perspective.
Please, answer to the last question (also 2, sorry for mistake)

Sasha (Xafari Support)Agent

Hi,

Please accept our apologises for the delayed response!

>> Can I remove all header buttons from the dock panel to disable user to hide/move/maximize it?

To solve this issue you can create new WindowController, inherit the controller from XafariDockingWebWindowController and sign event DockPanelTemplateCreated:

public partial class YourWindowController : XafariDockingWebWindowController
{
public YourWindowController()
{
InitializeComponent();
this.DockPanelTemplateCreated += YourWindowController_DockPanelTemplateCreated;
}
void YourWindowController_DockPanelTemplateCreated(object sender, Xafari.DockPanels.DockPanelItemEventArgs e)
{
var webDockPanel = e.DockPanelItem.Model as IModelDockPanelWeb;
if (webDockPanel == null) return;
webDockPanel.ShowCloseButton = false;
webDockPanel.ShowCollapseButton = false;
webDockPanel.ShowPinButton = false;
}
}

We hope you find this information helpful.
Let us know if you need further assistance.
Best regards,
Sasha.

stristan

Thank you, Sasha!

× This ticket is closed.

Write US