mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-18 14:37:19 +08:00
增加 Dropdown 类文件
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)\Build\Version.props" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)\Build\Output.props" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)\build\Version.props" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)\build\Output.props" />
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<Project>
|
||||
<Import Project="$(MSBuildThisFileDirectory)\Build\Common.props" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)\build\Common.props" />
|
||||
<PropertyGroup>
|
||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="DropdownButton\" />
|
||||
<Folder Include="Localization\" />
|
||||
<Folder Include="SplitButton\" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using AtomUI.Controls.Utils;
|
||||
using AtomUI.Data;
|
||||
using AtomUI.Icon;
|
||||
using AtomUI.Media;
|
||||
using AtomUI.Theme.Styling;
|
||||
@@ -12,7 +11,6 @@ using Avalonia.Controls.Metadata;
|
||||
using Avalonia.Controls.Primitives;
|
||||
using Avalonia.LogicalTree;
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Rendering;
|
||||
|
||||
namespace AtomUI.Controls;
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace AtomUI.Controls;
|
||||
|
||||
public enum DropdownTriggerType
|
||||
{
|
||||
Hover,
|
||||
Click
|
||||
}
|
||||
|
||||
public class DropdownButton : Button
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using AtomUI.Theme.Styling;
|
||||
|
||||
namespace AtomUI.Controls;
|
||||
|
||||
[ControlThemeProvider]
|
||||
internal class DropdownButtonTheme : BaseButtonTheme
|
||||
{
|
||||
public const string ID = "DropdownButton";
|
||||
|
||||
public DropdownButtonTheme()
|
||||
: base(typeof(DropdownButton))
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace AtomUI.Controls;
|
||||
|
||||
public class DropdownButtonToken
|
||||
{
|
||||
|
||||
}
|
||||
+1
@@ -21,6 +21,7 @@
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.ComboBoxItemTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.ComboBoxSpinnerInnerBoxTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.ComboBoxTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.DropdownButtonTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.EmptyIndicatorTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.ExpanderTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.MenuFlyoutPresenterTheme());
|
||||
|
||||
Reference in New Issue
Block a user