TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vijay
NA
150
90.6k
How to implement datatemplate for gridcolumn from WPF MVVM
Jun 18 2018 7:48 AM
I am using below code for highlight red color boder for textbox.combobox when condition true from XAML.
<
DataTemplate
>
<
Border
x:Name
=
"outerCellBorder"
>
<
dxe:InplaceBaseEdit
Name
=
"PART_Editor"
ContentTemplate
=
"{x:Null}"
/>
</
Border
>
<
DataTemplate.Triggers
>
<
MultiDataTrigger
>
<
MultiDataTrigger.Conditions
>
<
Condition
Binding
=
"{Binding Path=RowData.Row.Name}"
Value
=
"{x:Null}"
/>
<
Condition
Binding
=
"{Binding Path=RowData.Row.IsPersonHasValue}"
Value
=
"true"
/>
</
MultiDataTrigger.Conditions
>
<
Setter
TargetName
=
"outerCellBorder"
Property
=
"BorderBrush"
Value
=
"Red"
/>
<
Setter
TargetName
=
"outerCellBorder"
Property
=
"BorderThickness"
Value
=
"1"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"Please enter name"
/>
</
MultiDataTrigger
>
</
DataTemplate.Triggers
>
</
DataTemplate
>
How to implement same functionality from WPF Codebehind or MVVM. Here, I am using Generic ViewModel like
public
class
PersonViewModel<T> : PersonViewModel where T :
new
()
{}
Please anyone help me on this.
Reply
Answers (
0
)
No motion animation of objects
Line Chart using WPF with or without database