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

  • SEARCH
  • Home
  • 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 7592277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:52:03+00:00 2026-05-30T20:52:03+00:00

Im trying to make a small screenshot program, im making a small WPF window

  • 0

Im trying to make a small screenshot program, im making a small WPF window with a border. This should function as a “Viewport” so everything inside the window (within the border) should be screenshottet. How ever when i set the transparency of the window to 0 then i cant see my border. Any ideas on how to make my grid fully transparent, and still preserve a 2 px black border around it?

  • 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-30T20:52:04+00:00Added an answer on May 30, 2026 at 8:52 pm

    Not sure if you want the window or just the grid transparent with border.

    That draws a border around the window:

    <Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" 
            AllowsTransparency="True" 
            WindowStyle="None" 
            Background="Transparent" 
            BorderThickness="2" 
            BorderBrush="Black">
        <Grid>
    
        </Grid>
    </Window>
    

    This is drawing a broder around the grid only:

    <Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" AllowsTransparency="True" WindowStyle="None" Background="Transparent">
        <Border BorderThickness="2" BorderBrush="Black">
            <Grid>
    
            </Grid>
        </Border>
    </Window>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to make a small name summary function depending on the size of
I'm trying to make a small program that could intercept the open process of
Im trying to make a small app in c++ that saves midifiles with this
I'm trying to make a small program more robust and I need some help
I am trying to make a small system tray program with only a context
I am trying to make a small drawing program for small children. I am
I'm trying to make a small tool that makes use of the Debugger Engine
I'm currently trying to make a small application that performs different duties. Right now
I've been trying to get input with IUP to make a small pong game.
i m trying to make small test driven example by using cppunit. So i

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.