Arrange text in the ComboBox

I try to create some correct XAML to arrange text in the ComboBox to the right, but I cannot.

Here is my XAMl... Any clue what I am missing? Thank you!

 <ComboBox Height="25"
           HorizontalAlignment="Left" 
           ItemsSource="{Binding NonArchivedSequences}"  
           SelectedItem="{Binding SelectedSequence}"
           Margin="0,0,0,4" 
           Name="cbSequences" 
           VerticalAlignment="Top" 
           Width="504"                   
           HorizontalContentAlignment="Stretch" 
           SelectionChanged="cbSequences_SelectionChanged"
           Grid.Column="1">
            <ComboBox.Resources>
                <DataTemplate x:Key="DataTemplateSequenceData">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Margin="4,2,2,4"
                                   TextWrapping="Wrap"
                                   Text="{Binding Interval}" 
                                   d:LayoutOverrides="Width, Height"
                                   VerticalAlignment="Center" 
                                   HorizontalAlignment="Left" />
                        <TextBlock Margin="4,2,2,4"
                                   TextWrapping="Wrap"
                                   Text="{Binding Name}" 
                                   d:LayoutOverrides="Width, Height" Grid.Column="1"
                                   VerticalAlignment="Center"
                                   HorizontalAlignment="Left" />
                    </Grid>
                </DataTemplate>
            </ComboBox.Resources>
            <ComboBox.ItemTemplate>
                <StaticResource ResourceKey="DataTemplateSequenceData"/>
            </ComboBox.ItemTemplate>
        </ComboBox>

Answers


Maybe HorizonalAllignment="Right" You have Left


Need Your Help

How to do Initial Caps With Javascript/jQuery

javascript jquery

I have a Dynamic Breadcrumb set up with JavaScript. All I want is to do Initial Caps for each word.

Tools to convert multipage PDF to multipage TIFF

pdf imagemagick tiff ghostscript document-conversion

I'm writing a small application to convert several multipage PDF's to multipage TIFF files. Per the other questions and answers on this site, I've tried both ghostscript and ImageMagick however both