hi!
I have a XBAP project for web, and I have a Page that shows a telerik components. I have a RadWindow as a usercontrol in this way:
My problem is when I try to show this window in my main program by clicking a button, code is like this:
frmDialogo is never shown, not even using ShowDialog(). I try to test original RadWindow instance like this:
but nothing happen, but when using RadWindow.Alert(new DialogParameters() ... ); Works fine!
Thanks for your help
I have a XBAP project for web, and I have a Page that shows a telerik components. I have a RadWindow as a usercontrol in this way:
<
telerikNavigation:RadWindow
x:Class
=
"App_ControlLibrary.frmDialogoEntradaDatos"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikNavigation
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:lr
=
"clr-namespace:App_ControlLibrary"
telerik:StyleManager.Theme
=
"Windows7"
Height
=
"181"
Width
=
"410"
BorderBackground
=
"#FF4B72B1"
BorderBrush
=
"#FF0C0F21"
ResizeMode
=
"NoResize"
Header
=
"{x:Static lr:resxDialogoEntradaDatos.titDialogo}"
>
<
Grid
>
<
Grid.Background
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF80A1E4"
Offset
=
"0"
/>
<
GradientStop
Color
=
"White"
Offset
=
"0.5"
/>
<
GradientStop
Color
=
"#FF5C86DC"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFA8C5FF"
Offset
=
"0.139"
/>
<
GradientStop
Color
=
"#FFA6C3FF"
Offset
=
"0.787"
/>
</
LinearGradientBrush
>
</
Grid.Background
>
<
StackPanel
Width
=
"Auto"
Height
=
"Auto"
Orientation
=
"Horizontal"
>
<
StackPanel
Width
=
"64"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
>
<
Image
Source
=
"Imagenes/Interrogante.png"
Width
=
"50"
Height
=
"50"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
<
StackPanel
Width
=
"328"
Height
=
"Auto"
HorizontalAlignment
=
"Right"
>
<
Grid
Height
=
"41"
>
<
TextBlock
x:Name
=
"lbltitulo"
Text
=
"Hola Mundo"
Margin
=
"0"
Height
=
"Auto"
Width
=
"Auto"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextWrapping
=
"Wrap"
FontFamily
=
"Tahoma"
FontSize
=
"13.333"
Foreground
=
"Black"
/>
</
Grid
>
<
Grid
x:Name
=
"pnlTexto"
Height
=
"49"
Visibility
=
"Visible"
>
<
TextBox
x:Name
=
"txtDato"
Style
=
"{StaticResource Estilo1TextBox}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"27"
Width
=
"313"
MaxLines
=
"1"
>
<
TextBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
TextBox.Effect
>
</
TextBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlPassword"
Height
=
"49"
Visibility
=
"Hidden"
>
<
PasswordBox
x:Name
=
"txtPassword"
Style
=
"{StaticResource Estilo1PasswordBox}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"27"
Width
=
"313"
>
<
PasswordBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
PasswordBox.Effect
>
</
PasswordBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlLista"
Height
=
"49"
Visibility
=
"Hidden"
>
<
telerik:RadComboBox
x:Name
=
"cbxLista"
IsSynchronizedWithCurrentItem
=
"True"
EmptyText
=
"{x:Static lr:resxDialogoEntradaDatos.msjSeleccione}"
IsEditable
=
"False"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"27"
Width
=
"317"
>
<
telerik:RadComboBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
telerik:RadComboBox.Effect
>
</
telerik:RadComboBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlNumero"
Height
=
"49"
Visibility
=
"Hidden"
>
<
telerik:RadMaskedTextBox
x:Name
=
"fmtDato"
Mask
=
"n0"
MaskType
=
"Numeric"
HorizontalContentAlignment
=
"Right"
Height
=
"27"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Width
=
"180"
>
<
telerik:RadMaskedTextBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
telerik:RadMaskedTextBox.Effect
>
</
telerik:RadMaskedTextBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlFecha"
Height
=
"59"
Visibility
=
"Hidden"
>
<
telerik:RadDateTimePicker
x:Name
=
"dtpFecha"
InputMode
=
"DatePicker"
DisplayFormat
=
"Short"
DateTimeWatermarkContent
=
"{x:Static lr:resxDialogoEntradaDatos.msjIngreseFecha}"
Height
=
"27"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
>
<
telerik:RadDateTimePicker.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
telerik:RadDateTimePicker.Effect
>
</
telerik:RadDateTimePicker
>
</
Grid
>
<
Grid
Height
=
"51"
>
<
Button
x:Name
=
"btnAceptar"
Content
=
"{x:Static lr:resxDialogoEntradaDatos.btnAceptar}"
BorderBrush
=
"Black"
Foreground
=
"White"
Height
=
"29"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Width
=
"99.696"
Click
=
"btnAceptar_Click"
>
<
Button.Background
>
<
LinearGradientBrush
EndPoint
=
"0,1"
StartPoint
=
"0,0"
>
<
GradientStop
Color
=
"#FFB9DEFF"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FF3B9CF5"
Offset
=
"0.5"
/>
<
GradientStop
Color
=
"#FF0077E5"
Offset
=
"0.539"
/>
<
GradientStop
Color
=
"#FF366FA5"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Button.Background
>
</
Button
>
<
Path
Data
=
"M1,4 L379,5"
Fill
=
"#FF6289BC"
Height
=
"2"
Margin
=
"0,4,-1,0"
Stretch
=
"Fill"
Stroke
=
"Black"
VerticalAlignment
=
"Top"
/>
</
Grid
>
</
StackPanel
>
</
StackPanel
>
</
Grid
>
</
telerikNavigation:RadWindow
>
My problem is when I try to show this window in my main program by clicking a button, code is like this:
frmDialogoEntradaDatos frmDialogo =
new
frmDialogoEntradaDatos();
frmDialogo.Mensaje = resxUsuarios.titSolicitudPassword;
frmDialogo.TipoDialogo = frmDialogoEntradaDatos.Tipo.TEXTO_PASSWORD;
frmDialogo.OnClose +=
new
CloseEventHandler(EstablecerContraseña);
frmDialogo.Show();
frmDialogo is never shown, not even using ShowDialog(). I try to test original RadWindow instance like this:
RadWindow frmDialogo =
new
RadWindow();
frmDialogo.Width = 300;
frmDialogo.Height = 180;
frmDialogo.ShowDialog();
but nothing happen, but when using RadWindow.Alert(new DialogParameters() ... ); Works fine!
Thanks for your help