Browse by Tags
All Tags »
XAML (
RSS)
WPF Scrolling In WPF you get scrolling support by wrapping the content control you want to add scrolling to with the ScrollViewer content control. < ScrollViewer > < TextBlock LineHeight ="20" Grid.Row ="0"> </ TextBlock > </ ScrollViewer > It adds a disabled scroll which changes to enabled if the content has overflowed the size of it’s container. You may use the VerticalScrollBarVisibility ="Auto" property of the ScrollViewer if you wish the...
WPF Grid Shared Size Groups The Grid rows and columns are given a direct size by the developer or are automatically sized by their content’s size. By using shared sized group feature you may also set the size of the rows or columns by the size of a different row/column at the current grid or from a different grid available in the page. For example, you may set the column width of column 2 by the column width of column one at the same grid. You may also set the column width of column 2 at grid 2 by...
XAML special characters and white spaces Some beginner stuff i found a lot of people do not know about. XAML is based upon the rules of XML . What this means is that characters such as ‘&’, ‘<’, ‘>’ and ‘”’ have their own meaning in XML and the XAML parser will understand them differently then what you intended them for. If you wish your button’s content to look like this <I am a Button> then you must change your XAML text to < Button Content ="<I am a Button>"><...