locked
How to display Heading on the combo box control in windows 8 apps on the page load RRS feed

  • Question

  • <ComboBox x:Name="cbu" ItemsSource="{Binding}" FontSize="20" Height="32" FontFamily="Times New Roman" Margin="0,0,770,0">

                </ComboBox>

    the above code is the combobox control.

    i want to display the "Select Age" as a heading in this combo box  when the page is loaded.Please let me know 

                    

    amair

    Friday, September 27, 2013 5:44 AM

Answers

  • The Header is a new feature for Windows 8.1 . It is not available for Windows 8 apps.

    If you want to display a header on Windows 8 you will need to implement it yourself: place the header information in a TextBlock next to your ComboBox

    --Rob

    Friday, September 27, 2013 6:14 AM
    Moderator

All replies

  • The Header is a new feature for Windows 8.1 . It is not available for Windows 8 apps.

    If you want to display a header on Windows 8 you will need to implement it yourself: place the header information in a TextBlock next to your ComboBox

    --Rob

    Friday, September 27, 2013 6:14 AM
    Moderator
  • How to place the Heading in combo Box.By default the combo box should display  "Select Image" how to do it windows 8 apps combo box


    amair

    Friday, September 27, 2013 7:54 AM
  • On Windows 8 you will need to put a TextBlock next to your ComboBox with your header. The ComboBox control does not have header support built in until Windows 8.1

            <StackPanel>
                <TextBlock Text="Select Image"/>
                <ComboBox ItemsSource="{Binding}" />
            </StackPanel>

    Monday, September 30, 2013 10:57 PM
    Moderator