Comparison with Windows Forms
SftStyle/NET follows the classes of Windows Forms where Windows Forms has one, so an application moves to it with few changes. These tables show where each function of the Windows Forms classes is found and what differs.
Application.SetColorMode
MessageBox
TaskDialog
The task dialog of Windows Forms exists in .NET 5 and later only and shows the task dialog of Windows. SftTaskDialog has the same classes and members, with the Sft prefix, on the .NET Framework as well, and follows the same rules: which properties can change while a page is shown, the checks before a page is shown, the order of the standard buttons, and what Esc, the close box and a dialog without an owner do. Unlike the Windows Forms TaskDialog, a page can have command links and custom buttons together.
| Windows Forms | SftStyle/NET |
|---|
| TaskDialog.ShowDialog, TaskDialog.ShowDialogAsync, TaskDialog.Close, TaskDialog.Handle | SftTaskDialog.ShowDialog and SftTaskDialog.ShowDialogAsync, with the owner as IWin32Window or window handle and SftTaskDialogStartupLocation; SftTaskDialog.Close and SftTaskDialog.Handle |
| TaskDialogPage | SftTaskDialogPage: Caption, Heading, Text, Icon, Buttons, RadioButtons, DefaultButton, Verification, Expander, Footnote, ProgressBar, AllowCancel, AllowMinimize, SizeToContent, RightToLeftLayout, EnableLinks, BoundDialog, Navigate and the Created, Destroyed, HelpRequest and LinkClicked events |
| TaskDialogButton, TaskDialogCommandLinkButton | SftTaskDialogButton, SftTaskDialogCommandLinkButton: the standard buttons, Text, Enabled, Visible, ShowShieldIcon, AllowCloseDialog, Click, PerformClick, the == and != operators, DescriptionText |
| TaskDialogRadioButton, TaskDialogVerificationCheckBox, TaskDialogExpander, TaskDialogFootnote | SftTaskDialogRadioButton, SftTaskDialogVerificationCheckBox, SftTaskDialogExpander, SftTaskDialogFootnote, with the same properties, events and conversions from a string, and BoundPage on every element |
| TaskDialogProgressBar | SftTaskDialogProgressBar: State, Minimum, Maximum, Value, MarqueeSpeed |
| TaskDialogIcon | SftTaskDialogIcon: None, Information, Warning, Error, Shield, the shield icons with a colored bar (ShieldBlueBar, ShieldGrayBar, ShieldWarningYellowBar, ShieldErrorRedBar, ShieldSuccessGreenBar) and icons of the application's own from an , a Bitmap or an icon handle |
| TaskDialogLinkClickedEventArgs | SftTaskDialogLinkClickedEventArgs |
ColorDialog
| Windows Forms | SftStyle/NET |
|---|
| ColorDialog | SftColorDialog, with Color, CustomColors, AllowFullOpen, FullOpen, AnyColor, SolidColorOnly, ShowHelp, Reset, ShowDialog and the HelpRequest event, plus AllowAlpha for partially transparent colors, named and system colors and a picker. A named or system color the user picks is returned as that color (see Color Dialog). |
TrackBar
| Windows Forms | SftStyle/NET |
|---|
| Orientation, Minimum, Maximum, Value, SmallChange, LargeChange, TickStyle, TickFrequency, ValueChanged, Scroll | The SftSlider members of the same names. A outside SftSlider.Minimum and SftSlider.Maximum is moved inside, where the TrackBar throws an exception, and SftSlider.TickFrequency must be 1 or more. |
| SetRange | Set SftSlider.Minimum and SftSlider.Maximum. |
| RightToLeftLayout | RightToLeft alone mirrors a horizontal slider. |
| AutoSize | The slider has the size the application gives it. |
| (none) | Range mode, custom ticks, tick labels, snapping, inverted direction, value tip, three looks, accent color, dark mode and high contrast (see The Slider). |