From 2edd605343e167dee0eb81b9ab0f4d8368ff7ac4 Mon Sep 17 00:00:00 2001 From: k0st1x Date: Mon, 1 Oct 2012 23:40:40 +0400 Subject: fix 'unspecified error' --- Juick/Classes/ParagraphBindingBehavior.cs | 6 +++--- Juick/MainPage.xaml | 19 ++++++++----------- Juick/ThreadView.xaml | 17 +++++++---------- 3 files changed, 18 insertions(+), 24 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), 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), typeof(Paragraph), new PropertyMetadata(null, AssignedInlinesCallback)); } } diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml index d8e8742..bd446ed 100644 --- a/Juick/MainPage.xaml +++ b/Juick/MainPage.xaml @@ -15,11 +15,11 @@ Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" shell:SystemTray.IsVisible="False"> - + @@ -58,16 +58,13 @@ FontFamily="{StaticResource PhoneFontFamilySemiLight}" FontSize="{StaticResource PhoneFontSizeLarge}" Style="{StaticResource PhoneTextAccentStyle}" /> + - - - - + TextWrapping="Wrap" HorizontalAlignment="Left" + Foreground="{StaticResource PhoneForegroundBrush}" + Margin="5,0,5,5" VerticalAlignment="Top" + IsReadOnly="True"> + - - + @@ -29,7 +29,7 @@ - + @@ -61,16 +61,13 @@ FontFamily="{StaticResource PhoneFontFamilySemiLight}" FontSize="{StaticResource PhoneFontSizeLarge}" Style="{StaticResource PhoneTextAccentStyle}" /> + - - - - +