Access window size in xaml or data model
Posted: 24 Feb 2020, 14:56
When resizing the window we have to do something like
Is it possible for a xaml or a data model to access these values?
Tried something like as found on StackOverflow but that's probably just WPF like.
Storing the pointer to the data model somewhere global works but doesn't feel elegant.
Code: Select all
m_view->SetSize( this->width(), this->height() );Tried something like
Code: Select all
"{Binding Source={x:Static SystemParameters.PrimaryScreenWidth}}"Storing the pointer to the data model somewhere global works but doesn't feel elegant.