Expression bodied property
This commit is contained in:
parent
00abcea14c
commit
5a3400a1ce
1 changed files with 3 additions and 9 deletions
|
|
@ -116,17 +116,11 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
||||||
return imageWidget;
|
return imageWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clamped to MinDockingWidth or value
|
||||||
double PageWidth
|
double PageWidth
|
||||||
{
|
{
|
||||||
get
|
get => Math.Max(MinDockingWidth, printer.ViewState.SliceSettingsWidth);
|
||||||
{
|
set => printer.ViewState.SliceSettingsWidth = Math.Max(MinDockingWidth, value);
|
||||||
return Math.Max(MinDockingWidth, printer.ViewState.SliceSettingsWidth);
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
var clampedWidth = Math.Max(MinDockingWidth, value);
|
|
||||||
printer.ViewState.SliceSettingsWidth = clampedWidth;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Rebuild()
|
private void Rebuild()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue