35 references to Work
aspire-tray (35)
TrayApplication.NativeSmoke.cs (12)
183
&& bounds.Left >= monitor.
Work
.Left && bounds.Right <= monitor.
Work
.Right
184
&& bounds.Top >= monitor.
Work
.Top && bounds.Bottom <= monitor.
Work
.Bottom,
185
$"The tooltip must remain within the monitor work area. Tooltip: ({bounds.Left}, {bounds.Top})-({bounds.Right}, {bounds.Bottom}); work area: ({monitor.
Work
.Left}, {monitor.
Work
.Top})-({monitor.
Work
.Right}, {monitor.
Work
.Bottom}).");
528
var lines = (monitor.
Work
.Bottom - monitor.
Work
.Top) / SettingsRect(0, 0, 0, 8).Bottom + 1;
532
NativeSmokeHarness.Require(window.Top >= monitor.
Work
.Top && window.Bottom <= monitor.
Work
.Bottom,
TrayApplication.SettingsAppearance.cs (8)
92
var pageHeight = Math.Min(desired.Bottom, monitor.
Work
.Bottom - monitor.
Work
.Top - frameHeight);
105
var x = Math.Clamp(window.Left, monitor.
Work
.Left, Math.Max(monitor.
Work
.Left, monitor.
Work
.Right - width));
106
var y = Math.Clamp(window.Top, monitor.
Work
.Top, Math.Max(monitor.
Work
.Top, monitor.
Work
.Bottom - height));
TrayApplication.Tooltips.cs (15)
110
var x = Math.Clamp(bounds.Left, monitor.
Work
.Left, Math.Max(monitor.
Work
.Left, monitor.
Work
.Right - (bounds.Right - bounds.Left)));
111
var y = Math.Clamp(bounds.Top, monitor.
Work
.Top, Math.Max(monitor.
Work
.Top, monitor.
Work
.Bottom - (bounds.Bottom - bounds.Top)));
128
var maximumWidth = Math.Max(1, Math.Min((int)(600 * dpi / 96), monitor.
Work
.Right - monitor.
Work
.Left - 4 * gap));
138
var x = Math.Clamp(last.Left, monitor.
Work
.Left, Math.Max(monitor.
Work
.Left, monitor.
Work
.Right - width));
141
if (y + height > monitor.
Work
.Bottom)
145
y = Math.Clamp(y, monitor.
Work
.Top, Math.Max(monitor.
Work
.Top, monitor.
Work
.Bottom - height));