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:

  1. using binding converter, , bind width/height of each item container width/height.
  2. creating custom panel, de desired layout.

only few ideas, hope helps.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -