c# - Width of control based on width of window -
i'm trying figure out, how write responsive ui in xaml.
i have 2 controls on window. minwidth of each control id 400.
if width of windows >800, width of each control should 50%, if change widht of window <800, each control should have 100% of window.
it's pretty simple set html/css, , right i'm trying in wpf without progress.
can me that?
i tried handle wrappanel, not work. wraps properly, not change width of control.
i have 2 ideas doing this:
- using binding converter, , bind width/height of each item container width/height.
- creating custom panel, de desired layout.
only few ideas, hope helps.
Comments
Post a Comment