Advertisement
Guest User

Untitled

a guest
May 24th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. <ViewBox>
  2. <YourControl />
  3. </ViewBox>
  4.  
  5. <Viewbox Width="80" Margin="12">
  6. <RelativePanel Width="200" Height="140" Background="DarkBlue" Padding="12">
  7.  
  8. <TextBlock x:Name="number"
  9. Text="XXXX XXXX XXXX XXXX"
  10. Foreground="White"
  11. RelativePanel.AlignVerticalCenterWithPanel="True"
  12. RelativePanel.AlignHorizontalCenterWithPanel="true"/>
  13.  
  14. <TextBlock x:Name="name"
  15. Text="FIRST NAME"
  16. Foreground="White"
  17. RelativePanel.AlignLeftWith="number"
  18. RelativePanel.Below="number"
  19. Margin="0,12,0,0"/>
  20.  
  21. <TextBlock x:Name="date"
  22. Text="MM/YY"
  23. Foreground="White"
  24. RelativePanel.AlignRightWith="number"
  25. RelativePanel.Below="number"
  26. Margin="0,12,0,0"/>
  27. </RelativePanel>
  28. </Viewbox>
  29.  
  30. <Viewbox Width="160" Margin="12">
  31. <RelativePanel Width="200" Height="140" Background="DarkBlue" Padding="12">
  32.  
  33. <TextBlock x:Name="number1"
  34. Text="XXXX XXXX XXXX XXXX"
  35. Foreground="White"
  36. RelativePanel.AlignVerticalCenterWithPanel="True"
  37. RelativePanel.AlignHorizontalCenterWithPanel="true"/>
  38.  
  39. <TextBlock x:Name="name1"
  40. Text="FIRST NAME"
  41. Foreground="White"
  42. RelativePanel.AlignLeftWith="number1"
  43. RelativePanel.Below="number1"
  44. Margin="0,12,0,0"/>
  45.  
  46. <TextBlock x:Name="date1"
  47. Text="MM/YY"
  48. Foreground="White"
  49. RelativePanel.AlignRightWith="number1"
  50. RelativePanel.Below="number1"
  51. Margin="0,12,0,0"/>
  52. </RelativePanel>
  53. </Viewbox>
  54.  
  55. <Viewbox Width="320" Margin="12">
  56. <RelativePanel Width="200" Height="140" Background="DarkBlue" Padding="12">
  57.  
  58. <TextBlock x:Name="number2"
  59. Text="XXXX XXXX XXXX XXXX"
  60. Foreground="White"
  61. RelativePanel.AlignVerticalCenterWithPanel="True"
  62. RelativePanel.AlignHorizontalCenterWithPanel="true"/>
  63.  
  64. <TextBlock x:Name="name2"
  65. Text="FIRST NAME"
  66. Foreground="White"
  67. RelativePanel.AlignLeftWith="number2"
  68. RelativePanel.Below="number2"
  69. Margin="0,12,0,0"/>
  70.  
  71. <TextBlock x:Name="date2"
  72. Text="MM/YY"
  73. Foreground="White"
  74. RelativePanel.AlignRightWith="number2"
  75. RelativePanel.Below="number2"
  76. Margin="0,12,0,0"/>
  77. </RelativePanel>
  78. </Viewbox>
  79. </StackPanel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement