Dockable window background color

434
2
07-09-2012 12:14 PM
BrentHoskisson
Occasional Contributor III
I created an addin with a dockable window.  It works great.  Problem is I decided I need a different background color on the window.  So I changed the background color in the designer, started it up and it is always the original background color.  The code must be cached somewhere.  How can I change the background color of my window?  Where is the cache to delete?
0 Kudos
2 Replies
BrentHoskisson
Occasional Contributor III
Never mind, I got it working
0 Kudos
Abdur_RahmanMohammad_Abdul_Maj
New Contributor
Hi,

I am having quite a similar problem that the add-in I created was a dockable window which shows up on a button click on the left side of ArcMap and pinned. But as i changed it setting to unpinned and to right side in  "Config.esriaddinx" and again rebuild and ran it, its no displaying the changes in ArcMap. I have used the following code to show it.

            UID dockWinID = new UIDClass();
            dockWinID.Value = ThisAddIn.IDs.DockableWindow1;

            // Use GetDockableWindow directly as we want the client IDockableWindow not the internal class
            
            IDockableWindow dockWindow = ArcMap.DockableWindowManager.GetDockableWindow(dockWinID);
            dockWindow.Show(true);




Btw I am using ArcGIS 10 and developing the add in in VS 2010.

Any help will be greatly appreciated.

Arahman
0 Kudos