Skip to content

Commit

Permalink
Merge pull request #7 from irihitech/part_name
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
rabbitism authored Mar 17, 2024
2 parents 94b67c5 + 1964eea commit 180bd54
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Irihi.Avalonia.Shared/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Avalonia.Metadata;

[assembly:XmlnsPrefix("https://irihi.tech/shared", "iri")]
[assembly:XmlnsDefinition("https://irihi.tech/shared", "Irihi.Avalonia.Shared.Common")]
[assembly:XmlnsDefinition("https://irihi.tech/shared", "Irihi.Avalonia.Shared.Contracts")]
[assembly:XmlnsDefinition("https://irihi.tech/shared", "Irihi.Avalonia.Shared.Property")]
[assembly:XmlnsDefinition("https://irihi.tech/shared", "Irihi.Avalonia.Shared.MarkupExtensions")]
Expand Down
21 changes: 21 additions & 0 deletions src/Irihi.Avalonia.Shared/Common/PartNames.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Irihi.Avalonia.Shared.Common;

public static class PartNames
{
public const string PART_ContentPresenter = "PART_ContentPresenter";
public const string PART_HeaderPresenter = "PART_HeaderPresenter";
public const string PART_ItemsPresenter = "PART_ItemsPresenter";
public const string PART_IconsPresenter = "PART_IconsPresenter";
public const string PART_Popup = "PART_Popup";
public const string PART_Flyout = "PART_Flyout";
public const string PART_Header = "PART_Header";
public const string PART_Content = "PART_Content";
public const string PART_OverflowPanel = "PART_OverflowPanel";
public const string PART_ItemsControl = "PART_ItemsControl";
public const string PART_CloseButton = "PART_CloseButton";
public const string PART_Icon = "PART_Icon";
public const string PART_BackgroundBorder = "PART_BackgroundBorder";
public const string PART_FocusElement = "PART_FocusElement";
public const string PART_Thumb = "PART_Thumb";

}
35 changes: 35 additions & 0 deletions src/Irihi.Avalonia.Shared/Common/PseudoClasses.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
namespace Irihi.Avalonia.Shared.Common;

public static class PseudoClasses
{
public const string PC_Disabled = ":disabled";
public const string PC_Pointerover = ":pointerover";
public const string PC_Pressed = ":pressed";
public const string PC_Focus = ":focus";
public const string PC_FocusWithin = ":focus-within";
public const string PC_Horizontal = ":horizontal";
public const string PC_Vertical = ":vertical";
public const string PC_Selected = ":selected";
public const string PC_Checked = ":checked";
public const string PC_Active = ":active";
public const string PC_Indeterminate = ":indeterminate";

#region Positions

public const string PC_Top = ":top";
public const string PC_Bottom = ":bottom";
public const string PC_Right = ":right";
public const string PC_Left = ":left";

#endregion

#region Collection

public const string PC_First = ":first";
public const string PC_Last = ":last";
public const string PC_Empty = ":empty";

#endregion


}

0 comments on commit 180bd54

Please sign in to comment.