protected void SyncDimension(SizeDimension dimension)
{
// Setup initial conditions.
ISize size = Model as ISize;
if (size == null) return;
// Width.
if (dimension == SizeDimension.Width)
{
if (size.Width != ButtonModel.NoSize) Width = size.Width;
}
// Height.
if (dimension == SizeDimension.Height)
{
if (size.Height != ButtonModel.NoSize) Height = size.Height;
}
}
#endregion