Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 861979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:04:01+00:00 2026-05-15T09:04:01+00:00

I am trying to create one rectangle filled with Horizontal or Vertical lines. The

  • 0

I am trying to create one rectangle filled with Horizontal or Vertical lines.
The width of the rectangle is dynamic so I can not use an image brush.
Please let me know if anybody knows any solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:04:01+00:00Added an answer on May 15, 2026 at 9:04 am

    I figured out a straight-forward way of doing this; finally, I used following visual brush resources to fill rectangle with horizontal, vertical or dotted vertical lines respectively

       <!--for horizontal lines-->    
       <VisualBrush 
                  x:Key="HorizontalLines" 
                  TileMode="Tile" Viewport="0,0,4,4" 
                  ViewportUnits="Absolute" Viewbox="0,0,10,10"    
                  ViewboxUnits="Absolute">
                <VisualBrush.Visual>
                    <Canvas>
                        <Path Stroke="Black" Data="M 0 10 l 10 0" />
                    </Canvas>
                </VisualBrush.Visual>
            </VisualBrush>
    
            <!--For vertical lines-->
            <VisualBrush 
                  x:Key="VerticalLines" 
                  TileMode="Tile" Viewport="0,0,4,4" 
                  ViewportUnits="Absolute" Viewbox="0,0,10,10"    
                  ViewboxUnits="Absolute">
                <VisualBrush.Visual>
                    <Canvas >            
                        <Path Stroke="Black" Data="M 0 0 l 0 10" />                        
                    </Canvas>
                </VisualBrush.Visual>
            </VisualBrush>
    
    
             <!--For dotted vertical lines-->
            <VisualBrush 
                    x:Key="DottedVerticalLinesWithFill" 
                    TileMode="Tile" Viewport="0,0,10,10" 
                    ViewportUnits="Absolute" Viewbox="0,0,10,10"    
                    ViewboxUnits="Absolute">
                <VisualBrush.Visual>
                    <Canvas>
                        <Path Stroke="Purple" Data="M 0 5l 0 -10" />
                    </Canvas>
                </VisualBrush.Visual>
            </VisualBrush>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create one entity from 2 tables that are related not by
I'm trying to create a drawable in xml, a rectangle with one gradient on
I've been reading up on Dynamic Models and have been trying to create one.
Hi guys i am trying to create one simple make file and execute in
I am new to xslt and trying to create one XSLT , I am
I'm trying to create cookie from one folder that will also work in another.
I am trying to create a table where one of the columns has a
I am trying to create two separate sessions- one for if the user is
I am trying to create two separate sessions- one for if the user is
I am trying to create a situation where one or none of a grouping

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.