You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public(XColorglyph,XColortextRun)?GlyphBoxColor{ get =>((XColorglyph,XColortextRun)?)GetValue(GlyphBoxColorProperty); set =>SetValue(GlyphBoxColorProperty,value);}
publicstaticreadonlyXPropertyHighlightColorProperty=CreateProperty<BaseView<TPainter,TContent>,XColor>(nameof(HighlightColor),false, p =>XCanvasColorToXColor(p.HighlightColor),(p,v)=>p.HighlightColor=XColorToXCanvasColor(v));
277
277
publicXColorErrorColor{ get =>(XColor)GetValue(ErrorColorProperty); set =>SetValue(ErrorColorProperty,value);}
278
278
publicstaticreadonlyXPropertyErrorColorProperty=CreateProperty<BaseView<TPainter,TContent>,XColor>(nameof(ErrorColor),false, p =>XCanvasColorToXColor(p.ErrorColor),(p,v)=>p.ErrorColor=XColorToXCanvasColor(v));
279
-
publicTextAlignmentTextAlignment{ get =>(TextAlignment)GetValue(TextAlignmentProperty); set =>SetValue(TextAlignmentProperty,value);}
280
-
publicstaticreadonlyXPropertyTextAlignmentProperty=CreateProperty<BaseView<TPainter,TContent>,TextAlignment>(nameof(Rendering.FrontEnd.TextAlignment),false, p =>(TextAlignment)drawMethodParams[1].DefaultValue,(p,v)=>{});
281
-
publicThicknessPadding{ get =>(Thickness)GetValue(PaddingProperty); set =>SetValue(PaddingProperty,value);}
282
-
publicstaticreadonlyXPropertyPaddingProperty=CreateProperty<BaseView<TPainter,TContent>,Thickness>(nameof(Padding),false, p =>(Thickness)(drawMethodParams[2].DefaultValue??newThickness()),(p,v)=>{});
279
+
publicCSharpMathTextAlignmentTextAlignment{ get =>(CSharpMathTextAlignment)GetValue(TextAlignmentProperty); set =>SetValue(TextAlignmentProperty,value);}
280
+
publicstaticreadonlyXPropertyTextAlignmentProperty=CreateProperty<BaseView<TPainter,TContent>,CSharpMathTextAlignment>(nameof(Rendering.FrontEnd.TextAlignment),false, p =>(CSharpMathTextAlignment)drawMethodParams[1].DefaultValue,(p,v)=>{});
281
+
publicCSharpMathThicknessPadding{ get =>(CSharpMathThickness)GetValue(PaddingProperty); set =>SetValue(PaddingProperty,value);}
282
+
publicstaticreadonlyXPropertyPaddingProperty=CreateProperty<BaseView<TPainter,TContent>,CSharpMathThickness>(nameof(Padding),false, p =>(CSharpMathThickness)(drawMethodParams[2].DefaultValue??newCSharpMathThickness()),(p,v)=>{});
283
283
publicdoubleDisplacementX{ get =>(float)GetValue(DisplacementXProperty); set =>SetValue(DisplacementXProperty,value);}
284
-
publicstaticreadonlyXPropertyDisplacementXProperty=CreateProperty<BaseView<TPainter,TContent>,double>(nameof(DisplacementX),false, p =>(double)drawMethodParams[3].DefaultValue,(p,v)=>{});
284
+
publicstaticreadonlyXPropertyDisplacementXProperty=CreateProperty<BaseView<TPainter,TContent>,double>(nameof(DisplacementX),false, p =>Convert.ToDouble(drawMethodParams[3].DefaultValue),(p,v)=>{});
285
285
publicdoubleDisplacementY{ get =>(float)GetValue(DisplacementYProperty); set =>SetValue(DisplacementYProperty,value);}
286
-
publicstaticreadonlyXPropertyDisplacementYProperty=CreateProperty<BaseView<TPainter,TContent>,double>(nameof(DisplacementY),false, p =>(double)drawMethodParams[4].DefaultValue,(p,v)=>{});
286
+
publicstaticreadonlyXPropertyDisplacementYProperty=CreateProperty<BaseView<TPainter,TContent>,double>(nameof(DisplacementY),false, p =>Convert.ToDouble(drawMethodParams[4].DefaultValue),(p,v)=>{});
287
287
publicdoubleMagnification{ get =>(float)GetValue(MagnificationProperty); set =>SetValue(MagnificationProperty,value);}
288
288
publicstaticreadonlyXPropertyMagnificationProperty=CreateProperty<BaseView<TPainter,TContent>,double>(nameof(Magnification),false, p =>p.Magnification,(p,v)=>p.Magnification=(float)v);
289
289
publicPaintStylePaintStyle{ get =>(PaintStyle)GetValue(PaintStyleProperty); set =>SetValue(PaintStyleProperty,value);}
privatestaticreadonlyReadOnlyProperty<BaseView<TPainter,TContent>,string?>ErrorMessagePropertyKey=newReadOnlyProperty<BaseView<TPainter,TContent>,string?>(nameof(ErrorMessage), p =>p.ErrorMessage);
0 commit comments