summaryrefslogtreecommitdiff
path: root/Juick/MainPage.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/MainPage.xaml
parentc6c15caf54c6a648c7bd87c9161147ead4046988 (diff)
replace TextBlock by RichTextBox
Diffstat (limited to 'Juick/MainPage.xaml')
-rw-r--r--Juick/MainPage.xaml21
1 files changed, 13 insertions, 8 deletions
diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml
index 4b91832..d8e8742 100644
--- a/Juick/MainPage.xaml
+++ b/Juick/MainPage.xaml
@@ -6,19 +6,20 @@
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:bindings="clr-namespace:Juick.Classes"
- xmlns:Juick="clr-namespace:Juick" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:bindings="clr-namespace:Juick.Classes"
+ mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="False">
- <FrameworkElement.Resources>
+ <!--<FrameworkElement.Resources>
<ResourceDictionary>
<bindings:RichTextConverter x:Key="inlineConverter" />
</ResourceDictionary>
- </FrameworkElement.Resources>
+ </FrameworkElement.Resources>-->
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
@@ -57,13 +58,17 @@
FontFamily="{StaticResource PhoneFontFamilySemiLight}"
FontSize="{StaticResource PhoneFontSizeLarge}"
Style="{StaticResource PhoneTextAccentStyle}" />
- <!-- Juick:MainPage.InlineList="{Binding MessageText, Converter={StaticResource inlineConverter}}" -->
- <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
- Text="{Binding MessageText}"
+ <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}"