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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:20:51+00:00 2026-06-14T08:20:51+00:00

I need to create and use 9-patch image ( *.9.png, like in android) in

  • 0

I need to create and use 9-patch image ( *.9.png, like in android) in WPF-app!
Only one question – HOW?

  • 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-06-14T08:20:52+00:00Added an answer on June 14, 2026 at 8:20 am

    WPF doesn’t support 9-patch format out of the box that I’m aware of, so you’re looking at a custom control – that said, I imagine it’d be one of the more “reasonable” controls to put together: really you’d be looking at setting up…well, to be simple, 9 different Images, each set Stretch to extents, all wrapped within a…oh, let’s pick a DockPanel for the hell of it. The control template might look something like:

    (warning: slightly inebriated and free-handling this on a bloody phone, so likely not compile-able…in fact, now that I think of it, a Grid would probably be a wiser choice (3×3 rows cols, each cell with an image), but I shall persist in my original suggestion!)

    <DockPanel>
        <DockPanel DockPanel.Dock="Top">
            <Image DockPanel.Dock="Left" Source="{Binding LeftTopImage}"/>
            <Image DockPanel.Dock="Right" Source="{Binding RightTopImage}"/>
            <Image Source="{Binding CenterTopImage}"/>
        </DockPanel>
        <DockPanel DockPanel.Dock="Left">
            <Image Source="{Binding CenterLeftImage}"/>
        </DockPanel>
        <DockPanel DockPanel.Dock="Right">
            <Image Source="{Binding CenterRightImage}"/>
        </DockPanel>
        <DockPanel DockPanel.Dock="Bottom">
            <Image DockPanel.Dock="Left" Source="{Binding LeftBottomImage}"/>
            <Image DockPanel.Dock="Right" Source="{Binding RightBottomImage}"/>
            <Image Source="{Binding CenterBottomImage}"/>
        </DockPanel>
        <DockPanel>
            <Image Source="{Binding CenterImage}"/>
        </DockPanel>
    </DockPanel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a nine-patch image and use that in my App but
This is a design question: when do I need to create/use a static method
I need to create an app (C++) that will use the printer to print
I am trying to create a simple image collage and need to use Masonry
I use MS SQL 2008 R2, I need create a Table with a CHECK
I need to create an array for time that I will use in a
I need to create a gem, for my own use, that substitutes the current
I need to create a custom json for the jit library. Should I use
We need to create & destroy instances of QApplication, as we want to use
In C#, I need to create XML files for use with Ivy and NAnt,

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.