diff options
author | k0st1x | 2012-09-30 23:22:25 +0400 |
---|---|---|
committer | k0st1x | 2012-09-30 23:22:25 +0400 |
commit | 28986641046c8ee1dc2aba0055dfa36b811b25d2 (patch) | |
tree | 8ec69b4c461048403d1952428bf1ebb0ca7a1140 /Juick/MainPage.xaml.cs | |
parent | c6c15caf54c6a648c7bd87c9161147ead4046988 (diff) |
replace TextBlock by RichTextBox
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r-- | Juick/MainPage.xaml.cs | 38 |
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();
|