Пример #1
0
        public NoteWindow(INoteController controller, string id)
        {
            InitializeComponent();
            Id             = id;
            _note          = new NoteController(id, MultiText);
            _noteViewModel = new NoteViewModel(controller, id);
            DataContext    = _noteViewModel;

            SetLuminance(_noteViewModel.Note.Color.Color);

            MultiText.SetValue(Block.LineHeightProperty, 0.1);
            MultiText.Document.Blocks.Clear();
            _note.LoadRichTextBox();

            this.ShowInTaskbar = false;
        }