Hi,
The document bounds are not the bounds of the viewport, that is the rectangle from the document space shown by the view. Placing a sticky shape at the bottom of the viewport can be achieved by subscribing for the view transformation changed event and repositioning the shape. For example:
NShape shape;
NDrawingView drawingView;
private void Form1_Load(object sender, EventArgs e)
{
drawingView = new NDrawingView();
drawingView.Dock = DockStyle.Fill;
Controls.Add(drawingView);
NDrawingDocument drawingDocument = new NDrawingDocument();
drawingView.Document = drawingDocument;
shape = new NRectangleShape(0, 0, 100, 100);
drawingDocument.ActiveLayer.AddChild(shape);
drawingView.TransformationsChanged += new EventHandler(view_TransformationsChanged);
}
void view_TransformationsChanged(object sender, EventArgs e)
{
NRectangleF bounds = shape.Bounds;
bounds.X = drawingView.Viewport.Right - shape.Bounds.Width;
bounds.Y = drawingView.Viewport.Bottom - shape.Bounds.Height;
shape.Bounds = bounds;
}
Best Regards,
Nevron Support Team