public AreaStyleViewModel(AreaStyle style) : base(style) { actualAreaStyle = style; HelpKey = "AreaStyleHelp"; outlinePen = new GeoPenViewModel(style.OutlinePen); OutlinePen.PropertyChanged += OutlinePen_PropertyChanged; //LoadSwitchableStylePlugins(StyleCategories.Area); //LoadSwitchableStylePlugins(StyleCategories.Text); //SetDefaultSelectedStyleType(); }
public LineStyleViewModel(LineStyle style) : base(style) { HelpKey = "LineStyleHelp"; ActualObject = style; actualLineStyle = style; outerPen = new GeoPenViewModel(style.OuterPen); innerPen = new GeoPenViewModel(style.InnerPen); centerPen = new GeoPenViewModel(style.CenterPen); OuterPen.PropertyChanged += new PropertyChangedEventHandler(GeoPen_PropertyChanged); InnerPen.PropertyChanged += new PropertyChangedEventHandler(GeoPen_PropertyChanged); CenterPen.PropertyChanged += new PropertyChangedEventHandler(GeoPen_PropertyChanged); //LoadSwitchableStylePlugins(StyleCategories.Line); //LoadSwitchableStylePlugins(StyleCategories.Text); //SetDefaultSelectedStyleType(); OuterPen.ColorAndThicknessVisibility = Visibility.Collapsed; }