locked
can blend design a ComboBox with Complex Items? (haohaoxi) - 7/31/2007 1:46 AM PST RRS feed

  • Question

  • By: haohaoxi

    i just find the "items" property of the combox in blend only contains some 
    elements
    and it seems that it  only add single style items,
    what should i do if i want to get the such combox? only by writing the xaml  
    word by word by myself? 
    thanks a lot
    
    <ComboBox>
    <!-- Item #1 -->
    <StackPanel Orientation=”Horizontal” Margin=”5”>
    <Image Source=”CurtainCall.bmp”/>
    <StackPanel Width=”200”>
    <TextBlock Margin=”5,0” FontSize=”14” FontWeight=”Bold”
    VerticalAlignment=”center”>Curtain Call</TextBlock>
    <TextBlock Margin=”5” VerticalAlignment=”center” TextWrapping=”Wrap”>
    Whimsical, with a red curtain background that represents a stage.
    </TextBlock>
    </StackPanel>
    </StackPanel>
    <!-- Item #2 -->
    <StackPanel Orientation=”Horizontal” Margin=”5”>
    <Image Source=”Fireworks.bmp”/>
    <StackPanel Width=”200”>
    <TextBlock Margin=”5,0” FontSize=”14” FontWeight=”Bold”
    VerticalAlignment=”center”>Fireworks</TextBlock>
    <TextBlock Margin=”5” VerticalAlignment=”center” TextWrapping=”Wrap”>
    Sleek, with a black sky containing fireworks. When you need to
    celebrate PowerPoint-style, this design is for you!
    </TextBlock>
    </StackPanel>
    </StackPanel>
    …more items…
    </ComboBox>
    
    
    
    Wednesday, February 20, 2008 1:17 AM