未完成,保存
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows;
|
||||
using System.Media;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.IO;
|
||||
|
||||
namespace StormChatWPF
|
||||
{
|
||||
class HeadPicture : Image
|
||||
{
|
||||
public HeadPicture(/*Stream imgstream*/)
|
||||
{
|
||||
|
||||
FileStream fileStream = new FileStream(@"C:\Users\Administrator\Desktop\闪电.png", FileMode.Open);
|
||||
|
||||
Source = new BitmapImage()
|
||||
{
|
||||
StreamSource = fileStream
|
||||
};
|
||||
//border.Content = this;
|
||||
}
|
||||
private Label border = new Label()
|
||||
{
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Interact;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
using System.Windows;
|
||||
|
||||
namespace StormChatWPF
|
||||
{
|
||||
class UserInfo:Label
|
||||
{
|
||||
public UserInfo(User user)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
private Image headpicture = new Image
|
||||
{
|
||||
HorizontalAlignment = HorizontalAlignment.Left
|
||||
};
|
||||
private TextBlock UserNmae=new TextBlock
|
||||
{
|
||||
FontFamily = new FontFamily("Comic Sans MS"),
|
||||
HorizontalAlignment = HorizontalAlignment.Right,
|
||||
VerticalAlignment=VerticalAlignment.Top
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user