summaryrefslogtreecommitdiff
path: root/Juick/ThreadView.xaml
diff options
context:
space:
mode:
authorGravatar k0st1x2012-09-30 23:22:25 +0400
committerGravatar k0st1x2012-09-30 23:22:25 +0400
commit28986641046c8ee1dc2aba0055dfa36b811b25d2 (patch)
tree8ec69b4c461048403d1952428bf1ebb0ca7a1140 /Juick/ThreadView.xaml
parentc6c15caf54c6a648c7bd87c9161147ead4046988 (diff)
replace TextBlock by RichTextBox
Diffstat (limited to 'Juick/ThreadView.xaml')
-rw-r--r--Juick/ThreadView.xaml21
1 files changed, 17 insertions, 4 deletions
diff --git a/Juick/ThreadView.xaml b/Juick/ThreadView.xaml
index d8f17a0..4c2c129 100644
--- a/Juick/ThreadView.xaml
+++ b/Juick/ThreadView.xaml
@@ -6,12 +6,19 @@
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:bindings="clr-namespace:Juick.Classes"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
- mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
+ mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
shell:SystemTray.IsVisible="True">
+
+ <!--<phone:PhoneApplicationPage.Resources>
+ <ResourceDictionary>
+ <bindings:RichTextConverter x:Key="inlineConverter"/>
+ </ResourceDictionary>
+ </phone:PhoneApplicationPage.Resources>-->
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
@@ -54,11 +61,17 @@
FontFamily="{StaticResource PhoneFontFamilySemiLight}"
FontSize="{StaticResource PhoneFontSizeLarge}"
Style="{StaticResource PhoneTextAccentStyle}" />
- <TextBlock Text="{Binding MessageText}" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
- Foreground="{StaticResource PhoneForegroundBrush}"
+ <RichTextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
+ Foreground="{StaticResource PhoneForegroundBrush}"
Style="{StaticResource PhoneTextNormalStyle}"
Margin="5,0,5,5" VerticalAlignment="Top"
- TextWrapping="Wrap" HorizontalAlignment="Left"/>
+ TextWrapping="Wrap" HorizontalAlignment="Left"
+ IsReadOnly="True">
+ <!--<Paragraph bindings:ParagraphBindingBehavior.AssignedInlines="{Binding MessageText, Converter={StaticResource inlineConverter}}" />-->
+ <Paragraph>
+ <Run Text="{Binding MessageText}"/>
+ </Paragraph>
+ </RichTextBox>
<Image Source="{Binding Attachment}" Grid.Row="2" Grid.Column="0" Margin="3" Grid.ColumnSpan="2" />
<!-- TextBlock Text="{Binding Status}" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
Foreground="{StaticResource PhoneForegroundBrush}"