Quantcast
Viewing latest article 18
Browse Latest Browse All 20

double gridsplitters

I'm trying to use your custom splitter but just can't seem to get it defined to work correctly.  The designer appears to show the splitters but when I compile and run all I have is vertical and horizontal whiteish bars that can't be grabbed.  I incorporated splitter.cs into the namespace of my project and there are no compilation or runtime errors.  I'm trying to have two columns and three rows.  The bottom row is status bars and I want them split horizontally along with the other rows.  I just want the row splitter to split the top two rows and leave the status bars alone.  Here's the part of the XAML where I try to specify the splitters:

 

<Grid.RowDefinitions><RowDefinitionHeight="50*"x:Name="GTop"/><RowDefinitionHeight="3"/><RowDefinitionHeight="50*"x:Name="GBottom"/><RowDefinitionHeight="Auto"/></Grid.RowDefinitions><Grid.ColumnDefinitions><ColumnDefinitionWidth="50*"x:Name="GLeft"/><ColumnDefinitionWidth="3"/><ColumnDefinitionWidth="50*"x:Name="GRight"/></Grid.ColumnDefinitions><StackPanelGrid.Row="0"Grid.Column="0"Background="Red"/><StackPanelGrid.Row="0"Grid.Column="2"Background="Blue"/><StackPanelGrid.Row="2"Grid.Column="0"Background="Tan"/><StackPanelGrid.Row="2"Grid.Column="2"Background="Brown"/><StatusBarGrid.Row="3"Grid.Column="0"Visibility="{Binding Source={StaticResource MySettings},Path=ShowStatusBars,Converter={StaticResource boolToVisibleConverter},Mode=TwoWay}"><StatusBarItem><TextBlockName="StatusBarLeftText"Text="{Binding Source={StaticResource MySettings},Path=LefDir}"/></StatusBarItem></StatusBar><StatusBarGrid.Row="3"Grid.Column="1"Visibility="{Binding Source={StaticResource MySettings},Path=ShowStatusBars,Converter={StaticResource boolToVisibleConverter},Mode=TwoWay}"><StatusBarItem><TextBlockName="StatusBarRightText">Right</TextBlock></StatusBarItem></StatusBar><Classes:SplitterBackground="DarkGreen"Grid.ColumnSpan="3"Grid.Row="1"Direction="HORIZONTAL"PreviousRow="{Binding ElementName=GTop}"NextRow="{Binding ElementName=GBottom}"/><Classes:SplitterBackground="DarkBlue"Grid.RowSpan="4"Grid.Column="1"Direction="VERTICAL"PreviousColumn="{Binding ElementName=GLeft}"NextColumn="{Binding ElementName=GRight}"/><Classes:SplitterBackground="Red"Grid.Column="1"Grid.Row="1"Direction="CROSS"PreviousRow="{Binding ElementName=GTop}"NextRow="{Binding ElementName=GBottom}"PreviousColumn="{Binding ElementName=GLeft}"NextColumn="{Binding ElementName=GRight}"/>


Viewing latest article 18
Browse Latest Browse All 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>