protected override void OnSizeAllocated(Gdk.Rectangle allocation) { base.OnSizeAllocated(allocation); if (!_lastAllocation.Equals(allocation)) { _lastAllocation = allocation; _image.SetSizeRequest(allocation.Width, allocation.Height); _wrapperBox.SetSizeRequest(allocation.Width, allocation.Height); } }
protected override void OnSizeAllocated(Gdk.Rectangle allocation) { base.OnSizeAllocated(allocation); if (_lastAllocation != allocation) { _lastAllocation = allocation; _image.SetSizeRequest(allocation.Width, allocation.Height); _widget.SetSizeRequest(allocation.Width, allocation.Height); } }
private void OnContentContainerWrapperSizeAllocated(object o, SizeAllocatedArgs args) { _image.SetSizeRequest(args.Allocation.Width, args.Allocation.Height); }