Hi, I have an expander in which is a grid with different content. How do I get it, that the contents of the expander are moved to the far left?
The expander should be set to the full size of the stackpanel just like the existing grids:
the content should start at the yellow line, not at the red line
Expander expander = new Expander { FontFamily = ChartControl.Properties.LabelFont.Family, FontSize = PanelTextSize, //FontWeight = FontWeights.Bold, Foreground = PanelInactivTextColor, Header = "Setup/Entry Filter`s", ExpandDirection = ExpandDirection.Down, IsExpanded = true, Width = spStackPanelWith, HorizontalAlignment = HorizontalAlignment.Left, HorizontalContentAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top, VerticalContentAlignment = VerticalAlignment.Top, Margin = new Thickness(spStackPanelContentDistanceFromLeft, 0, 2, 0), };
Comment