Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>AFAIK to change how the window is shown and/or its size you should just implement <a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.arrangeoverride.aspx" rel="nofollow noreferrer"><code>ArrangeOverride</code></a> OR set <a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.height.aspx" rel="nofollow noreferrer"><code>Height</code></a> and <a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.width.aspx" rel="nofollow noreferrer"><code>Width</code></a> directly (for example in the <code>Loaded</code> event handlet)...</p> <p><strong>EDIT - as per comment:</strong><br/></p> <p>Applying XAML at runtime can open up several security problems so I would recommend not doing so or at least implement some security measures to prevent the dynamically loaded XAML from messing with the application... that said: </p> <ul> <li><a href="http://blogs.msdn.com/b/ashish/archive/2007/08/14/dynamically-loading-xaml.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/ashish/archive/2007/08/14/dynamically-loading-xaml.aspx</a></li> <li><a href="https://stackoverflow.com/questions/786183/wpf-changing-resources-colors-from-the-app-xaml-during-runtime/787247#787247">WPF: Changing Resources (colors) from the App.xaml during runtime</a></li> <li><a href="http://blog.xamltemplates.net/?p=20" rel="nofollow noreferrer">http://blog.xamltemplates.net/?p=20</a></li> <li><a href="http://www.mostlydevelopers.com/blog/post/2009/01/15/load-xaml-at-runtime.aspx" rel="nofollow noreferrer">http://www.mostlydevelopers.com/blog/post/2009/01/15/load-xaml-at-runtime.aspx</a></li> <li><a href="http://dotnetslackers.com/XAML/re-205412_Load_XAML_Resource_Dictionaries_at_Runtime.aspx" rel="nofollow noreferrer">http://dotnetslackers.com/XAML/re-205412_Load_XAML_Resource_Dictionaries_at_Runtime.aspx</a></li> <li><a href="http://www.codeproject.com/KB/WPF/wpfskins.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/WPF/wpfskins.aspx</a></li> </ul> <p><strong><a href="https://connect.microsoft.com/VisualStudio/feedback/details/555322/global-wpf-styles-are-not-shown-when-using-2-levels-of-references" rel="nofollow noreferrer">This MS Connect entry</a> is not exactly the same issue but somehow related and suggests that there could be a bug in WPF 4.</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload