Exemple #1
0
        public ExportLayoutTemplate(ExportLayoutTemplateVM vm)
        {
            InitializeComponent();

            m_VM             = vm;
            this.DataContext = m_VM;
        }
        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;
        }