Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. How to set bitmap on a button control?

How to set bitmap on a button control?

Scheduled Pinned Locked Moved WPF
questioncsharpwpfgraphicstutorial
10 Posts 3 Posters 27 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bankey1010
    wrote on last edited by
    #1

    Hi All, I am working with WPF application but i am new with that so i have to add bitmap on button at bottum. can anybody give some idea how can i add images on button and text at top of the button in WPF Application? Thanks Bankey

    P L 2 Replies Last reply
    0
    • B bankey1010

      Hi All, I am working with WPF application but i am new with that so i have to add bitmap on button at bottum. can anybody give some idea how can i add images on button and text at top of the button in WPF Application? Thanks Bankey

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Well, from memory you could always assign one like this

      :<Button Width="75" Height="40">
      <Grid>
      <Grid.ColumnDefinitions>
      <ColumnDefinition />
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      </Grid.RowDefinitions>
      <TextBlock Grid.Row="0">
      <AccessText>_Hello</AccessText>
      </TextBlock>
      <Image Grid.Row="1" x:Name="vista_png" Source="vista.png"/>
      </Grid>
      </Button>

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      1 Reply Last reply
      0
      • B bankey1010

        Hi All, I am working with WPF application but i am new with that so i have to add bitmap on button at bottum. can anybody give some idea how can i add images on button and text at top of the button in WPF Application? Thanks Bankey

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I have a button control with image, image and text or just text in this article: http://www.codeproject.com/KB/WPF/WPFBusinessAppsPartThree.aspx[^]

        Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

        Just a grain of sand on the worlds beaches.

        P 1 Reply Last reply
        0
        • L Lost User

          I have a button control with image, image and text or just text in this article: http://www.codeproject.com/KB/WPF/WPFBusinessAppsPartThree.aspx[^]

          Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

          Just a grain of sand on the worlds beaches.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Karl - how dare you get some sleep? I've been fielding questions on my own ;)

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          L 1 Reply Last reply
          0
          • P Pete OHanlon

            Karl - how dare you get some sleep? I've been fielding questions on my own ;)

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Yep, Being 5 hours behind you, helps my stress level! LOL! :cool:

            Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

            Just a grain of sand on the worlds beaches.

            P 1 Reply Last reply
            0
            • L Lost User

              Yep, Being 5 hours behind you, helps my stress level! LOL! :cool:

              Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

              Just a grain of sand on the worlds beaches.

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Karl Shifflett wrote:

              Being 5 hours behind you, helps my stress level! LOL!

              I'm glad I can help. ;)

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              L 1 Reply Last reply
              0
              • P Pete OHanlon

                Karl Shifflett wrote:

                Being 5 hours behind you, helps my stress level! LOL!

                I'm glad I can help. ;)

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Pete, Help??? You are The Man. We are all very lucky to have you provide assistance to us in this forum. Thanks for helping all of us!

                Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

                Just a grain of sand on the worlds beaches.

                P 1 Reply Last reply
                0
                • L Lost User

                  Pete, Help??? You are The Man. We are all very lucky to have you provide assistance to us in this forum. Thanks for helping all of us!

                  Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

                  Just a grain of sand on the worlds beaches.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  Karl Shifflett wrote:

                  Help??? You are The Man. We are all very lucky to have you provide assistance to us in this forum.

                  :-O Karl. You don't know how much that means to me coming from a WPF guru like yourself. I count myself lucky to be on a site that has people like yourself, Josh and Sacha on it. Your articles are a real inspiration. Wow - enough self congratulations from us. Let's just admit that we're "The Men". :-D

                  Deja View - the feeling that you've seen this post before.

                  My blog | My articles

                  L 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    Karl Shifflett wrote:

                    Help??? You are The Man. We are all very lucky to have you provide assistance to us in this forum.

                    :-O Karl. You don't know how much that means to me coming from a WPF guru like yourself. I count myself lucky to be on a site that has people like yourself, Josh and Sacha on it. Your articles are a real inspiration. Wow - enough self congratulations from us. Let's just admit that we're "The Men". :-D

                    Deja View - the feeling that you've seen this post before.

                    My blog | My articles

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Just two regular guys keeping it real and returning back to the community that helped us get going and keep our sanity. :cool:

                    Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

                    Just a grain of sand on the worlds beaches.

                    P 1 Reply Last reply
                    0
                    • L Lost User

                      Just two regular guys keeping it real and returning back to the community that helped us get going and keep our sanity. :cool:

                      Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

                      Just a grain of sand on the worlds beaches.

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #10

                      Karl Shifflett wrote:

                      Just two regular guys keeping it real and returning back to the community that helped us get going and keep our sanity

                      I'd go with that. :)

                      Deja View - the feeling that you've seen this post before.

                      My blog | My articles

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups