Splitwirez / AvaloniaRibbon

Ribbon for avalonia
MIT License
106 stars 23 forks source link

RibbonDropDownButton with Slider issue #30

Closed nlogozzo closed 1 year ago

nlogozzo commented 3 years ago

I have a RibbonDropDownButton with a slider attached to it. For example a thickness button, and clicking it will reveal the slider to change the thickness. However, it's not showing correctly. Here's my XAML and a screenshot

<ribbon:RibbonDropDownButton Content="Thickness" MaxWidth="90" LargeIcon="Size(32, 32); avares://NickvisionPaint/Assets/Thickness.png" ToolTip.Tip="Change the tool's thickness">
    <ribbon:RibbonDropDownButton.Items>
         <Slider Orientation="Vertical" Minimum="1" Maximum="5"/>
    </ribbon:RibbonDropDownButton.Items>
</ribbon:RibbonDropDownButton>

image

nlogozzo commented 3 years ago

that issue happens no matter what control i but in between the dropdownbutton it always shows the drop down with a checkbox like i sent in that screenshot

nlogozzo commented 3 years ago

I also tried this

<ribbon:RibbonDropDownButton Content="Thickness" MaxWidth="90" LargeIcon="Size(32, 32); avares://NickvisionPaint/Assets/Thickness.png" ToolTip.Tip="Change the tool's thickness">
    <ribbon:RibbonDropDownItemPresenter>
        <Slider Orientation="Vertical" Minimum="1" Maximum="5"/>
    </ribbon:RibbonDropDownItemPresenter>
</ribbon:RibbonDropDownButton>

Same issue