public TextVisual(TextModel model) { InitializeComponent(); WindowWidth = model.GetWidth(); WindowHeight = model.GetHeight(); Position = model.GetPosition(); if (model.BackgroundColor != null) { Color = new SolidColorBrush(model.BackgroundColor); } Model = model; Model.loadRTB(mainRTB); Model.UpdateableView = this; }