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
vicky babu
NA
92
1.6k
Issue in Wpf Inverted DataGrid Row, Column Resize
Apr 4 2018 5:42 AM
I am new to WPF, Here I am trying DataGrid with inversion, but my problem is whenever I try to resize the columns and rows it's not resized properly because it was inverted now the rows are resize with vertical and columns are in horizontal.
How can I get it to look and behave like in the uninverted DataGrid?
Code here:
<
DataGrid.ColumnHeaderStyle
>
<
Style
TargetType
=
"{x:Type DataGridColumnHeader}"
BasedOn
=
"{StaticResource {x:Type DataGridColumnHeader}}"
>
<
Setter
Property
=
"LayoutTransform"
>
<
Setter.Value
>
<
TransformGroup
>
<
RotateTransform
Angle
=
"-90"
/>
<
ScaleTransform
ScaleX
=
"1"
ScaleY
=
"-1"
/>
</
TransformGroup
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
DataGrid.ColumnHeaderStyle
>
<
DataGrid.CellStyle
>
<
Style
TargetType
=
"DataGridCell"
>
<
Setter
Property
=
"LayoutTransform"
>
<
Setter.Value
>
<
TransformGroup
>
<
RotateTransform
Angle
=
"-90"
/>
<
ScaleTransform
ScaleX
=
"1"
ScaleY
=
"-1"
/>
</
TransformGroup
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
DataGrid.CellStyle
>
<
DataGrid.RowHeaderStyle
>
<
Style
TargetType
=
"DataGridRowHeader"
>
<
Setter
Property
=
"LayoutTransform"
>
<
Setter.Value
>
<
TransformGroup
>
<
RotateTransform
Angle
=
"-90"
/>
<
ScaleTransform
ScaleX
=
"1"
ScaleY
=
"-1"
/>
</
TransformGroup
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
DataGrid.RowHeaderStyle
>
thanks in advance
Reply
Answers (
0
)
how to connect database file in my asp.net project
I want to do resize of image and then to do crop