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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:17:44+00:00 2026-05-26T14:17:44+00:00

DevExpress WPF is driving me mad with things that are very simple. How do

  • 0

DevExpress WPF is driving me mad with things that are very simple.

How do I add margin around a control in DevExpress WPF?
For default WPF control, I can simply add a “Margin” property in control, for example:

<Button Margin="5" />

Done. In DevExpress WPF, there is no Margin property. Take following code as an example – a ComboBox – how do I add Margin to it?

<dxb:BarEditItem x:Name="comboBox" Content="ComboBox" EditWidth="100" EditHeight="35">
    <dxb:BarEditItem.EditSettings>
        <dxe:ComboBoxEditSettings>
            <dxe:ComboBoxEditSettings.Items>
                <dxe:ComboBoxEditItem>AAA</dxe:ComboBoxEditItem>
                <dxe:ComboBoxEditItem>BBB</dxe:ComboBoxEditItem>
                <dxe:ComboBoxEditItem>CCC</dxe:ComboBoxEditItem>
            </dxe:ComboBoxEditSettings.Items>
        </dxe:ComboBoxEditSettings>
    </dxb:BarEditItem.EditSettings>
</dxb:BarEditItem>
  • 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-26T14:17:45+00:00Added an answer on May 26, 2026 at 2:17 pm

    A bar item is a non-visual object that implements a specific functionality so you can’t apply visual properties on it directly.
    You can set the editor properties via the BarEditItem.EditStyle property:

    <dxb:BarEditItem x:Name="comboBox" Content="ComboBox" EditWidth="100">
        <dxb:BarEditItem.EditStyle>
            <Style TargetType="dxe:ComboBoxEdit">
                <Setter Property="Margin" Value="12,4,12,4"/>
            </Style>
        </dxb:BarEditItem.EditStyle>
        <dxb:BarEditItem.EditSettings>
            <dxe:ComboBoxEditSettings>
                <dxe:ComboBoxEditSettings.Items>
                    <dxe:ComboBoxEditItem>AAA</dxe:ComboBoxEditItem>
                    <dxe:ComboBoxEditItem>BBB</dxe:ComboBoxEditItem>
                    <dxe:ComboBoxEditItem>CCC</dxe:ComboBoxEditItem>
                </dxe:ComboBoxEditSettings.Items>
            </dxe:ComboBoxEditSettings>
        </dxb:BarEditItem.EditSettings>
    </dxb:BarEditItem>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to programatically add Spin event to DevExpress WPF SpinEdit Control? * Why can't
DevExpress have no simple report viewer control for using an XtraReport on a Windows
I'm using the DevExpress WPF grid control. When you hover the mouse over a
In WPF how can I find the size of a DevExpress BaseLayoutItem ? It
I am using DevExpress AspxScherduler control. How can i disable selection of multiple rows.
I have a very simple set of styles that I'm using in a couple
Where can i find a comparitive study on the wpf grids of Devexpress/Telerik/Exceed/Infragistics ?
I use devexpress wpf user control ( SpinEdit ). When I enter the wrong
I'm using a DevExpress WinForms XtraTab control v11.2 and I can't get the tab
I am trying to port some code using DevExpress XtraGrid to Wpf. What is

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.