c# - XAML StackPanel inner items size problems -
I have this XAML code: 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: 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.
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;
& 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
Comments
Post a Comment