How to remove the frame so that only the arrow ▼ remains? And you need to make the arrow white. Try this way

<ComboBox x:Name="comboBox" Width="16" Height="20" Margin="570,10,10,670" BorderBrush="{x:Null}" Background="{x:Null}" Foreground="Black" IsReadOnly="True"> <ComboBoxItem Content="Свернуть"/> <ComboBoxItem Content="Закрыть"/> </ComboBox> 

But this does not solve the problem. Thank you all in advance for your help!

    1 answer 1

    Right-click on the Combobox in the visual editor, select Правка шаблона - Правка копии . A huge style is added to your xaml where everything is there. For example, the arrow:

     <Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="Black" HorizontalAlignment="Center" Margin="3,1,0,0" VerticalAlignment="Center" /> 

    Change Fill to White .

    For the frame, find

     <ControlTemplate TargetType="{x:Type ToggleButton}"> <Themes:ButtonChrome x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" SnapsToDevicePixels="true"> 

    Change the BorderBrush to {x:Null} .

    Of course, this style is then preferably rendered to another file.

    • Color changed, it turned out. I am trying to remove the frame - it does not work, although I do as you say "Change the BorderBrush to {x: Null}." - dexploizer
    • @YuriGo Updated a little. Look for the very first entry, I did it. - RusArt
    • changed and so and there, the thin frame still remained - dexploizer
    • @YuriGo Do a little research. Enter the BorderBrush in the search, and change everything in a row. If does not affect the result - cancel. - RusArt
    • The result, for some reason, does not lead to anything ... I can not understand what the matter is. - dexploizer