Version

CreateActivityTypeChooserDialog Method

Returns a FrameworkElement that should used as the dialog for letting the user choose an ActivityType from a set of available ActivityTypes
Syntax
'Declaration
 
Public Overridable Function CreateActivityTypeChooserDialog( _
   ByVal container As FrameworkElement, _
   ByVal dataManager As XamScheduleDataManager, _
   ByVal availableTypes As ActivityTypes, _
   ByVal chooserReason As ActivityTypeChooserReason, _
   ByVal calendar As ResourceCalendar, _
   ByVal chooserResult As ScheduleDialogBase(Of Nullable(Of ActivityType)) _
) As FrameworkElement

Parameters

container
The FrameworkElement that contains this dialog, or null if there is no cointaining element.
dataManager
The current XamScheduleDataManager
availableTypes
The list of types from which the choice is to be made
chooserReason
The reason for which the dialog is being displayed
calendar
The calendar associated with the action or null if there is no calendar associated with the action
chooserResult
A reference to a Infragistics.Controls.Schedules.Primitives.ScheduleDialogBase.ChooserResult<TChoice> instance. The dialog will set the Infragistics.Controls.Schedules.Primitives.ScheduleDialogBase.ChooserResult<TChoice>.Choice property when the dialog closes to reflect the user's choice.

Return Value

A FrameworkElement that can be used to choose an activity type.
Remarks

The XamScheduleDataManager will automatically host the FrameworkElement returned by this method in an appropriate container depending on the environment within which the dialog is being displayed. If the environment supports top level windows then the FrameworkElement will be hosted in a Dialog Window unless this method returns a Window-derived element in which case that window will be used as the dialog window.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also