• 模仿企业微信界面


    备注:未实现相关功能,仅模仿界面,不能作为商业用途,若有侵权,请联系删除。

    1. <Window x:Class="模仿企业微信界面.MainWindow"
    2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    6. xmlns:local="clr-namespace:模仿企业微信界面"
    7. mc:Ignorable="d"
    8. Title="MainWindow" Height="700" Width="800">
    9. <Grid>
    10. <Grid.ColumnDefinitions>
    11. <ColumnDefinition Width="2*"/>
    12. <ColumnDefinition Width="2*"/>
    13. <ColumnDefinition Width="6*"/>
    14. Grid.ColumnDefinitions>
    15. <StackPanel Orientation="Vertical" Background="#3975c6">
    16. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    17. <Image Source="/user.png" />
    18. <Label Content="张三" />
    19. StackPanel>
    20. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    21. <Image Source="/images/消息.png"/>
    22. <Button Content="消息" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    23. StackPanel>
    24. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    25. <Image Source="/images/邮件.png"/>
    26. <Button Content="邮件" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    27. StackPanel>
    28. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    29. <Image Source="/images/文档.png"/>
    30. <Button Content="文档" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    31. StackPanel>
    32. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    33. <Image Source="/images/日程.png"/>
    34. <Button Content="日程" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    35. StackPanel>
    36. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    37. <Image Source="/images/会议.png"/>
    38. <Button Content="会议" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    39. StackPanel>
    40. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    41. <Image Source="/images/工作台.png"/>
    42. <Button Content="工作台" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    43. StackPanel>
    44. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    45. <Image Source="/images/通讯录_填充.png"/>
    46. <Button Content="通讯录" Background="#578acf" Width="200" Margin="10,0,0,0"/>
    47. StackPanel>
    48. StackPanel>
    49. <ScrollViewer Grid.Column="1" >
    50. <StackPanel Background="#f0f0f1">
    51. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    52. <TextBox Width="200" Height="30" Background="#d9dadb"/>
    53. <Image Margin="10,0,0,0" Source="/images/加号.png"/>
    54. StackPanel>
    55. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    56. <Image Source="/images/群聊.png"/>
    57. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    58. StackPanel>
    59. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    60. <Image Source="/images/叮嘱.png"/>
    61. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    62. StackPanel>
    63. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    64. <Image Source="/images/群聊.png"/>
    65. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    66. StackPanel>
    67. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    68. <Image Source="/images/叮嘱.png"/>
    69. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    70. StackPanel>
    71. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    72. <Image Source="/images/群聊.png"/>
    73. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    74. StackPanel>
    75. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    76. <Image Source="/images/叮嘱.png"/>
    77. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    78. StackPanel>
    79. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    80. <Image Source="/images/群聊.png"/>
    81. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    82. StackPanel>
    83. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    84. <Image Source="/images/叮嘱.png"/>
    85. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    86. StackPanel>
    87. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    88. <Image Source="/images/群聊.png"/>
    89. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    90. StackPanel>
    91. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    92. <Image Source="/images/叮嘱.png"/>
    93. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    94. StackPanel>
    95. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    96. <Image Source="/images/群聊.png"/>
    97. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    98. StackPanel>
    99. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    100. <Image Source="/images/叮嘱.png"/>
    101. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    102. StackPanel>
    103. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    104. <Image Source="/images/群聊.png"/>
    105. <Button Content="群聊" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    106. StackPanel>
    107. <StackPanel Orientation="Horizontal" Margin="20,40,0,0">
    108. <Image Source="/images/叮嘱.png"/>
    109. <Button Content="武大郎" Background="#f0f0f1" Width="200" Margin="10,0,0,0"/>
    110. StackPanel>
    111. StackPanel>
    112. ScrollViewer>
    113. <Grid Grid.Column="2">
    114. <Grid.RowDefinitions>
    115. <RowDefinition Height="auto"/>
    116. <RowDefinition Height="5*"/>
    117. <RowDefinition Height="3*"/>
    118. Grid.RowDefinitions>
    119. <Label Content="武大郎" Background="#f6f6f7" FontSize="20" />
    120. <ScrollViewer Grid.Row="1">
    121. <StackPanel Orientation="Vertical" Background="#f6f6f7">
    122. <Label Content="大郎,你好"/>
    123. <Label Content="你好,你好" HorizontalAlignment="Right"/>
    124. <Label Content="最近在忙什么?"/>
    125. <Label Content="卖烧饼" HorizontalAlignment="Right"/>
    126. <Image Source="/images/vg.png" HorizontalAlignment="Left" Width="100"/>
    127. <Image Source="/images/gou.png" HorizontalAlignment="Right" Width="100"/>
    128. StackPanel>
    129. ScrollViewer>
    130. <Grid Grid.Row="2">
    131. <Grid.RowDefinitions>
    132. <RowDefinition Height="30"/>
    133. <RowDefinition Height="220"/>
    134. <RowDefinition Height="30"/>
    135. Grid.RowDefinitions>
    136. <StackPanel Orientation="Horizontal" Height="30">
    137. <Image Source="/images/会议.png" Width="30" Height="30" Margin="5,0,0,0"/>
    138. <Image Source="/images/加号.png" Width="30" Height="30" Margin="5,0,0,0"/>
    139. <Image Source="/images/叮嘱.png" Width="30" Height="30" Margin="5,0,0,0"/>
    140. <Image Source="/images/工作台.png" Width="30" Height="30" Margin="5,0,0,0"/>
    141. <Image Source="/images/文档.png" Width="30" Height="30" Margin="5,0,0,0"/>
    142. <Image Source="/images/日程.png" Width="30" Height="30" Margin="5,0,0,0"/>
    143. <Image Source="/images/消息.png" Width="30" Height="30" Margin="5,0,0,0"/>
    144. <Image Source="/images/通讯录_填充.png" Width="30" Height="30" Margin="5,0,0,0"/>
    145. <Image Source="/images/邮件.png" Width="30" Height="30" Margin="5,0,0,0"/>
    146. <Image Source="/images/邮件.png" Width="30" Height="30" Margin="5,0,0,0"/>
    147. <Image Source="/images/邮件.png" Width="30" Height="30" Margin="5,0,0,0"/>
    148. <Image Source="/images/邮件.png" Width="30" Height="30" Margin="5,0,0,0"/>
    149. <Image Source="/images/文档.png" Width="30" Height="30" Margin="5,0,0,0"/>
    150. <Image Source="/images/日程.png" Width="30" Height="30" Margin="5,0,0,0"/>
    151. <Image Source="/images/消息.png" Width="30" Height="30" Margin="5,0,0,0"/>
    152. <Button Content="快速会议" Background="White" Margin="30,0,0,0"/>
    153. StackPanel>
    154. <RichTextBox Grid.Row="1"/>
    155. <Button Content="发 送" Grid.Row="2" Width=" 120" HorizontalAlignment="Right" Background="White" Margin="0,0,30,0"/>
    156. Grid>
    157. Grid>
    158. Grid>
    159. Window>
    1. using System;
    2. using System.Collections.Generic;
    3. using System.Linq;
    4. using System.Text;
    5. using System.Threading.Tasks;
    6. using System.Windows;
    7. using System.Windows.Controls;
    8. using System.Windows.Data;
    9. using System.Windows.Documents;
    10. using System.Windows.Input;
    11. using System.Windows.Media;
    12. using System.Windows.Media.Imaging;
    13. using System.Windows.Navigation;
    14. using System.Windows.Shapes;
    15. namespace 模仿企业微信界面
    16. {
    17. ///
    18. /// Interaction logic for MainWindow.xaml
    19. ///
    20. public partial class MainWindow : Window
    21. {
    22. public MainWindow()
    23. {
    24. InitializeComponent();
    25. }
    26. }
    27. }

    效果:

  • 相关阅读:
    盘点面试常见的设计类算法问题
    (十九)ATP应用测试平台——springboot集成RocketMQ案例实战
    RabbitMQ--基础--5.1--部署--命令
    亚马逊英国站自动洒水器、自动浇花器UKCA认证检测标准
    代码检查 pre-commit如何使用
    MySQL高级SQL语句
    Springboot+Vue+Mysql实现模拟汽车保养系统(附源码)
    Linux编程基础:1~6章实训编程题
    技术策划学习 —— 引擎工具链高级概念与应用
    基于android的购物APP系统设计与实现
  • 原文地址:https://blog.csdn.net/XiaoWang_csdn/article/details/133986238