Splitwirez / AvaloniaRibbon

Ribbon for avalonia
MIT License
101 stars 22 forks source link

RibbonSplitButton Dropdown Content access #34

Open Tenjim opened 2 years ago

Tenjim commented 2 years ago

Hi there,

Is it possible to put an UserControl into DropDown content to a RibbonSplitButton ? Like this sample :

<RibbonSplitButton 
       ToolTip.Tip="{Binding TestViewModel}"
       Content="{Binding TestViewModel.Label}"
       Command="{Binding Path=Command}"
       MaxSize="Large"
       MinSize="Large">

    <input1:CustomUserControl DataContext="{Binding TestViewModel.TestItemViewModel}"/>
</RibbonSplitButton>

I tried with RibbonDropDownButton and I have the same behavior.

Thank in advance