Hello,
how can I create a category menu as in the Appointment dialog itself.
This refers to the dialogue with the Ribbon:
dataManager.DialogFactory =new Infragistics.Controls.Schedules.ScheduleDialogFactory ();I am using a derivative of AppointmentDialogCore so I have to create the ribbon itself.Thank you
Hello Marcus,
You can see the default templates that we used for our ApointmentDialog on your computer in the following file:
C:\Program Files (x86)\Infragistics\NetAdvantage 2012.1\WPF\DefaultStyles\Schedule\generic.xaml
In this file you can search for the style with TargetType="igSchedulePrim:ActivityDialogRibbonLite" and observe the internal implementation of this “ribbon”. You can copy this styles in your application and modify them in order to suit your scenario or to reuse the control depending on your requirements.
If you need any additional information on this matter or if I have misunderstand you in any way please let me know.
Hello Elena
Thanks for the reply.I tried your way before posting, unfortunately it does not give me the opportunity I need.My second attempt was the right of ribbon extending to the ActivityDialogHelperWpf.CreateActivityDialog / RibbonWindowContentHost Ribbon. But then I'm set on the base class "AppointmentDialogCore" and I use a derivation.The third attempt brought me to the other functions of ActivityDialogHelperWpf but here are all for my case interesting point static / internal.Now I go out of ideas.Can you give me a snippet that I (in code) can produce the Categories menu?
Hello Elena.
Here is a running project.
It is reduced by only the most important to include.
I need help in the class "MyDialogHelper" Category button.
The class "MyAppointmentDialogCore" is necessary for me.
The Appointment window is much more complicated in the real project but it's all about the button so I have taken only the default.
And as always, sorry for the bad English;-)
Thank you
Thank you for the sample. I modified in by changing the type of the Categorize button to MenuTool and I have added a child menu named “Add items”. In the handler of the PreviewMosueDown I display the ActivityCategoryDialog as follows:
For additional reference on this approach please take a look at the attached sample.
If you have any additional questions or concerns with this matter please feel free to let me know.
Private Sub menuTool_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) Dim activitylist As New List(Of ActivityBase)() activitylist.Add(_activity) Dim menuTool As ToolMenuItem = TryCast(sender, ToolMenuItem) Dim owner As AppointmentDialogCore = TryCast(menuTool.Tag, AppointmentDialogCore) Dim activityCategoryHelper As ActivityCategoryHelper = New ActivityCategoryHelper(_dataManager, activitylist, owner) Dim closingCallback As Func(Of Boolean) Dim closedCallback As Action(Of Nullable(Of Boolean)) _dataManager.DisplayActivityCategoryDialog(_ribbonWindow, Nothing, activityCategoryHelper, closingCallback, closedCallback) End Sub
Hello Elena,
Many thanks to the help to me.Is it even possible to display the entries (see Attached picture)."ActivityCategoryHelper.CategoryListItems" is unfortunately internal.
I have been reading through your correspondence so far and I cannot seem to understand what exactly are you asking and where does this screenshot come from. Please elaborate on that so I may try and look for a solution.
Thanks in advance. Looking forward to hearing from you.
I want to display the entries of the lists for the existing categories (in my example picture test x)
In case I use your standard dialogue these are generated automatically. These are intern objects of the type "CategoryListItems".
But if I use the example of your colleague which was generated on the 22th of June, 2012 I have to generate the objects in the code by myself.
And this is the problem: I wasn´t able to generate objects of the type "CategoryListItems".
How do I have to proceed?
I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your friendly ID for this Product Idea is PI12080059.
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Hi Petar,
I think it would be helpful for many (and would save time) if the collection would be public.
Thanks for your support.
Hi Marcus,
Excuse me, I had missed your reply from the 12th. I have been looking into this and wasn’t able to find any built-in functionality rather than the one I already suggested. I can again suggest you inherit from ScheduleDialogFactory where the Categories functionality is already implemented, or if you want I can submit a new Product Idea on your behalf so that such collection might get available in a future volume release of ours.
Looking forward to hearing from you.
Hello Petar,
Unfortunately, their solution brings me no no more (see my posting 07/12/2012).
Your example gives me a "Category" Object not a "CategoryListItems" Object.
Is there a function that gives me instances of "CategoryListItems"?
Thank You
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.