A value of null means do not fill the background of the container.
[TestMethod] public void AnnContainer_Fill() { // Get the container in the automation object AnnContainer container = _automation.Container; // Add a blue border container.Stroke = AnnStroke.Create(AnnSolidColorBrush.Create("Blue"), LeadLengthDHelper.Create(2)); // Add semi transparent black background container.Fill = AnnSolidColorBrush.Create("rgba(0, 0, 0, 0.5)"); // Show it _automation.Invalidate(LeadRectDHelper.Empty); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2