3 Answers, 1 is accepted
Make sure that you haven't set any sizes to the root element of your control. Please check that and if the problem persists, feel free to send us your code so we can make a further analysis.
Kind regards,
Hristo Borisov
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
<UserControl x:Class="Publisoft.UI.ManConta"
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" mc:Ignorable="d" xmlns:input="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls.Input" xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" xmlns:Publisoft_UI="clr-namespace:Publisoft.UI"
Loaded="Loaded"
>
<Grid x:Name="LayoutRoot" Background="White">
<TextBlock Height="16" x:Name="txbReduzido" Width="62.759" Text="Reduzido" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
<TextBlock Height="16" x:Name="txbClassificacao" Width="96.217" Text="Classificação" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="112,8,0,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
<TextBox Height="Auto" x:Name="txtClassificacao" Text="" TextWrapping="Wrap" TabIndex="2" Margin="112,24,112,0" VerticalAlignment="Top" Width="Auto" LostFocus="txtClassificacao_LostFocus" MaxLength="30"/>
<input:NumericUpDown Width="100" x:Name="nudReduzido" TabIndex="1" Maximum="999999" Height="24" HorizontalAlignment="Left" Margin="8,24,0,0" VerticalAlignment="Top"/>
<TextBlock Height="16" Width="29.896" Text="Tipo" TextWrapping="Wrap" x:Name="txbTipo" HorizontalAlignment="Right" Margin="0,8,78.104,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
<telerikInput:RadComboBox IsReadOnly="True" IsEditable="True" Height="Auto" x:Name="cboTipo" TabIndex="3" Margin="316,24,8,0" VerticalAlignment="Top" Width="100" SelectedIndex="0" HorizontalAlignment="Right">
<telerikInput:RadComboBoxItem Content="Título"/>
<telerikInput:RadComboBoxItem Content="Analítica"/>
</telerikInput:RadComboBox>
<TextBlock x:Name="txbDescricao" Width="96.217" Text="Descrição" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="8,52,0,65" d:LayoutOverrides="Width" VerticalAlignment="Top"/>
<TextBox Height="Auto" x:Name="txtDescricao" Text="" TextWrapping="Wrap" TabIndex="4" Margin="8,68,112,0" d:LayoutOverrides="Height" VerticalAlignment="Top" MaxLength="100"/>
<Publisoft_UI:ControlNavegatorPersist HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" TabIndex="10" x:Name="Nav"/>
<CheckBox HorizontalAlignment="Right" Margin="0,72,9,44" VerticalAlignment="Top" Content="Conta Auxiliar" x:Name="chkContaAuxiliar" TabIndex="5"/>
</Grid>
</UserControl>
call of the window:
public static void CreateForm(UserControl userControl)
{
RadWindow form = new RadWindow();
form.Content = userControl;
form.Header = title;
form.VerticalAlignment = VerticalAlignment.Center;
form.HorizontalAlignment = HorizontalAlignment.Center;
form.BorderThickness = new Thickness(1, 2, 1, 1);
form.Background = new SolidColorBrush(Colors.White);
form.CloseMode = CloseMode.Close;
form.ShowDialog();
}
We have resolved this bug several days ago, so you can expect it with our SP release tomorrow. Sorry for the inconvenience and look forward to receiving any feedback.
Greetings,
Hristo Borisov
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.