WindowState doesn't work correctly

4 posts, 0 answers
  1. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 05 Oct 2011 Link to this post

    Hi,

    in my project I have a RadWindow I use as a window form, I set the WindowState property to Maximized but the RadWindow doesn't react like the WIndow class... The width of my RadWindow fall outiside my screen and the height was set to the half of my screen resolution.

    Here is my XAML:

    <

     

    telerik:RadWindow x:Class="com.christiegrp.Neuron.ClientApplication.BillingForm"

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

     

     

    xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"

     

     

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

     

     

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

     

     

    xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"

     

     

    xmlns:self="clr-namespace:com.christiegrp.Neuron.ClientApplication"

     

     

    xmlns:helper="clr-namespace:com.christiegrp.Neuron.ClientApplication;assembly=ClientHelper"

     

     

    xmlns:BillingModule="clr-namespace:com.christiegrp.Neuron.ClientApplication.LocalResources"

     

     

    Name="Me" WindowState="Maximized" Icon="Resources/BillingModule.png" PreviewClosed="Me_PreviewClosed">

     

     

     

    <telerik:RadWindow.Resources>

     

     

     

    <ResourceDictionary>

     

     

     

    <ResourceDictionary.MergedDictionaries>

     

     

     

    <ResourceDictionary Source="BillingForm-Fr-Res.xaml"/>

     

     

     

    <ResourceDictionary Source="pack://application:,,,/Resources;component/Neuron-Styles.xaml"/>

     

     

     

    <ResourceDictionary Source="/Telerik.Windows.Controls.Navigation;component/Themes/GenericOfficeBlack.xaml"/>

     

     

     

    </ResourceDictionary.MergedDictionaries>

     

     

     

    </ResourceDictionary>

     

     

     

    </telerik:RadWindow.Resources>

     

     

     

    <Grid Width="Auto" Height="Auto" HorizontalAlignment="Stretch">

     

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="*" />

     

     

     

    <RowDefinition Height="45" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="Auto" />

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <!-- The following element is used to trigger an event allowing to replace the language resources before they are used. -->

     

     

     

    <TextBlock Initialized="ReplaceLanguageResources"/>

     

     

     

     

    <telerikRibbonBar:RadRibbonBar Grid.ColumnSpan="2" Name="radRibbonBar" Margin="10,10,10,0" telerik:KeyTipService.IsKeyTipsEnabled="True" MinimizeButtonVisibility="Visible" ApplicationName="Neuron" IsMinimized="True">

     

     

     

    <telerikRibbonBar:RadRibbonBar.Effect>

     

     

     

    <DropShadowEffect />

     

     

     

    </telerikRibbonBar:RadRibbonBar.Effect>

     

     

     

     

    <telerikRibbonBar:RadRibbonBar.ApplicationMenu>

     

     

     

    <telerikRibbonBar:ApplicationMenu telerik:KeyTipService.AccessText="F">

     

     

     

    <telerikRibbonBar:ApplicationMenu.Content>

     

     

     

    <StackPanel Width="300">

     

     

     

    <telerikRibbonBar:RadGroupHeader Content="Menu" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="1. Option..." HorizontalAlignment="Stretch" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="2. Option..." HorizontalAlignment="Stretch" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="3. Option..." HorizontalAlignment="Stretch" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="4. Option..." HorizontalAlignment="Stretch" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="5. Option..." HorizontalAlignment="Stretch" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="6. Option..." HorizontalAlignment="Stretch" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Content="7. Option..." HorizontalAlignment="Stretch" />

     

     

     

    </StackPanel>

     

     

     

    </telerikRibbonBar:ApplicationMenu.Content>

     

     

     

     

    <telerikRibbonBar:ApplicationMenu.FooterContent>

     

     

     

    <StackPanel Height="25" Orientation="Horizontal">

     

     

     

    <telerik:RadButton Width="106" Height="22" Margin="3 0">

     

     

     

    <telerik:RadButton.Content>

     

     

     

    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="3 0 5 0">

     

     

     

    <Image Width="16" Height="16" Source="Resources/Exit_16x16.png" />

     

     

     

    <TextBlock Margin="4 0 0 0" VerticalAlignment="Center" Text="Test" />

     

     

     

    </StackPanel>

     

     

     

    </telerik:RadButton.Content>

     

     

     

    </telerik:RadButton>

     

     

     

    </StackPanel>

     

     

     

    </telerikRibbonBar:ApplicationMenu.FooterContent>

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="1. Option..." LargeImage="Resources/Departments_32x32.png" />

     

     

     

    <telerikRibbonBar:Separator />

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="2. Option..." LargeImage="Resources/Billing_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="3. Option..." LargeImage="Resources/Receivables_32x32.png" />

     

     

     

    <telerikRibbonBar:Separator />

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="4. Option..." LargeImage="Resources/Reports_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="6. Option..." LargeImage="Resources/Files_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="6. Option..." LargeImage="Resources/Configuration_32x32.png" />

     

     

     

    <telerikRibbonBar:Separator />

     

     

     

    <telerikRibbonBar:RadRibbonButton Text="7. Option..." LargeImage="Resources/Exit_32x32.png" />

     

     

     

     

    </telerikRibbonBar:ApplicationMenu>

     

     

     

    </telerikRibbonBar:RadRibbonBar.ApplicationMenu>

     

     

     

     

    <telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>

     

     

     

    <telerikRibbonBar:QuickAccessToolBar>

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Departments_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Billing_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Receivables_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Reports_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Files_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Configuration_32x32.png" />

     

     

     

    <telerikRibbonBar:RadRibbonButton SmallImage="Resources/Exit_32x32.png" />

     

     

     

    </telerikRibbonBar:QuickAccessToolBar>

     

     

     

    </telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>

     

     

     

    </telerikRibbonBar:RadRibbonBar>

     

     

     

     

    <telerik:RadOutlookBar Grid.Row="1" Name="radOutlookBar" Width="250" HorizontalContentAlignment="Stretch" Margin="10,10,5,10" HorizontalAlignment="Left" SelectionChanged="radOutlookBar_SelectionChanged">

     

     

     

    <telerik:RadOutlookBar.Effect>

     

     

     

    <DropShadowEffect />

     

     

     

    </telerik:RadOutlookBar.Effect>

     

     

     

     

    <telerik:RadOutlookBarItem Header="{StaticResource Departments}" FontWeight="Bold" Icon="Resources/Departments_24x24.png" SmallIcon="Resources/Departments_16x16.png" Tag="Departments">

     

     

     

    <telerik:RadTreeView Name="radTreeViewDepartments" Margin="6" IsLineEnabled="True" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList" IsTriStateMode="True" SelectionMode="Extended" Checked="radTreeViewDepartments_Checked" Unchecked="radTreeViewDepartments_Unchecked" PreviewUnchecked="radTreeViewDepartments_PreviewUnchecked">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="Tous" >

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="Agence A">

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement A.1" />

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement A.2" />

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement A.3" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="Agence B">

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement B.1" />

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement B.2" />

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement B.3" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="Agence C">

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement C.1" />

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement C.2" />

     

     

     

    <telerik:RadTreeViewItem Header="D‚partement C.3" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeView>

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

     

    <telerik:RadOutlookBarItem Name="radOutlookBarItemBilling" Header="{StaticResource Billing}" FontWeight="Bold" Icon="Resources/Billing_24x24.png" SmallIcon="Resources/Billing_16x16.png" Tag="BillingChart">

     

     

     

    <Grid Height="Auto" Width="Auto">

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

     

    <StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Background="Black" Margin="6">

     

     

     

    <TextBlock Foreground="White" Text="{StaticResource Government}" HorizontalAlignment="Center" />

     

     

     

    </StackPanel>

     

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="1" Name="radButtonBillReqToBill" Tag="{StaticResource SDBillReqToBill}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillReqToBill}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="1" Name="radButtonBillReqTransLT60" Tag="{StaticResource SDBillReqTransLT60}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillReqTransLT60}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="2" Name="radButtonBillReqTransGT60" Tag="{StaticResource SDBillReqTransGT60}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillReqTransGT60}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="2" Name="radButtonBillReqPaid" Tag="{StaticResource SDBillReqPaid}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillReqPaid}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="3" Name="radButtonBillReqToReBillAndConc" Tag="{StaticResource SDBillReqToReBillAndConc}" Margin="6,0,0,0" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillReqToReBillAndConc}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="3" Margin="6,0,6,0" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource CancelConcBills}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <StackPanel Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Background="Black" Margin="6">

     

     

     

    <TextBlock Foreground="White" Text="{StaticResource Private}" HorizontalAlignment="Center" />

     

     

     

    </StackPanel>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="5" Name="radButtonBillToIssued" Tag="{StaticResource SDBillReqToBill}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillToIssued}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="5" Name="radButtonBillIssuedLT60" Tag="{StaticResource SDBillReqTransLT60}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillIssuedLT60}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="6" Name="radButtonBillIssuedGT60" Tag="{StaticResource SDBillReqTransGT60}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillIssuedGT60}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="6" Name="radButtonBillPaid" Tag="{StaticResource SDBillReqPaid}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillPaid}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="7" Name="radButtonBillIssuedToReBillAndConc" Tag="{StaticResource SDBillReqToReBillAndConc}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource BillIssuedToReBillAndConc}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="7" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource CancelConcIssuedBills}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    </Grid>

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

     

    <telerik:RadOutlookBarItem Header="{StaticResource Receivables}" FontWeight="Bold" Icon="Resources/Receivables_24x24.png" SmallIcon="Resources/Receivables_16x16.png" Tag="ReceivablesChart">

     

     

     

    <Grid Height="Auto" Width="Auto">

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

    <StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Background="Black" Margin="6">

     

     

     

    <TextBlock Foreground="White" Text="{StaticResource Government}" HorizontalAlignment="Center" />

     

     

     

    </StackPanel>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="1" Name="radButtonWaitingAmount" Tag="{StaticResource SDWaitingAmount}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingAmount}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="1" Name="radButtonWaitingAmountLT30" Tag="{StaticResource SDWaitingAmountLT30}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingAmountLT30}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="2" Name="radButtonWaitingAmountLT60" Tag="{StaticResource SDWaitingAmountLT60}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingAmountLT60}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="2" Name="radButtonWaitingAmountLT90" Tag="{StaticResource SDWaitingAmountLT90}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingAmountLT90}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="3" Name="radButtonWaitingAmountGT90" Tag="{StaticResource SDWaitingAmountGT90}" Margin="6,0,0,0" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingAmountGT90}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <StackPanel Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Background="Black" Margin="6">

     

     

     

    <TextBlock Foreground="White" Text="{StaticResource Private}" HorizontalAlignment="Center" />

     

     

     

    </StackPanel>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="5" Name="radButtonWaitingPayment" Tag="{StaticResource SDWaitingAmount}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingPayment}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="5" Name="radButtonWaitingPaymentLT30" Tag="{StaticResource SDWaitingAmountLT30}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingPaymentLT30}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="6" Name="radButtonWaitingPaymentLT60" Tag="{StaticResource SDWaitingAmountLT60}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingPaymentLT60}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="6" Name="radButtonWaitingPaymentLT90" Tag="{StaticResource SDWaitingAmountLT90}" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingPaymentLT90}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="7" Name="radButtonWaitingPaymentGT90" Tag="{StaticResource SDWaitingAmountGT90}" Margin="6,0,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource WaitingPaymentGT90}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    </Grid>

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

     

    <telerik:RadOutlookBarItem Header="{StaticResource Reports}" FontWeight="Bold" Icon="Resources/Reports_24x24.png" SmallIcon="Resources/Reports_16x16.png" Tag="Reports">

     

     

     

    <Grid Height="Auto" Width="Auto">

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

    <telerik:RadButton Grid.Row="0" Grid.Column="0" Margin="6,6,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource Report1}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Row="0" Grid.Column="1" Margin="6,6,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource Report2}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Row="1" Grid.Column="0" Margin="6,0,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource Report3}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

     

    </Grid>

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

     

    <telerik:RadOutlookBarItem Header="{StaticResource Files}" FontWeight="Bold" Icon="Resources/Files_24x24.png" SmallIcon="Resources/Files_16x16.png" Tag="Files">

     

     

     

    <telerik:RadTreeView Name="radTreeViewFiles" Margin="6" IsLineEnabled="True" IsOptionElementsEnabled="True" ItemsOptionListType="Default" SelectionMode="Single">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="{StaticResource FilesToSend}">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-01">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 29" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-02">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="{StaticResource ConfirmFiles}">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-01">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 29" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-02">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="{StaticResource ErrorsFiles}">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-01">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 29" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-02">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="{StaticResource SAFiles}">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-01">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 29" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="2011-02">

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 1" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 8" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 15" />

     

     

     

    <telerik:RadTreeViewItem IsExpanded="True" Header="lundi le 22" />

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeViewItem>

     

     

     

    </telerik:RadTreeView>

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

     

    <telerik:RadOutlookBarItem Header="{StaticResource SystemParameters}" FontWeight="Bold" Icon="Resources/Configuration_24x24.png" SmallIcon="Resources/Configuration_16x16.png" Tag="Configuration">

     

     

     

    <Grid Height="Auto" Width="Auto">

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="0" Margin="6,6,0,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource SystemParams}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="1" Grid.Row="0" Margin="6,6,6,6" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource UserParams}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

    <telerik:RadButton Grid.Column="0" Grid.Row="1" Margin="6,0,0,0" Click="radButton_Click">

     

     

     

    <TextBlock Text="{StaticResource Logging}" TextWrapping="Wrap" Margin="6"></TextBlock>

     

     

     

    </telerik:RadButton>

     

     

     

     

    </Grid>

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

     

    <telerik:RadOutlookBarItem Name="radOutlookBarItemQuit" Header="{StaticResource Quit}" FontWeight="Bold" Icon="Resources/Exit_24x24.png" SmallIcon="Resources/Exit_16x16.png" Tag="Exit">

     

     

     

    <TextBlock Text="{StaticResource QuitDescription}" FontWeight="Bold" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10" TextWrapping="Wrap" />

     

     

     

    </telerik:RadOutlookBarItem>

     

     

     

    </telerik:RadOutlookBar>

     

     

     

     

    <telerik:RadDockPanel Grid.Column="1" Grid.Row="1" Name="radDockPanelWorkingSpace" Style="{DynamicResource REF-RadDockPanelStyle-Dark}" Margin="5,10,10,10">

     

     

     

    <telerik:RadDockPanel.Effect>

     

     

     

    <DropShadowEffect />

     

     

     

    </telerik:RadDockPanel.Effect>

     

     

     

    <telerik:RadTabControl Name="radTabControlDepartments" Margin="6" BackgroundVisibility="Collapsed" SelectionChanged="radTabControlDepartments_SelectionChanged">

     

     

     

    <telerik:RadTabItem Header="{StaticResource All}" />

     

     

     

    </telerik:RadTabControl>

     

     

     

    </telerik:RadDockPanel>

     

     

     

    <telerik:RadDockPanel Grid.Row="2" Grid.ColumnSpan="2" Style="{DynamicResource REF-RadDockPanelStyle-Dark}" Margin="10,0,10,10">

     

     

     

    <telerik:RadDockPanel.Effect>

     

     

     

    <DropShadowEffect />

     

     

     

    </telerik:RadDockPanel.Effect>

     

     

     

     

    <Grid>

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="250"/>

     

     

     

    <ColumnDefinition Width="15"/>

     

     

     

    <ColumnDefinition Width="150"/>

     

     

     

    <ColumnDefinition Width="15"/>

     

     

     

    <ColumnDefinition Width="*"/>

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

     

    <TextBlock Name="SBPanel1" Grid.Column="0" VerticalAlignment="Center" FontWeight="Bold" Margin="10,0,10,0" />

     

     

     

    <TextBlock Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">|</TextBlock>

     

     

     

    <TextBlock Name="SBPanel2" Grid.Column="2" VerticalAlignment="Center" FontWeight="Bold" Margin="10,0,10,0" />

     

     

     

    <TextBlock Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">|</TextBlock>

     

     

     

    <TextBlock Name="SBPanel3" Grid.Column="4" VerticalAlignment="Center" FontWeight="Bold" Margin="10,0,10,0" />

     

     

     

    </Grid>

     

     

     

    </telerik:RadDockPanel>

     

     

     

    </Grid>

     

    </

     

    telerik:RadWindow>

     

  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 06 Oct 2011 Link to this post

    Hello Oliver,

    I believe this is happening because of a problem in both RadWindow and Window. Try this: use Window and set its SizeToContent=System.Windows.SizeToContent.WidthAndHeight and if I am right you will get the same behavior. In RadWindow this property is the default one and that is causing the problem. Try setting
    SizeToContent=false and this should fix your problem.

    All the best,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 06 Oct 2011 Link to this post

    You got it, thank's alot ;)
  5. LittleDragon
    LittleDragon avatar
    18 posts
    Member since:
    Apr 2013

    Posted 24 Apr 2013 Link to this post

    got the same problem and solve it,,,,,,,,
Back to Top