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 4101272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:40:31+00:00 2026-05-20T20:40:31+00:00

I want to apply transparency to a button which contains an image, but button’s

  • 0

I want to apply transparency to a button which contains an image, but button’s transparent seems when application start. How can ı do this?

<Button Grid.Column="1" Name="btnClose" 
                        BorderBrush="Transparent" 
                        Background="Transparent"
                        BorderThickness="0" Click="btnClose_Click">
                    <Image  Source="close.ico" ></Image>
</Button>

and what is the method that close the-

  • 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-20T20:40:32+00:00Added an answer on May 20, 2026 at 8:40 pm

    1 – To set the overall transparency of the button you should set the Opacity property to something between 0 and 1. Not sure what you want to do at application start but if you set values in XAML those are automatically applied at startup. If you want to animate it to become visible please clarify.

    2 – To only show the image you can override the template of the button to only show its content, add this to the Button:

    <Button.Template>
        <ControlTemplate>
            <ContentPresenter />
        </ControlTemplate>
    </Button.Template>
    

    3 – To exit the application when the button is clicked add this to the handler of the click event:

    App.Current.Shutdown();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want apply margin property for my html newsletter But Gmail ignores this CSS
I want to apply transparency to a non-transparent logo then add it to an
I want to apply cycle to the div block with dynamic content. This content
I want to apply some CSS to text that I can't get marked up
Basically I want to put a transparent image in the bottom-right corner. I read
I have something along the lines of this <div class=menu style=background-color: transparent;> <div class=button>
I have a simple solid modeling application in which I want to implement several
I have one texture that has some portions which are transparent transparent I want
I want apply opacity for parent but I do not want the child element
i have this elements <div class="a b"></div> <div class="b"></div> <div class="a"></div> I want apply

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.