
I have inherited a wpf project from a departed engineer. This project is using actipro for various features, including Themes. I'm also new to wpf/xaml, although I have plenty of C# experience.
One view is using an Expander. The xaml is just this simple:
//in resources:
<Style x:Key="DataFileListContainerStyle" TargetType="{x:Type GroupItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Expander Header="{Binding Name}" IsExpanded="True">
<ItemsPresenter />
</Expander>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ListBox BorderThickness="0"
ItemsSource="{Binding Files}" SelectedValue="{Binding SelectedDataFile}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Margin="1,1,1,1">
<TextBlock.Text>
<Binding Path="FilePath"/>
</TextBlock.Text>
</TextBlock>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.GroupStyle>
<GroupStyle ContainerStyle="{StaticResource DataFileListContainerStyle}"/>
</ListBox.GroupStyle>
</ListBox>
The problem is the default actipro expander has the expand icon all the way on the right, which in some cases is "off screen". I would prefer the icon to always be on the left, same as the default wpf expander. How do I do this?