You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicpartialclassMyPage:SldPMPage{publicMyPage(){InitializeComponent();}publicMyPage(ISldWorkssw):this(){App=sw;// Must be set before ShowPage()DataContext=newMyViewModel();}}
3. Show the page
varpage=newMyPage(SwApp);page.ShowPage();
Controls
Containers
Control
Description
SldPMPage
Root page control
SldGroupBox
Collapsible group with caption
SldTabControl
Native SW tab container
Input Controls
Control
Description
SldTextBox
Text input
SldNumberBox
Numeric input with range limits
SldCheckBox
Checkbox toggle
SldOption
Radio button
SldCombobox
Dropdown list (static or editable)
Display Controls
Control
Description
SldLabel
Read-only text label
SldLabelMsg
Warning/status label (yellow background)
Action Controls
Control
Description
SldButton
Standard push button
SldBitmapButton
Button with SW standard icon
SldCheckableBitmapButton
Toggle button with SW icon
Advanced Controls
Control
Description
SldSelectionBox
Entity selection with type filtering
SldContentHost
Host arbitrary WPF content
WPF-Only Controls
Control
Description
NumberBox
Numeric input TextBox
IOTextBox
TextBox with proper SW dialog keyboard handling
Validation
// CloseCommand validationCloseCmd=newCloseCommand(execute:OnOk,canExecute:()=>IsFormValid,cancelClick:OnCancel){ErrorTitle="Validation Failed",BubbleTooltip="Please fill in all required fields."};// Closing event validationClosing+=(reason,arg)=>{if(!ViewModel.IsValid){arg.Cancel=true;arg.ErrorTitle="Cannot Complete";arg.ErrorMessage="Part name is required.";}};