summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml.cs
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.cs
parentc6c15caf54c6a648c7bd87c9161147ead4046988 (diff)
replace TextBlock by RichTextBox
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r--Juick/MainPage.xaml.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs
index 0cfe351..43a2327 100644
--- a/Juick/MainPage.xaml.cs
+++ b/Juick/MainPage.xaml.cs
@@ -163,44 +163,6 @@ namespace Juick
((ListBox)sender).SelectedIndex = -1;
}
- public static string GetInlineList(TextBlock element)
- {
- if (element != null)
- return element.GetValue(InlineList) as string;
- return string.Empty;
- }
-
- public static void SetInlineList(TextBlock element, string value)
- {
- if (element != null)
- element.SetValue(InlineList, value);
- }
-
- public static readonly DependencyProperty InlineList =
- DependencyProperty.RegisterAttached(
- "InlineList",
- typeof(List<Inline>),
- typeof(MainPage),
- new PropertyMetadata(null, OnInlineListPropertyChanged));
-
- private static void OnInlineListPropertyChanged(DependencyObject obj,
- DependencyPropertyChangedEventArgs e)
- {
- var tb = obj as TextBlock;
- if (tb != null)
- {
- // clear previous inlines
- tb.Inlines.Clear();
-
- // add new inlines
- var inlines = e.NewValue as List<Inline>;
- if (inlines != null)
- {
- inlines.ForEach(inl => tb.Inlines.Add((inl)));
- }
- }
- }
-
private void ApplicationBarIconButtonClick(object sender, EventArgs e)
{
App.MyFeedView.Items.Clear();