-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3327 from AvaloniaUI/fixes/3323-resourcedictionar…
…y-resource Fix referencing resources in merged dictionaries
- Loading branch information
Showing
9 changed files
with
267 additions
and
49 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
...alonia.Styling/Styling/ISetStyleParent.cs → ...ia.Styling/Controls/ISetResourceParent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.