none
WPF (how to align check all check box alignment in right side in expander control header)

    Question

  • Hi!

          Am using expander control in my wpf application.   Expander control header have check box and label control .

    i want to align my expander header check box as left side and label as right side. My code looks like

    <Expander Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="4" Tag="1" Name="expGenInfo" IsExpanded="true" Expanded="MaintainExpandCollapseState" Collapsed="MaintainExpandCollapseState">
                                            <Expander.Header>
                                                <StackPanel Orientation="Horizontal">
                                                    <Label   Content="General Information" Name="lblGroupHeaderGeneralInformation" HorizontalContentAlignment="Right" HorizontalAlignment="Stretch" />
                                                    <CheckBox  Tag="1" x:Name="chkSelectAllGroupHeaderGeneralInformation" HorizontalAlignment="Left"    IsChecked="False"  Content="{Binding}" Click="chkSelectAll_Click" ClickMode="Press" />
                                                   
                                                </StackPanel>
                                            </Expander.Header>

    </Expander>

      This is an urgent. plz help me .

    Regards,

    Sai pooja


    • Edited by sai pooja Monday, March 17, 2014 6:09 AM
    Monday, March 17, 2014 6:08 AM