|
WPF Fundamentals Base Elements ContextMenuOpening Handlers 对ContextMenuOpening事件的处理 Creating a FocusVisualStyle 作为FocusVisualStyle使用的style Finding the Index of an Element in a Panel 找到新加入到panel的元素的index,使用IndexOf Height Properties FrameworkElement中,MinHeight>MaxHeight>Height Loaded Event 在页加载时创建一个button Setting Margins FrameworkElement的Margin属性 ThicknessConverter 如何把ListBoxItem内容转换成Thickness实例,使用ThicknessConverter Using Elements 添加,删除,清空,插入和找到tree中element的index Visibility Changes to UIElement 改变UIElement的Visibility属性 Width Properties Comparison FrameworkElement中,MinWidth>MaxWidth>Width Element Tree and Serialization Overriding the Logical Tree 如何派生一个StackPanel重载一个逻辑tree Searching for an Element 查找一个element Properties Custom Classes with Dependency Properties 在一个程序中创建和注册dependency属性 Restoring Default Values 清除设置的值,还原默认值 PropertyChanged an CoerceValue Callbacks 为dependency属性实现回调 Events Adding an Event Handler 用代码给一个element添加事件处理 Custom Routed Events 实现custom routed 事件 Finding the Source Element in an Event Handler 在事件处理中找到源element Routed Event Handling bubbling routed 事件工作原理 Inputs and Commands Handling an Event When a Command Occurs Hook up 一个RoutedCommand Handling an Event When a Command Occurs Using Code Hook up 一个RoutedCommand Changing the Cursor Type 改变鼠标类型 Detecting Mouse Button State 用State属性检测鼠标按下还是释放 Firing Event When an Element Gains and Losed Focus 元素获得和释放焦点时激发事件 Keyboard Key 检测键盘按下 Mouse Pointer 检测何时鼠标进入和离开一个区域 Moving an Object with the Mouse Pointer 如何时一个物体跟着屏幕鼠标 Create Command Bindings Using Code 创建一个RoutedCommand, CommandBinding, KeyBinding Create a Custom RoutedCommand Excuted, CanExecuted事件,Hook up命令 EditingCommands EditingCommands类的命令 Disable Command Source Via Dispatcher Timer 通过DispatcherTimer处理命令源 Disable Command Source Via System Timer 通过Timer处理命令源 Capture and Uncapture the Mouse 对象捕捉鼠标,对鼠标事件的影响 Implementing ICommandSource 创建一个ICommandSource实现ICommand Manipulate Focus Programmatically 改变对象的focus Count the Key Strokes of a Specific Key 检测一个特定键按下 Resources Application Resource 定义和访问资源 Defining a Resource 在FrameworkElement下定义资源,在子element的attributes中引用 Merged ResourceDictionary ResourceDictionary的聚合目录能力 Styles and Templates Styles Introduction to Styling and Templating 使用styling Event Triggers 使用EventTrigger元素处理MouseEnter和MouseLeave消息 Content Control Style 给一个content控件添加style Finding Template-Generated Elements 找到ControlTemplate, DataTemplate产生的item Themes Aero Theme Classic Theme Luna Theme Royale Theme Threading Multithreading Web Brower 多线程web浏览程序 Single Threaded Application With Long Running Calculation 单线程无响应的程序中保持UI Weather Service Simulation Via Dispatcher 如何使一个blocking 操作避免无响应 Digital Ink
|
一共有 0 条评论