Hỏi đáp

Chia sẻ kiến thức, cùng nhau phát triển

combobox material design wpf

7 năm trước 533 lượt xem 2 bình luận 7 năm trước

Em đang sử dụng Material Design trong WPF, cho em hỏi cái combobox trong material design có vấn đề gì không ạ? tại vì em không hiển thị combobox items lên combobox được

<ComboBox>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">
                    <Image Source="/WpfTutorialSamples;component/Images/bullet_red.png" />
                    <TextBlock Foreground="Red">Red</TextBlock>
                </StackPanel>
            </ComboBoxItem>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">
                    <Image Source="/WpfTutorialSamples;component/Images/bullet_green.png" />
                    <TextBlock Foreground="Green">Green</TextBlock>
                </StackPanel>
            </ComboBoxItem>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">
                    <Image Source="/WpfTutorialSamples;component/Images/bullet_blue.png" />
                    <TextBlock Foreground="Blue">Blue</TextBlock>
                </StackPanel>
            </ComboBoxItem>
        </ComboBox>

Bình luận

Để bình luận, bạn cần đăng nhập bằng tài khoản Howkteam.

Đăng nhập
Leyu đã bình luận 7 năm trước

Dạ em cảm ơn vì anh đã trả lời...

K9 SuperAdmin, KquizAdmin, KquizAuthor đã bình luận 7 năm trước

bạn add sẵn nùi đó rồi thì nó hiển thị cái bạn đã add. k có dùng itemsource khi đang dùng items đâu nha

Câu hỏi mới nhất