summaryrefslogtreecommitdiff
path: root/Juick/Classes/ParagraphBindingBehavior.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Classes/ParagraphBindingBehavior.cs')
-rw-r--r--Juick/Classes/ParagraphBindingBehavior.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Juick/Classes/ParagraphBindingBehavior.cs b/Juick/Classes/ParagraphBindingBehavior.cs
index 6a05579..524f4db 100644
--- a/Juick/Classes/ParagraphBindingBehavior.cs
+++ b/Juick/Classes/ParagraphBindingBehavior.cs
@@ -6,6 +6,9 @@ namespace Juick.Classes
{
public static class ParagraphBindingBehavior
{
+ public static readonly DependencyProperty AssignedInlinesProperty =
+ DependencyProperty.RegisterAttached("AssignedInlines", typeof(IEnumerable<Inline>), typeof(Paragraph), new PropertyMetadata(null, AssignedInlinesCallback));
+
static void AssignedInlinesCallback(DependencyObject target, DependencyPropertyChangedEventArgs e)
{
var inlines = ((Paragraph)target).Inlines;
@@ -29,8 +32,5 @@ namespace Juick.Classes
{
obj.SetValue(AssignedInlinesProperty, value);
}
-
- public static readonly DependencyProperty AssignedInlinesProperty =
- DependencyProperty.RegisterAttached("AssignedInlines", typeof(IEnumerable<Inline>), typeof(Paragraph), new PropertyMetadata(null, AssignedInlinesCallback));
}
}