首页 > 代码库 > WPF中常用控件的属性
WPF中常用控件的属性
Source = new BitmapImage( new Uri( WangCaiConfig.GetCurrentDirectory() + imgStr, UriKind.RelativeOrAbsolute))
this.PictureImage.Source = new BitmapImage( new Uri(img, UriKind.RelativeOrAbsolute));
Canvas.Right="10": Canvas.SetRight(stateImage, 0);
Canvas.Bottom="0" : Canvas.SetBottom(stateImage, 0);
: Margin = new Thickness(20, 0, 0, 0),
Padding="5,0,0,0": Padding = new Thickness(5, 0, 0, 0),
Foreground ="#333": Foreground = new SolidColorBrush((Color )ColorConverter .ConvertFromString("#333"))
Style = (System.Windows.Style)FindResource( "FriendPhoneStyle"),
canvas.Background = Brushes.White;
Background = new SolidColorBrush((Color )ColorConverter .ConvertFromString("#fff")),
path = WangCaiConfig.GetCurrentDirectory() + "RecommendPictures" ;
dirs = Directory.GetFiles(path);
IsNullOrWhiteSpace(不为空)
HorizontalAlignment = HorizontalAlignment.Stretch,
this.RegisterName( "LXR_List" + user.Id, canVasRoot_button);注册事件
设置位置
Canvas.SetRight(canVasRoot_button_canvas_image_2, 0);
Canvas.SetBottom(canVasRoot_button_canvas_image_2, 0);
取下一级控件
var button = canva.Children[1] as Button;
WPF中常用控件的属性
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。