You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WPF mode HwndSource.SizeToContent needs to be set to SizeToContent.Manual without setting Width or Height to make it size to the parent, so that the UIElement assigned stretches to cover the whole Deskband.
#46
Open
rwasef1830 opened this issue
Dec 9, 2019
· 1 comment
Hello,
The latest version of this library has a small issue. In WPF mode, if you set a UIElement in the child class of CSDeskbandWpf, it will not stretch to the whole width of the deskband. Instead it will take the minimum width and the deskband will shrink to its size, leaving the rest of the deskband area empty.
To solve this issue, a small patch is needed to the CSDeskBandWpf class constructor. After creating HwndSource using HwndSourceParameters, assign the SizeToContent property on it to SizeToContent.Manual and it will behave the same as previous versions.
The text was updated successfully, but these errors were encountered:
rwasef1830
added a commit
to rwasef1830/MonBand
that referenced
this issue
Dec 9, 2019
Hello,
The latest version of this library has a small issue. In WPF mode, if you set a UIElement in the child class of CSDeskbandWpf, it will not stretch to the whole width of the deskband. Instead it will take the minimum width and the deskband will shrink to its size, leaving the rest of the deskband area empty.
To solve this issue, a small patch is needed to the
CSDeskBandWpf
class constructor. After creatingHwndSource
usingHwndSourceParameters
, assign theSizeToContent
property on it toSizeToContent.Manual
and it will behave the same as previous versions.The text was updated successfully, but these errors were encountered: