Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            Manager = new BookManager();

            // 最初の起動時に初期化
            Activated += (s, e) =>
            {
                Init();
                OnRefreshRequested(null, null);
            };

            // サイズが変わったら組版する
            SizeChanged += (s, e) =>
            {
                Manager.TateviewWidth  = canvas.CanvasSize.Width;
                Manager.TateviewHeight = canvas.CanvasSize.Height;
                Manager.Compose(true);
                // refresh the view
                OnRefreshRequested(null, null);
            };
        }