Browse Source
Allows `DynamicResource` and `StaticResource` in merged resource dictionaries to work properly. Fixes #3323pull/3327/head
8 changed files with 144 additions and 49 deletions
@ -1,29 +1,27 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
namespace Avalonia.Styling |
|||
namespace Avalonia.Controls |
|||
{ |
|||
/// <summary>
|
|||
/// Defines an interface through which a <see cref="Style"/>'s parent can be set.
|
|||
/// Defines an interface through which an <see cref="IResourceNode"/>'s parent can be set.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// You should not usually need to use this interface - it is for internal use only.
|
|||
/// </remarks>
|
|||
public interface ISetStyleParent : IStyle |
|||
public interface ISetResourceParent : IResourceNode |
|||
{ |
|||
/// <summary>
|
|||
/// Sets the style parent.
|
|||
/// Sets the resource parent.
|
|||
/// </summary>
|
|||
/// <param name="parent">The parent.</param>
|
|||
void SetParent(IResourceNode parent); |
|||
|
|||
/// <summary>
|
|||
/// Notifies the style that a change has been made to resources that apply to it.
|
|||
/// Notifies the resource node that a change has been made to the resources in its parent.
|
|||
/// </summary>
|
|||
/// <param name="e">The event args.</param>
|
|||
/// <remarks>
|
|||
/// This method will be called automatically by the framework, you should not need to call
|
|||
/// this method yourself.
|
|||
/// </remarks>
|
|||
void NotifyResourcesChanged(ResourcesChangedEventArgs e); |
|||
void ParentResourcesChanged(ResourcesChangedEventArgs e); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue