In my application I have a MyCanvas class (a class derived from canvas) and I drag and drop items on that MyCanvas.
The Items that are dragged and dropped are of CanvasItem class which is derived from Button Class.
From propertygrid control, I want to change the horizontal content alignment and vertical content alignment of the dropped items. But even if I change those properties from the propertygrid it does not reflect on the dropped items. If I use a normal button instead of CanvasItem, then it is reflected.
The signature for MyCanvas and CanvasItem is given
The Items that are dragged and dropped are of CanvasItem class which is derived from Button Class.
From propertygrid control, I want to change the horizontal content alignment and vertical content alignment of the dropped items. But even if I change those properties from the propertygrid it does not reflect on the dropped items. If I use a normal button instead of CanvasItem, then it is reflected.
The signature for MyCanvas and CanvasItem is given
public partial class MyCanvas : Canvas
{
}
public class CanvasItem : Button, ISelectable, IGroupable
{
}
Is there any way to resolve this.