@@ -48,20 +48,23 @@ public class DXCanvas : Control
4848 /// Gets Direct2D factory.
4949 /// </summary>
5050 [ Browsable ( false ) ]
51+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
5152 public IComObject < ID2D1Factory1 > ? Direct2DFactory => _d2DFactory ;
5253
5354
5455 /// <summary>
5556 /// Gets DirectWrite factory.
5657 /// </summary>
5758 [ Browsable ( false ) ]
59+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
5860 public IComObject < IDWriteFactory5 > ? DirectWriteFactory => _dWriteFactory ;
5961
6062
6163 /// <summary>
6264 /// Gets render target for this control.
6365 /// </summary>
6466 [ Browsable ( false ) ]
67+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
6568 public IComObject < ID2D1HwndRenderTarget > ? RenderTarget => _renderTarget ;
6669
6770
@@ -76,20 +79,23 @@ public class DXCanvas : Control
7679 /// Gets the <see cref='DXGraphics'/> object used to draw in <see cref="Render"/>.
7780 /// </summary>
7881 [ Browsable ( false ) ]
82+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
7983 public DXGraphics ? D2Graphics => _graphicsD2d ;
8084
8185
8286 /// <summary>
8387 /// Gets the value indicates if control is fully loaded
8488 /// </summary>
8589 [ Browsable ( false ) ]
90+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
8691 public bool IsReady => ! DesignMode && Created ;
8792
8893
8994 /// <summary>
9095 /// Gets, sets the DPI for drawing when using <see cref="DXGraphics"/>.
9196 /// </summary>
9297 [ Browsable ( false ) ]
98+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
9399 public float BaseDpi
94100 {
95101 get => _dpi ;
@@ -135,6 +141,7 @@ public virtual bool UseHardwareAcceleration
135141 /// Request to update logics of the current frame in the <see cref="OnFrame"/> event.
136142 /// </summary>
137143 [ Browsable ( false ) ]
144+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
138145 public bool RequestUpdateFrame { get ; set ; } = false ;
139146
140147
@@ -150,13 +157,15 @@ public virtual bool UseHardwareAcceleration
150157 /// Enable FPS measurement.
151158 /// </summary>
152159 [ Browsable ( false ) ]
160+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
153161 public bool CheckFPS { get ; set ; } = false ;
154162
155163
156164 /// <summary>
157165 /// Gets FPS info when the <see cref="CheckFPS"/> is set to <c>true</c>.
158166 /// </summary>
159167 [ Browsable ( false ) ]
168+ [ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
160169 public int FPS => _lastFps ;
161170
162171
0 commit comments