public ExportLayoutTemplate02_Sheet02(ExportLayoutTemplateVM vm, ImageSource watermarkImage) { InitializeComponent(); // m_WatermarkImage = watermarkImage; // m_WatermarkVisual = new WatermarkVisual(this); this.AddLogicalChild(m_WatermarkVisual); this.AddVisualChild(m_WatermarkVisual); m_VM = vm; this.DataContext = m_VM; }
public RackAppViewport3D() { this.ShowCoordinateSystem = true; this.CoordinateSystemLabelX = "Y"; this.CoordinateSystemLabelY = "X"; this.ZoomExtentsWhenLoaded = true; // init camera PerspectiveCamera camera = new PerspectiveCamera(); camera.Position = new Point3D(1, 1, 1); camera.LookDirection = new Vector3D(-1, -1, -1); camera.UpDirection = new Vector3D(0, 0, 1); this.Camera = camera; m_ViewportsList.Add(this); // m_WatermarkVisual = new WatermarkVisual(this); this.AddLogicalChild(m_WatermarkVisual); this.AddVisualChild(m_WatermarkVisual); this.IsVisibleChanged += RackViewport3D_IsVisibleChanged; }