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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:28:22+00:00 2026-06-11T18:28:22+00:00

here is whats getting on my nerve: My job si to restyle application, so

  • 0

here is whats getting on my nerve:

My job si to restyle application, so i didn’t wrote it, i have to slightly change the code(.cs or .xaml). Problem lies within avalonDock…i cant remove borders from panels, or change its color.

This is part of code, where dockingManager parts are defined(lets call it MainView.xaml)

<ad:DockingManager Name="dockingManager" >
        <ad:ResizingPanel Orientation="Horizontal">
            <ad:DockablePane ad:ResizingPanel.ResizeWidth="50" Name="navigatorHostCtrlPane" >
                <ad:DockableContent Name="navigatorHostCtrl" Title="{StaticResource Navi}" IsCloseable="False" Background="Transparent"/>
            </ad:DockablePane>
            <ad:ResizingPanel Orientation="Vertical" >
                <ad:DockablePane Name="mainPane" >
                    <ad:DockableContent x:Name="mainHostCtrl" Title="{StaticResource Sc}" AllowDrop="False" IsCloseable="False" ClipToBounds="False" Background="White"/>
                </ad:DockablePane>
                <ad:DockablePane ad:ResizingPanel.ResizeHeight="250"  >
                    <ad:DockableContent Name="dataHostCtrl" Title="{StaticResource Dt}" IsCloseable="False" Background="White"/>
                </ad:DockablePane>
            </ad:ResizingPanel>
        </ad:ResizingPanel>
    </ad:DockingManager>

And this is where parts are set in .cs file(MainView.xaml.cs) like this:

BindRegionToGui(regionManager, RegionNames.NavigatorRegion, navigatorHostCtrl);

And BindRegionToGui():

private static void BindRegionToGui(IRegionManager regionManager, string regionName, UIElement content)
    {
        var reg = (AvalonDockRegion)regionManager.Regions[regionName];
        reg.Bind(content);
    }

I cant change style of outer border even in element by setting BorderThickness = “1“, or in style definition:

<Style x:Key="{x:Type ad:DockablePane}" TargetType="{x:Type ad:DockablePane}">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property=“BorderThickness“ Value=“0“/>
</Style>

I can alter whole dockingPanes by setting style like this(after some example):

<Style TargetType="{x:Type ad:DockablePane}">
       …
    <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ad:DockablePane}">
                    <Border  
                        Background=….
             </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

But with this – the content won’t show up. I assume, that content.template overrides it, but i dont know how i can put application’s defined panels into it.

Sorry if this is stupid question but i am really beginner in xaml / c# so i’m in kind of a bad situation.

  • 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-11T18:28:23+00:00Added an answer on June 11, 2026 at 6:28 pm

    I restyled AvalonDock in pretty dumb way. I’ve downloaded source code from http://avalondock.codeplex.com/SourceControl/list/changesets, changed generic.xaml and rebuild whole library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

from here 48 struct snd_card *snd_cards[SNDRV_CARDS]; 49 EXPORT_SYMBOL(snd_cards); I am not getting whats the
I'm not entirely sure whats happened here. I may have messed things up somewhere,
Here is the code I dont know whats wrong with it. <?php //Logout code
I have a noob question here. I'm getting my head around the C++ structure
I'm getting this message and cannot figure out whats wrong, here is a dump
I don't know whats wrong with the code, but keep getting these error messages
Hey guys, im getting a little problem here. I am getting a Level 1
Im getting a funny MySQL error. Here's whats happening: query: SELECT COUNT(id) AS mycount
I need some help. Here's what I'm getting right now: img ref I need
I keep getting this RuntimeError which I'm not sure how to fix. Here's what

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.