Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
依赖属性如何告诉要应用的对象?
我对这个概念完全陌生 所以我可能会问非常基本的问题 使用以下代码注册依赖属性 public static DependencyProperty Register string name Type propertyType Type owne
WPF
dependencyproperties
如何在 WPF DependencyProperty 检索上放置断点?
如何创建 WPF 时触发的断点检索我的自定义 DependencyProperty 的值是多少 我第一次写这个问题很糟糕 https stackoverflow com questions 57417213 why is my breakp
WPF
dependencyproperties
“Binding”类型的 DependencyProperty 未更新
我在创建 Binding 类型的 DependencyProperty 时遇到问题 其他类型工作正常 如果我使用绑定填充它们 它们就会成功解析 在我的场景中 我想获取原始绑定 以便我可以使用它来绑定到子对象的属性 这与 DataGrid 处
c
NET
WPF
Binding
dependencyproperties
当页面的数据上下文用于其他绑定时,如何绑定到 WPF 依赖属性?
当页面的数据上下文用于其他绑定时 如何绑定到 WPF 依赖属性 简单的问题 需要设置元素的数据上下文 XAML
WPF
databinding
dependencyproperties
绑定 UserControl 依赖属性和 MVVM
我有一个包含 UserControl 的 MainWindow 两者都以 MVVM 模式实现 MainWindowVM 具有我想要绑定到 UserControl1VM 中的属性的属性 但这行不通 这是一些代码 视图模型使用某种 mvvm 框
WPF
MVVM
dependencyproperties
WPF 自定义控件:DependencyProperty 从未设置(仅在众多属性之一上)
我制作了一个名为的自定义控件地址表 它继承自 Control 该控件用于显示 IAddress 对象的字段 最初我在 Silverlight 中制作了这个控件 现在我试图让它在 WPF net 4 5 中工作 该控件定义了 9 个不同的依赖
customcontrols
dependencyproperties
wpf45
如何最轻松地确定某个属性是否为依赖属性?
我最近遇到了将数据绑定到 DataGridTextColumn 的 Visibility 属性的问题 造成混乱的原因是此属性在 WPF 中是依赖属性 但在 Silverlight 中不是 我认为 MSDN 文档并没有说得很清楚 以下是 WP
WPF
silverlight
dependencyproperties
在 ListView 数据模板 WPF 中绑定 UserControl
所以我有这个问题 我创建了一个用户控件 基本上是一个文本框和标签 我可以使用依赖属性来绑定此用户控件 我有一个 ListView 可以在其中在数据模板中放置一个文本框并将 文本 属性绑定到绑定值 到目前为止 一切都很好 但现在 如果我尝试将
WPF
xaml
Binding
dependencyproperties
为什么依赖属性中的 get/set 没有执行任何操作?
我创建了一个像这样的依赖属性 public partial class MyControl UserControl public static DependencyProperty XyzProperty DependencyPropert
c
WPF
dependencyproperties
使用依赖属性和样式触发器时,“...不是 DependencyProperty”
在我的用户控件中 public ODIF DeviceChannel Channel get return ODIF DeviceChannel GetValue ChannelDP set SetValue ChannelDP value
c
WPF
xaml
dependencyproperties
顺序评估依赖属性绑定?
什么决定了同一控件上的多个 DepdencyProperties 的求值顺序 我正在使用扩展 WPF 工具包 http wpftoolkit codeplex com PropertyGrid 并绑定了 SelectedObject 和 P
c
WPF
xaml
dependencyproperties
wpftoolkit
依赖属性收到xaml更改时的回调
当我设置的值IsClosed在运行时 OnIsClosedChanged 称为精 然而 设计者设置属性的值但不调用OnIsClosedChanged public static DependencyProperty IsClosedProp
c
WPF
xaml
dependencyproperties
多个用户控件共享集合依赖属性
我已经实现了自己的基于列表框的用户控件 它具有集合类型的依赖属性 当我在窗口中只有一个用户控件实例时 它工作得很好 但如果我有多个实例 我会遇到它们共享集合依赖属性的问题 下面是一个示例来说明这一点 我的用户控件称为 SimpleList
WPF
dependencyproperties
itemscontrol
从 DataTemplate UWP 绑定 UserControl DP
我有一个FlipView这表明雕像 雕像包含一个Path到他们的形象 将此属性绑定到常规 DataTemplate 就可以了 下面的代码工作正常
c
usercontrols
winrtxaml
dependencyproperties
UWP
无法对 DependencyProperty 进行数据绑定
我有一个带有 DependencyProperty 的 UserControl 我使用数据绑定表达式在主机窗口中设置它的值 但是 它并没有按预期工作 用户控件的代码隐藏片段 public class ViewBase UserControl
WPF
databinding
dependencyproperties
在 WPF 中使用枚举作为依赖属性
我尝试在自定义控件中使用枚举类型作为依赖属性 但总是收到错误 public enum PriceCategories First 1 Second 2 Third 3 Fourth 4 Fifth 5 Sixth 6 public stat
c
WPF
enums
customcontrols
dependencyproperties
在 IValueConverter 类中定义属性
我需要在转换器类中定义 DependencyProperty 因为我需要此数据来进行转换 并且此数据位于另一个对象中 而不是我绑定到的对象中 我的转换器类如下 public class LEGOMaterialConverter Depen
WPF
dependencyproperties
ivalueconverter
无法从 XAML 和 Setter 绑定 IList 类型的 DependencyProperty
从这里实施建议的代码后 无法将 ObservableCollection 绑定到 xaml 中的 List dp https stackoverflow com questions 16958476 cannot bind observab
WPF
xaml
databinding
dependencyproperties
Silverlight DependencyProperty.SetCurrentValue 等效项
我正在寻找相当于 NET 4 的 SL4设置当前值 http msdn microsoft com en us library system windows dependencyobject setcurrentvalue aspxAPI
“Options”属性的默认值无法绑定到特定线程
我发现当我改变班级时 public class MarkdownEditorOptions ObservableObject to public class MarkdownEditorOptions INotifyPropertyChan
WPF
dependencyproperties
1
2
3
4
»