You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
573 B
21 lines
573 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Windows; |
|
using SharpDevelop.XamlDesigner.Dom; |
|
|
|
namespace SharpDevelop.XamlDesigner.Placement |
|
{ |
|
class GridContainer : PositionalContainer |
|
{ |
|
public override void SetPosition(DesignItem item, Rect bounds) |
|
{ |
|
item.View.Width = bounds.Width; |
|
item.View.Height = bounds.Height; |
|
item.View.Margin = new Thickness(bounds.X, bounds.Y, 0, 0); |
|
item.View.HorizontalAlignment = HorizontalAlignment.Left; |
|
item.View.VerticalAlignment = VerticalAlignment.Top; |
|
} |
|
} |
|
}
|
|
|