c# - XAML StackPanel inner items size problems -


itemprop = "text">

I have this XAML code:

    StackPanel orientation = "horizontal" margin = "0" & ​​gt; & Lt; ScrollViewer VerticalScrollBarVisibility = "Auto" & gt; & Lt; StackPanel x: name = "Miniaturas" orientation = "vertical" MinWidth = "100" width = "auto" Grid.Column = "0" height = "auto" ScrollViewer.CanContentScroll = "this is true" & gt; & Lt; / StackPanel & gt; & Lt; / ScrollViewer & gt; & Lt; Grid margin = "1" & gt; & Lt; WindowsFormsHost x: name = "VistaPrevia" width = "auto" /> & Lt; / Grid & gt; & Lt; / StackPanel & gt;   

What I am trying to do is to simulate two columns. Why? Because WindowsFormsHost can not be deposited in ColumnDefinition it throws this error:

Value type "WindowsFormHost" not added to a dictionary Usually I do this with this code:

  & lt; Grid margin = "1" & gt; & Gt; Grid ColumnDefinitions & gt; & Lt; ColumnDefinition width = "120" /> & Lt; ColumnDefinition width = "*" /> & Lt; /Grid.ColumnDefinitions> & Lt; WindowsFormsHost x: name = "VistaPrevia" width = "auto" /> How do I make a single ea without using    

ColumnDefinition

: Give me Column is the size of a fixed width and the second which uses the remaining width of the window.

VS Press 2013 Express and see whether the error has been fixed in the parser. Also verify that you have installed the update for Visual Studio 2012 4, to see if it fixes the problem.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -