Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
更改绑定值,而不是绑定本身
我有一个包含 DependencyProperty MyProperty 的 WPF UserControl DependencyProperty 绑定到 DataContext 中的属性 现在在 UserControl 中我想更改绑定属性
c
WPF
Binding
dependencyproperties
为什么将 DependencyProperty 成员声明为 public 而不是 protected?
为什么以这种方式创建 DependencyProperty 成员 public static readonly DependencyProperty DepProperty DependencyProperty Register 而不是那样
WPF
dependencyproperties
WPF 中的依赖属性使用
我很难找出依赖属性的充分理由 为什么 System Controls TextBox Text 属性是依赖属性而不是普通属性 作为依赖属性有什么好处 我想要完成的事情之一是将 ValidationRules 属性添加到我的 UserCont
WPF
dependencyproperties
用户控件使用错误的数据上下文
我有一个以这种方式在父控件中使用的 UserControl
c
WPF
Binding
dependencyproperties
datacontext
CustomControl DependencyProperty 绑定无法正常工作
我写了一个自定义控件 它是一个带有按钮的文本框 可打开 OpenFileDialog TextBox 的 Text 属性绑定到我的依赖属性 FileName 如果用户通过 OpenFileDialog 选择文件 我会将结果设置为此属性 Te
WPF
net35
customcontrols
dependencyproperties
当依赖属性发生更改时是否有通知机制?
在 Silverlight 应用程序中 我试图找出用户控件上的属性何时发生更改 我对一个特定的 DependencyProperty 感兴趣 但不幸的是该控件本身没有实现 INotifyPropertyChanged 还有其他方法可以确定值
NET
silverlight
silverlight20
dependencyproperties
路由事件和依赖属性 .NET 包装器混淆
我是 WPF 新手 对路由事件和依赖属性的包装语法感到困惑 我在许多来源上看到路由事件和依赖属性是这样包装的 Routed Event public event RoutedEventHandler Click add base AddHa
c
WPF
syntax
dependencyproperties
routedevents
自定义控件数据绑定 wpf
目前正在实现一个自定义控件 我想直接从我的 viewModel 绑定一些值 而不使用 xaml 我可以做这个
WPF
wpfcontrols
customcontrols
dependencyproperties
尝试在运行时更改 CroppedBitmap 的 SourceRect
当我尝试在运行时更改 CroppedBitmap 的 SourceRect 属性时 没有任何反应 没有错误 并且属性值实际上没有改变 我正在尝试制作精灵动画 我有一个包含精灵表的 BitmapSource 它是一个包含精灵不同姿势网格的单个
WPF
dependencyproperties
WinRT DependencyProperty 与 IEnumerable 根本不触发
自从我知道已经发布了很多关于依赖属性的文章以来 我一直在搜寻和搜寻 但我只是还没有看到任何有有效解决方案的东西 我正在尝试将 ObservableCollection 从我的 ViewModel 绑定到我的 AutoCompleteBox
dependencyproperties
windowsruntime
WPF依赖属性枚举集合
我有一个枚举列出了所有可能的设置 public enum Settings Settings1 Settings2 Settings3 在我的用户控件中 我想实现一个新的依赖属性 它包含一个设置列表并能够像这样使用它
WPF
enums
dependencyproperties
将用户控件与视图模型绑定的依赖属性
本质上 我有一个主窗口 上面有一个用户控件 其中包含一个绑定到主窗口视图模型的属性 这个想法是 当用户表单中的属性发生变化时 通过绑定 主窗口视图模型中的属性也会发生变化 问题是 当用户控件没有 ViewModel 时 这会起作用 当我向用
c
WPF
xaml
MVVM
dependencyproperties
如何公开嵌套在 UserControl 中的控件的 DependencyProperty?
我正在尝试将图像从窗口绑定到用户控件 显示处理程序 内的用户控件 显示 中 显示有一个 DependencyProperty DisplayImage 这类似于this 但他们的回答对我的问题没有帮助 DisplayHandler 还应该具
WPF
Binding
nested
dependencyproperties
绑定到工具提示的 wpf 自定义控件依赖属性?
我有一个在 WPF 中编写的自定义控件 它具有布尔依赖属性 public static readonly DependencyProperty IsAlertProperty DependencyProperty Register IsAl
c
WPF
xaml
customcontrols
dependencyproperties
在 WPF 中实现暂停
这里有一个简单的 WPF 程序
c
WPF
dependencyproperties
DELAY
将 ItemsControl ItemSource 绑定到 UserControl 依赖属性
这是我第一次尝试创建具有依赖属性的用户控件 所以请原谅我对这个主题缺乏了解 我在其中一个页面上创建了一个总体设计 我想将其转换为可重用的用户控件 页面上的原始控件 这就是我试图移植到可重用 UserControl 的控件
WPF
templates
Binding
usercontrols
dependencyproperties
如果我们无法绑定MouseBinding的Command,我们该怎么办?
我希望能够使用常规的MouseBinding捕获我的 CTRL Click 事件TextBlock 不幸的是Commandproperty 不是依赖属性 而且我正在使用 MVVM 所以我无法将它绑定到我的视图模型 微软怎么会忽略这个基本功能
WPF
MVVM
dependencyproperties
inputbinding
目标属性必须是依赖属性 - 为什么?
我知道依赖属性在 WPF 中起着主要作用 但是 我不明白在绑定中目标属性必须是依赖属性这一限制背后的原因 为什么不能是任何财产 如果您有兴趣 可以打开 Reflector 并查看一些与框架中的依赖属性和绑定系统相关的代码 为了实现属性路径的
WPF
dependencyproperties
将属性注册为 DependencyProperty
我有一个名为 ChartView 的用户控件 我有一个 ObservableCollection 类型的属性 我已经在 ChartView 中实现了 INotifyPropertyChanged ChartEntry 的代码是 public
c
WPF
dependencyproperties
spring boot多个模块如何继承application.properties
我使用 Spring Boot 多个模块 我想从 Parent 继承 application properties 我有父模块 spring ecommere demo 和子模块 模型 核心和安全性 在父模块中 我放置了一些 jdbc 配置
Java
Spring
Maven
springboot
dependencyproperties
«
1
2
3
4
»