This question is locked. New answers and comments are not allowed.
Hi,
I am quite new to sivlerlight and have a problem with Radgridview scroll bar. It does not appear unless i set static value for height of the Radgridview or it's parent. Radgridview is in the user control.
Any help would be great...
This is my mainpage xaml
I am quite new to sivlerlight and have a problem with Radgridview scroll bar. It does not appear unless i set static value for height of the Radgridview or it's parent. Radgridview is in the user control.
Any help would be great...
This is my mainpage xaml
| <UserControl x:Class="Geidi.CRM.Portal.Web.Silverlight.MainPage" |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:Custom="http://schemas.microsoft.com/winfx/2006/xaml/composite-font" |
| xmlns:Geidi="clr-namespace:Geidi.CRM.Portal.Web.Silverlight" Background="#EEE7D7" > |
| <UserControl.Resources> |
| <LinearGradientBrush x:Key="btnBrush" EndPoint="0.5, 1" StartPoint="0.5,0"> |
| <GradientStop Color="#FFE1BB64" Offset="0.455" /> |
| <GradientStop Color="#FFF6EDD6" Offset="1" /> |
| <GradientStop Color="#FFF2D794" Offset="0.01" /> |
| </LinearGradientBrush> |
| <LinearGradientBrush x:Key="btnBrushHover" EndPoint="0.5, 1" StartPoint="0.5,0"> |
| <GradientStop Color="#FFAE8B3A" Offset="0.378" /> |
| <GradientStop Color="#FFF6EDD6" Offset="1" /> |
| <GradientStop Color="#FFE8C778" Offset="0.01" /> |
| </LinearGradientBrush> |
| <SolidColorBrush x:Key="borderColor" Color="#AE8B3A" /> |
| <SolidColorBrush x:Key="menuTextColor" Color="#FF4C380C" /> |
| <SolidColorBrush x:Key="subMenuHoverBgColor" Color="#FFFAEBCA" /> |
| </UserControl.Resources> |
| <Grid x:Name="LayoutRoot" Margin="10"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="90" /> |
| <RowDefinition Height="*" /> |
| </Grid.RowDefinitions> |
| <Border Grid.Row="0" BorderBrush="Wheat" BorderThickness="1" Height="70" Margin="0,0,0,10" Background="#013C59" CornerRadius="5"> |
| <StackPanel Orientation="Horizontal"> |
| <Image Source="/Images/logo.gif" Margin="10,0,0,0" /> |
| <TextBlock VerticalAlignment="Center" FontFamily="Arial" FontSize="24" Margin="20,0,0,0" FontWeight="bold" Foreground="#FFE0F4FA">Geidi ePortal</TextBlock> |
| </StackPanel> |
| </Border> |
| <Grid Grid.Row="1"> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="250" /> |
| <ColumnDefinition Width="20.01*" /> |
| <ColumnDefinition Width="187.99*" /> |
| </Grid.ColumnDefinitions> |
| <Grid x:Name="gridLeftSideMenu" Grid.Column="0" Margin="0,0,10,0" Background="Transparent"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="*" /> |
| <RowDefinition Height="Auto" /> |
| </Grid.RowDefinitions> |
| <Border Grid.Row="0" BorderBrush="White" BorderThickness="1,1,1,0" CornerRadius="7"> |
| <Border.Background> |
| <LinearGradientBrush EndPoint="0.9, 1" StartPoint="0,0.1"> |
| <GradientStop Color="#FFF6DEA7" Offset="0" /> |
| <GradientStop Color="#FFFFFFFF" Offset="1" /> |
| </LinearGradientBrush> |
| </Border.Background> |
| <StackPanel> |
| <Border BorderThickness="0,0,0,1" CornerRadius="7,7,0,0" Padding="10,5,5,5"> |
| <Border.Background> |
| <LinearGradientBrush EndPoint="0.5, 0" StartPoint="0.5,1"> |
| <GradientStop Color="#FFF8E8BA" Offset="1" /> |
| <GradientStop Color="#FFD3C49B" Offset="0.024" /> |
| </LinearGradientBrush> |
| </Border.Background> |
| <TextBlock Name="currentMenu" FontSize="16" FontWeight="Bold"> </TextBlock> |
| </Border> |
| <StackPanel Name="subMenuContainer" /> |
| </StackPanel> |
| </Border> |
| <Border Name="mainMenuBorder" Grid.Row="1" BorderBrush="White" BorderThickness="1"> |
| <StackPanel Name="mainMenuContainer" /> |
| </Border> |
| </Grid> |
| <Grid Grid.Column="1" Grid.ColumnSpan="2" x:Name="mainArea"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="35" /> |
| <RowDefinition Height="*"/> |
| </Grid.RowDefinitions> |
| <Grid.Background> |
| <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"> |
| <GradientStop Color="#FFDDC99B" Offset="0" /> |
| <GradientStop Color="#FFFFFFFF" Offset="1" /> |
| </LinearGradientBrush> |
| </Grid.Background> |
| <Border Grid.Row="0" BorderBrush="#FFD5AF56" BorderThickness="1" CornerRadius="4,4,4,4"> |
| <Border.Background> |
| <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5,0"> |
| <GradientStop Color="#FFAE8B3A" Offset="0.378" /> |
| <GradientStop Color="#FFF6EDD6" Offset="1" /> |
| <GradientStop Color="#FFE8C778" Offset="0.01" /> |
| </LinearGradientBrush> |
| </Border.Background> |
| <TextBlock Name="subFolderName" Padding="10,5,5,7" FontFamily="Tahoma" FontSize="18" FontWeight="Bold" Foreground="#FF4C380C"></TextBlock> |
| </Border> |
| <StackPanel Name="fileListContainer" Grid.Row="1"> |
| <Geidi:ProjectView x:Name="projectView"></Geidi:ProjectView> |
| </StackPanel> |
| </Grid> |
| </Grid> |
| </Grid> |
| </UserControl> |
This is ProjectView user control
| <UserControl xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" |
| x:Class="Geidi.CRM.Portal.Web.Silverlight.ProjectView" |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:Geidi="clr-namespace:Geidi.CRM.Portal.Web.Silverlight" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| <Grid x:Name="LayoutRoot" Background="Transparent"> |
| <telerikGridView:RadGridView x:Name="gridProjects" AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed" RowDetailsVisibilityChanged="gridProjects_RowDetailsVisibilityChanged" MinHeight="100" Loaded="gridProjects_Loaded"> |
| <telerikGridView:RadGridView.Columns> |
| <telerikGridView:GridViewToggleRowDetailsColumn /> |
| <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ProjectName}" Header="Project Name" /> |
| <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ProjectManager}" Header="Project Manager" /> |
| <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ProjectPipeline}" Header="Project Pipeline" /> |
| </telerikGridView:RadGridView.Columns> |
| <telerikGridView:RadGridView.RowDetailsTemplate> |
| <DataTemplate> |
| <Geidi:ProjectDetailView></Geidi:ProjectDetailView> |
| </DataTemplate> |
| </telerikGridView:RadGridView.RowDetailsTemplate> |
| </telerikGridView:RadGridView> |
| </Grid> |
| </UserControl> |
