Back to Devexpress

SchedulerControl.LookAndFeel Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-77b1e3d8.md

latest6.4 KB
Original Source

SchedulerControl.LookAndFeel Property

Provides access to the settings that specify the Scheduler control’s look and feel.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public virtual UserLookAndFeel LookAndFeel { get; }
vb
Public Overridable ReadOnly Property LookAndFeel As UserLookAndFeel

Property Value

TypeDescription
UserLookAndFeel

A UserLookAndFeel object whose properties specify the Scheduler control’s look and feel.

|

Remarks

The settings provided by the LookAndFeel property enable you to specify how the visual elements of a Scheduler control are painted. For more information on look and feel technology, see the Look And Feel and Skinning topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LookAndFeel property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/OutlookAppointmentForm.cs#L77

csharp
LookAndFeel.ParentLookAndFeel = control.LookAndFeel;
this.defaultBarAndDockingController.Controller.LookAndFeel.ParentLookAndFeel = LookAndFeel;

winforms-scheduler-customize-appointment-flyout/CS/CustomAppointmentFlyoutExample/Form1.cs#L90

csharp
using (Stream stream = AppAssembly.GetManifestResourceStream("CustomAppointmentFlyoutExample.warning.svg")) {
    var paletteProvider = SvgPaletteHelper.GetSvgPalette(schedulerControl1.LookAndFeel, ObjectState.Selected);
    return SvgBitmap.FromStream(stream).Render(size, paletteProvider);

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L28

csharp
this.Bounds = control.RectangleToScreen(inplaceEditorArgs.Bounds);
DevExpress.Skins.Skin currentSkin = DevExpress.Skins.SchedulerSkins.GetSkin(control.LookAndFeel);
DevExpress.Skins.SkinElement element = currentSkin[DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected];

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/Form1.cs#L208

csharp
// Required for skin support.
myForm.LookAndFeel.ParentLookAndFeel = schedulerControl1.LookAndFeel;

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L74

vb
Me.LookAndFeel.ParentLookAndFeel = control.LookAndFeel
Me.defaultBarAndDockingController.Controller.LookAndFeel.ParentLookAndFeel = LookAndFeel

winforms-scheduler-customize-appointment-flyout/VB/CustomAppointmentFlyoutExample/Form1.vb#L99

vb
Using stream As Stream = AppAssembly.GetManifestResourceStream("CustomAppointmentFlyoutExample.warning.svg")
    Dim paletteProvider = SvgPaletteHelper.GetSvgPalette(schedulerControl1.LookAndFeel, ObjectState.Selected)
    Return SvgBitmap.FromStream(stream).Render(size, paletteProvider)

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/MyInplaceEditor.vb#L30

vb
Me.Bounds = control.RectangleToScreen(inplaceEditorArgs.Bounds)
Dim currentSkin As DevExpress.Skins.Skin = DevExpress.Skins.SchedulerSkins.GetSkin(control.LookAndFeel)
Dim element As DevExpress.Skins.SkinElement = currentSkin(DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected)

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/Form1.vb#L187

vb
' Required for skin support.
myForm.LookAndFeel.ParentLookAndFeel = schedulerControl1.LookAndFeel

See Also

Appearance

Look and Feel

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace