none
wpf form should appear as outlook form

    Question

  • Hi All,

    Am Doing a project of dynamic Form Creation. In this User can design his own form like he can add controls and he can drag and drop and keep there positions where ever he wants.

    Now what i want is I saw the Form Design in Outlook Express its looking very great ,i just want my form design screen also like that ,means it was appearing with full of dots on the screen with that user can design form very easily i think.

    How to do this any help ??

    Thanks In Advance.

    Krishna.

    Thursday, October 07, 2010 6:18 AM

Answers

  • Hi Krishna.13579,

    You can achieve this by using a DrawingBrush to paint the Background.

    Here is a simple sample.

     

      <Grid>
        <Grid.Background>
          <DrawingBrush Viewbox="0,0,5,5" Viewport="0,0,5,5" ViewportUnits="Absolute" TileMode="FlipXY">
            <DrawingBrush.Drawing>
              <GeometryDrawing Brush="Black">
                <GeometryDrawing.Geometry>
                    <EllipseGeometry Center="0,0" RadiusX="1" RadiusY="1"/>
                </GeometryDrawing.Geometry>
              </GeometryDrawing>
            </DrawingBrush.Drawing>
          </DrawingBrush>
        </Grid.Background>
      </Grid>
    

    Please refer to http://msdn.microsoft.com/en-us/library/aa970904.aspx for more information about Brushes.

    Hope this helps.

    Best regards,

    Min


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Tuesday, October 12, 2010 8:55 AM
    Moderator

All replies