wpf 笔记 Buttons and Other Controls

来源:互联网 发布:mac rar解压缩软件 编辑:程序博客网 时间:2024/05/21 14:04

1.Uri:

Uri uri=new Uri("pack://application:,,/filename");

2.Command: AppliactionCommands,ComponentCommands,MediaCommands,NavigationCommands,EditingCommands 类的静态Property。类型为RoutedUICommand。

CommanBindings.Add(new CommandBinding(ApplicationCommands.Paste,PasteOnExecute,PasteCanExecute));

剪切板 Clipboard.ContainsText();Clipboard.GetText();

3.ToggleButton

IsThreeState

toggleButton.setBinding(ToggleButton.IsCheckedProperty,bind);

4.TextBox

SelectionStart 设置光标位置

AcceptsReturn

CaretIndex 

5.Path.Combine

Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),xxx);

6.ListBox

ItemContainerStyleSelector  ,继承StyleSelector

ItemTemplateSelector ,继承DataTemplateSelector

AlternationConverter ,AlternationIndex,AlternationCount




0 0
原创粉丝点击