datatrigger
WPF Datatrigger for DataGrid only changing the entire row
I\'ve got a DataGrid with a DataTrigger setup, so when it\'s value is \"UP\" I\'d like the trigger to only change the background in the \'directionColumn\' datagridcolumn only.[详细]
2023-01-08 04:50 分类:问答WPF change Button Content on ViewModel.PropertyChanged event
My attempt (below) fails: <Canvas x:Key=\"Lock\" ... /> <Canvas x:Key=\"Unlock\" ... /> <Style x:Key=\"LockButtonStyle\" TargetType=\"{x:Type Button}\">[详细]
2023-01-07 23:28 分类:问答WPF TextBlock Negative Number In Red
I am trying to figure o开发者_如何学Pythonut the best way to create a style/trigger to set foreground to Red, when value is < 0. what is the best way to do this? I\'m assuming DataTrigger, but how[详细]
2023-01-06 16:03 分类:问答WPF : Conditional templating of textblock
I have a bunch of textblocks in an itemscontrol... I need to know how can I underline the text in the textblock based on whether the text is available in a list in the data model..[详细]
2023-01-05 13:21 分类:问答DataTrigger with Value Binding
Why this doesn\'t work? <Style x:Key=\"ItemContStyle\" TargetType=\"{x:Type Lis开发者_StackOverflow社区tViewItem}\">[详细]
2023-01-01 13:37 分类:问答Changing TextBlock.Text in trigger didn't work
I have the next code in my view: <Style x:Key=\"documentFileNameStyle\"> <Setter Property=\"TextBlock.Foreground\" Value=\"Gray\"/>[详细]
2023-01-01 09:23 分类:问答WPF Trigger when Property and Data value are true
I need to be able to change the Style of a control when a property and data value are true. For example, my bound data has an IsDirty property. I would like to change the background color of my contro[详细]
2023-01-01 01:40 分类:问答WPF Trigger / Style overrides another
I have a ListView with an ItemContainerStyle defined as such: <ListView Width=\"auto\" SelectionMode=\"Single\"[详细]
2022-12-30 21:17 分类:问答Provide a dependency property of a control to a converter in the control?
I have two objects, Culture and Translation, neither of which are complicated. Culture is like a simple CultureInfo, but with an extra field.Cultures likely won\'t change often, and there won\'t be ma[详细]
2022-12-30 12:27 分类:问答Change Rectangle Fill Based on ColumnWidth of a grid
Essentially i want to do as the title says, if the columnwidth is .50 then the rectangle should be red, if it\'s .75 then it should be amber, and if it\'s 1 then it should be green.[详细]
2022-12-29 10:21 分类:问答
加载中,请稍侯......