How to Use Popup Container Show Action

StatusIDPriorityTypeTags
Closed25813BlockerQuestionfrom scratch How to Use Popup Container Show Action
ProfileReply
nickcoleClient

I want to learn how to use Popup Container Show Action, so I do from scratch as your document:Popup Container Show Action. Getting Started.
But the Popup Container Show Action work as simpleAction.

Please check my step and tell me what's wrong with my step.

If possible, please give me a simple about how to use Popup Container Show Action.

Your demo Center work fine. I want to know how to use Popup Container Show Action from scratch .
Thanks.
Attached files are my step, my develop environment and my solution.

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Agent

Hello nicole,

Thanks for the provided information
We are going to investigate the issue. Give us some time.

Best regards,
Sasha.

Sasha (Xafari Support)Agent

Hi,

The behavior was added for FeatureCenter using XAF ability.
You can solve this issue like issue First Use Xafari FrameWork and have question.

We are going to edit documentation for this actions in next documentation version.

Let us know if you need any further assistance on this subject.
Thanks, Sasha.

nickcole

Thanks for your help.
With your guidance,I don't let my solution work as your FeatureCenter about PopupContainerShowAction.
1. I study the How to: Create a Custom WinForms Standard Template, see attached file:01.jpg
2. I stduy your FeatureCenter about DetailViewFrom(see attached file 02.jpg), and don't find extra actioncontainer.
3.I find only two businessbojects and one viewController (seee attached file 03.jpg)about PopupContainerShowAction in your FeatureCenter. I think my solution has done as your FeatureCenter.

Can you give me a sample about how to use PopupContainerShowAction ?
It is wonderful if you can fix my solution,and let my solution's PopupContainerShowAction work as PopupContainerShowAction ,not as a simple action.

nickcole

Hello!
Can you give me a sample about how to use PopupContainerShowAction ?

Sasha (Xafari Support)Agent

Hello,

You can include any action in DetailView using the XAF instruction How to: Include an Action to a Detail View Layout.
Unfortunately, we have found a bug for the PopupContainerShowAction and we are working on this issue. It will take some additional time.

Sorry for the delay with the answer.
Thanks, Sasha.

nickcole

If you fixed the bug,please tell me.
Thanks.

nickcole

I think you misunderstand my question.
My question is the Popup Container Show Action in the toolbar should like a combox and can dropdown a window.
But in my sample,the Popup Container Show Action is a simple button in toolbar.
I don't know why?

Attached is my sample picture. I do as you documention.

Sasha (Xafari Support)Agent

We repeated the scenario and got SimpleAction too. Once we find a solution to this problem, we'll inform you about it.

Best regards,
Sasha.

nickcole

Thank you very much.
I hope your good news.
The same question exists in other situation
For example: I do as your documentation:General Components>Extra Filters>Getting Started
I got a simple action too(see attached file:ExtraFilter_My.jpg)
But your sample work fine(see attached file:ExtraFilter_YourDemo.jpg)

I think the XAF Solution Wizard problely have some problem.
Attached file:Solution17.rar is my solution for learning General Components>Extra Filters>Getting Started.

Sasha (Xafari Support)Agent

Thanks for the additional information!
I think this is one and the same issue.
We will consider this component in the solution of the issue.

Thank you!

Sasha (Xafari Support)Agent

Hello nickcole,

Thanks for your patience!
To solve this issure you should edit the application project's Program.cs file and handle the XafApplication.CreateCustomTemplate event.

var winApplication = new Solution15WindowsFormsApplication();
winApplication.CreateCustomTemplate += winApplication_CreateCustomTemplate;
...........
private static void winApplication_CreateCustomTemplate(object sender, CreateCustomTemplateEventArgs e)
{
if (e.Context == TemplateContext.ApplicationWindow)
e.Template = new MainForm();
else if (e.Context == TemplateContext.View)
e.Template = new DetailViewForm();
}

More detailed instructions you can see in the file PopupContainer.zip.

But we are still investigating the behavior of our containers with new templates DevExpress.

Let us know if you need further assistance.
Best regards,
Sasha.

nickcole

Thank you Sasha!
Your code work fine!

× This ticket is closed.