コード例 #1
0
		protected override ElementBaseRectangle CreateElement(double left, double top)
		{
			var element = new ElementRectangleGKMPT() { Left = left, Top = top };
			var propertiesViewModel = new MPTPropertiesViewModel(element, DesignerCanvas);
			return DialogService.ShowModalWindow(propertiesViewModel) ? element : null;
		}
コード例 #2
0
ファイル: MPTPolygonAdorner.cs プロジェクト: xbadcode/Rubezh
		protected override ElementBaseShape CreateElement(RubezhAPI.PointCollection points)
		{
			var element = new ElementPolygonGKMPT() { Points = points };
			var propertiesViewModel = new MPTPropertiesViewModel(element, DesignerCanvas);
			return DialogService.ShowModalWindow(propertiesViewModel) ? element : null;
		}