Advanced Forum Search Results
-
Found the secret.. the grid splitter is changing the height of the underlying rows.. so you have to add this line.. into the bottom button click...
LayoutRoot.RowDefinitions[2].Height = GridLength.Auto;
-
Maybe this code will make the problem more obvious.
<UserControl x:Class="tabtestshrink.MainPage"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:ext="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" ...
-
You're code has the exact same behavior.. it works.. until you manually move the grid splitter... From then on.. the first row doesn't grow when the lower button is collapsed.
-
I'm sorry, I don't thin you understand the issue, or I don't understand you.
I want the first row to take the Entire Screen (minus 5 px for the splitter) when the second button is pushed.
This works fine as long as you don't use the grid splitter. However if you move the grid splitter then it does not work. The first row does not ...
-
I have a grid with 3 rows.. if I set the item in the 3rd Row to Visibility.Collapsed then the Top Row properly grows... However if I touch the GridSplitter, then the * / Auto stops working and the Grids don't reset.
Run this program.. click the second button, and the first row grows, click the first button to make second button visible, ...
-
A control that extends... 'System.ComponentModel.GroupDescription'
-
So I have an error when trying to use a class.......
Error 3 The type 'System.ComponentModel.GroupDescription' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, ...
-
I have a regular class (not SilverlightControl) which is creating some UserControls. In that class I want to get a DataTemplate from AppResources.. this works.. but I can't figure out how to get the binding to work..I don't know how to set "Name"DataTemplate dt = ...
-
Thanks, that makes sense... however, looking at the tutorial on http://silverlight.net/quickstarts/controltemplates.aspx
When I download the code there is no "GoToState"
to be sure, i copied his xaml into my own app and it works...
<UserControl ...
-
can anyone give me the hint to the obvious piece I'm missing..
<UserControl x:Class="SilverlightApplication5.Page"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...