Name |
Remarks |
AnimationHelper |
|
ArithmeticHelper |
Internal |
ConfigHelper |
|
DesignerHelper |
|
DpiHelper |
|
IconHelper |
|
InputClickHelper |
|
ResourceHelper |
|
ScreenHelper |
|
SecurityHelper |
Internal |
SingleOpenHelper |
|
TokenizerHelper |
Internal |
TouchDragMoveWindowHelper |
Internal |
ValidateHelper |
|
VisualHelper |
|
WindowHelper |
|
BindingHelper |
|
FullScreenHelper |
|
AnimationHelper
CreateAnimation
ConfigHelper
Name |
Remarks |
SetLang |
|
SetConfig |
|
SetTimelineFrameRate |
|
SetWindowDefaultStyle |
|
SetNavigationWindowDefaultStyle |
|
SetLang
Change program language and culture
1
| ConfigHelper.Instance.SetLang("en");
|
DesignerHelper
1
| var isDesign = DesignerHelper.IsInDesignMode;
|
ResourceHelper
Example:
1
| var res = ResourceHelper.GetResource<Brush>("PrimaryBrush");
|
SingleOpenHelper
Example:
1 2 3 4 5 6 7 8 9 10 11 12
| var picker = SingleOpenHelper.CreateControl<ColorPicker>(); var window = new PopupWindow { PopupElement = picker, WindowStartupLocation = WindowStartupLocation.CenterScreen, AllowsTransparency = true, WindowStyle = WindowStyle.None, MinWidth = 0, MinHeight = 0, Title = "Select Accent Color" }; window.Show();
|
ValidateHelper
Name |
Remarks |
IsInRangeOfDouble |
|
IsInRangeOfPosDouble |
|
IsInRangeOfPosDoubleIncludeZero |
|
IsInRangeOfNegDouble |
|
IsInRangeOfNegDoubleIncludeZero |
|
IsInRangeOfPosInt |
|
IsInRangeOfPosIntIncludeZero |
|
IsInRangeOfNegInt |
|
IsInRangeOfNegIntIncludeZero |
|
WindowHelper
Name |
Remarks |
GetActiveWindow |
|
WindowMaximizedPadding |
|
SetWindowToForeground |
|
TouchDragMove |
|
CreateHandle |
|
GetHandle |
|
GetHwndSource |
|
IsInRangeOfNegIntIncludeZero |
|
StartFullScreen |
|
EndFullScreen |
|
DpiHelper
Get Device Dpi and Dpi Scale
1 2 3 4 5
| var DpiScale = DpiHelper.LogicalToDeviceUnitsScalingFactorX;
var dpi = DpiHelper.DeviceDpiX;
|