summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/MainPage.xaml')
-rw-r--r--Juick/MainPage.xaml14
1 files changed, 9 insertions, 5 deletions
diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml
index 013fc34..9df6925 100644
--- a/Juick/MainPage.xaml
+++ b/Juick/MainPage.xaml
@@ -7,16 +7,20 @@
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:converters="clr-namespace:Juick.Converters"
xmlns:bindings="clr-namespace:Juick.Classes" xmlns:controls1="clr-namespace:Juick.Controls"
- mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
+ mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
phoneshell:SystemTray.IsVisible="True">
-
- <!--LayoutRoot is the root grid where all page content is placed-->
+ <phone:PhoneApplicationPage.Resources>
+ <converters:MidToUriConverter x:Key="uriConverter" />
+ </phone:PhoneApplicationPage.Resources>
+
+ <!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
@@ -52,7 +56,7 @@
bindings:ScrollViewerMonitor.AtEndCommand="{Binding LoadMessagesPageCommand}">
<ItemsControl.ItemTemplate>
<DataTemplate>
- <HyperlinkButton NavigateUri="{Binding MessageUri}">
+ <HyperlinkButton NavigateUri="{Binding MID, Converter={StaticResource uriConverter}}">
<HyperlinkButton.Template>
<ControlTemplate>
<Border BorderBrush="{StaticResource PhoneForegroundBrush}" BorderThickness="0 0 0 1">
@@ -107,7 +111,7 @@
bindings:ScrollViewerMonitor.AtEndCommand="{Binding LoadMessagesPageCommand}">
<ItemsControl.ItemTemplate>
<DataTemplate>
- <HyperlinkButton NavigateUri="{Binding MessageUri}">
+ <HyperlinkButton NavigateUri="{Binding MID, Converter={StaticResource uriConverter}}">
<HyperlinkButton.Template>
<ControlTemplate>
<Border BorderBrush="{StaticResource PhoneForegroundBrush}" BorderThickness="0 0 0 1">