Advertisement
FrayxRulez

Untitled

Jan 10th, 2017
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. <Page
  2. x:Class="Unigram.Views.PlaygroundPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Unigram.Views"
  6. xmlns:controls="using:Unigram.Controls"
  7. xmlns:messages="using:Unigram.Controls.Messages"
  8. xmlns:tl="using:Telegram.Api.TL"
  9. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. mc:Ignorable="d">
  12.  
  13. <Page.Resources>
  14. <Color x:Key="SystemAccentColorLight3">#a6d8ff</Color>
  15. <Color x:Key="SystemAccentColorLight2">#76b9ed</Color>
  16. <Color x:Key="SystemAccentColorLight1">#429ce3</Color>
  17. <Color x:Key="SystemAccentColor">#0078d7</Color>
  18. <Color x:Key="SystemAccentColorDark1">#005a9e</Color>
  19. <Color x:Key="SystemAccentColorDark2">#004275</Color>
  20. <Color x:Key="SystemAccentColorDark3">#002642</Color>
  21.  
  22. <SolidColorBrush x:Key="MessageForegroundBrush" Color="#000000"/>
  23. <SolidColorBrush x:Key="MessageBackgroundBrush" Color="{ThemeResource SystemAccentColorLight3}"/>
  24. <SolidColorBrush x:Key="MessageBorderBrush" Color="{ThemeResource SystemAccentColorLight2}"/>
  25. <SolidColorBrush x:Key="MessageSubtleLabelBrush" Color="{ThemeResource SystemAccentColorLight1}"/>
  26. <SolidColorBrush x:Key="MessageSubtleGlyphBrush" Color="{ThemeResource SystemAccentColorLight1}"/>
  27.  
  28. <SolidColorBrush x:Key="MessageHeaderForegroundBrush" Color="{ThemeResource SystemAccentColorDark1}"/>
  29. <SolidColorBrush x:Key="MessageHeaderBorderBrush" Color="{ThemeResource SystemAccentColorDark1}"/>
  30.  
  31. <SolidColorBrush x:Key="MessageMediaForegroundBrush" Color="{ThemeResource SystemAccentColorDark1}"/>
  32. <SolidColorBrush x:Key="MessageMediaBackgroundBrush" Color="{ThemeResource SystemAccentColorLight2}"/>
  33.  
  34. <HorizontalAlignment x:Key="MessageHorizontalAlignment">Right</HorizontalAlignment>
  35. </Page.Resources>
  36.  
  37. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Padding="12">
  38. <Border x:Name="LayoutRoot"
  39. Margin="{ThemeResource MessageContentMargin}"
  40. Padding="{ThemeResource MessageContentPadding}"
  41. CornerRadius="{ThemeResource MessageCornerRadius}"
  42. Background="{ThemeResource MessageBackgroundBrush}"
  43. BorderBrush="{ThemeResource MessageBorderBrush}"
  44. BorderThickness="0,0,0,2"
  45. HorizontalAlignment="Right"
  46. VerticalAlignment="Center">
  47. <Grid>
  48. <Grid.RowDefinitions>
  49. <RowDefinition Height="Auto"/>
  50. <RowDefinition Height="Auto"/>
  51. <RowDefinition Height="Auto"/>
  52. <RowDefinition Height="Auto"/>
  53. <RowDefinition Height="Auto"/>
  54. </Grid.RowDefinitions>
  55. <controls:MessageReference Title="Fela Ameghino" Grid.Row="1">
  56. <controls:MessageReference.Message>
  57. <tl:TLMessage Message="Ciao!!!"/>
  58. </controls:MessageReference.Message>
  59. </controls:MessageReference>
  60.  
  61. <TextBlock
  62. x:Name="MessageControl"
  63. Text="Test message yoyoy yoyoy yoyoyoyo"
  64. Style="{ThemeResource BodyTextBlockStyle}"
  65. Foreground="{ThemeResource MessageForegroundBrush}"
  66. Grid.Row="2"/>
  67.  
  68. <StackPanel x:Name="StatusControl"
  69. Orientation="Horizontal"
  70. VerticalAlignment="Bottom"
  71. HorizontalAlignment="Right"
  72. Padding="0,0,6,0"
  73. Margin="0,0,-6,0"
  74. Grid.Row="4">
  75. <StackPanel Orientation="Horizontal">
  76. <FontIcon Glyph="&#xE607;" FontFamily="{ThemeResource TelegramThemeFontFamily}" FontSize="11" Foreground="{ThemeResource MessageSubtleGlyphBrush}" Margin="0,0,4,2" VerticalAlignment="Bottom"/>
  77. <TextBlock Text="1K" Foreground="{ThemeResource MessageSubtleLabelBrush}" Margin="0,2,12,0" Style="{ThemeResource CaptionTextBlockStyle}"/>
  78. </StackPanel>
  79. <TextBlock Text="edited" FontStyle="Italic" Foreground="{ThemeResource MessageSubtleLabelBrush}" Margin="0,2,4,0" Style="{ThemeResource CaptionTextBlockStyle}"/>
  80. <TextBlock x:Name="StatusLabel" Text="14:59" Style="{ThemeResource CaptionTextBlockStyle}" Foreground="{ThemeResource MessageSubtleLabelBrush}" TextAlignment="Right" Margin="0,2,0,0"/>
  81. <FontIcon x:Name="StatusGlyph" Glyph="&#xE601;" FontFamily="{ThemeResource TelegramThemeFontFamily}" Height="10" Width="18" FontSize="10" Foreground="{ThemeResource MessageSubtleGlyphBrush}" Margin="4,0,0,3" VerticalAlignment="Bottom"/>
  82. </StackPanel>
  83. </Grid>
  84. </Border>
  85. </Grid>
  86. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement