feat: init
This commit is contained in:
18
src/Ursa/Controls/ComboBox/MultiComboBoxItem.cs
Normal file
18
src/Ursa/Controls/ComboBox/MultiComboBoxItem.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Irihi.Avalonia.Shared.Helpers;
|
||||
|
||||
namespace Ursa.Controls;
|
||||
|
||||
public class MultiComboBoxItem: ListBoxItem
|
||||
{
|
||||
public MultiComboBoxItem()
|
||||
{
|
||||
this.GetObservable(IsFocusedProperty).Subscribe(a=> {
|
||||
if (a)
|
||||
{
|
||||
(Parent as MultiComboBox)?.ItemFocused(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user