Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: PropertyGrid - Showing HorizontalContentAlignment and VerticalContentAlignment properties

$
0
0
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
public partial class MyCanvas : Canvas
{
}
public class CanvasItem : Button, ISelectable, IGroupable
{
}
Is there any way to resolve this.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>