Skip to content

Commit

Permalink
feat: InputPropertyAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Oct 5, 2024
1 parent 709ce20 commit 493ede4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@
#pragma warning disable 114 // new keyword hiding
namespace Microsoft.UI.Xaml.Controls
{
[global::System.AttributeUsageAttribute(global::System.AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial class InputPropertyAttribute : global::System.Attribute
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public InputPropertyAttribute() : base()
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Microsoft.UI.Xaml.Controls.InputPropertyAttribute", "InputPropertyAttribute.InputPropertyAttribute()");
}
#endif
// Forced skipping of method Microsoft.UI.Xaml.Controls.InputPropertyAttribute.InputPropertyAttribute()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public string Name;
#endif
}
Expand Down
23 changes: 23 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/InputPropertyAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;

namespace Microsoft.UI.Xaml.Controls;

/// <summary>
/// Represents an attribute that indicates which property of a type is the XAML input property.
/// A XAML processor uses this information when processing XAML child elements of XAML representations of the attributed type.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public partial class InputPropertyAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the InputPropertyAttribute class.
/// </summary>
public InputPropertyAttribute() : base()
{
}

/// <summary>
/// The property name.
/// </summary>
public string Name;
}

0 comments on commit 493ede4

Please sign in to comment.