forked from dnSpy/ILSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'refs/pull/404/head' of github.com:icsharpcode/ILSpy
Conflicts: ILSpy.BamlDecompiler/Tests/TestRunner.cs
- Loading branch information
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
|
||
namespace ILSpy.BamlDecompiler.Tests.Cases | ||
{ | ||
public class CustomControl : ContentControl | ||
{ | ||
public static readonly DependencyProperty CustomNameProperty = DependencyProperty.RegisterAttached("CustomName", typeof(string), typeof(CustomControl)); | ||
|
||
public static string GetCustomName(DependencyObject target) | ||
{ | ||
return (string)target.GetValue(CustomNameProperty); | ||
} | ||
|
||
public static void SetCustomName(DependencyObject target, string value) | ||
{ | ||
target.SetValue(CustomNameProperty, value); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:cc="clr-namespace:ILSpy.BamlDecompiler.Tests.Cases"> | ||
<cc:CustomControl> | ||
<cc:CustomControl.Style> | ||
<Style /> | ||
</cc:CustomControl.Style> | ||
<Grid.Row>0</Grid.Row> | ||
<cc:CustomControl.CustomName>Custom1</cc:CustomControl.CustomName> | ||
</cc:CustomControl> | ||
<Label> | ||
<Label.Style> | ||
<Style /> | ||
</Label.Style> | ||
<Grid.Row>0</Grid.Row> | ||
<cc:CustomControl.CustomName>Label1</cc:CustomControl.CustomName> | ||
</Label> | ||
</Grid> |
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