1 Answer, 1 is accepted
Hi Patrick,
Thank you for your interest in our RadSplashScreen.
The control is not available in the VS ToolBox or as a new item. You need to use the RadSplashScreen programmatically. Using the RadSplashScreenManager.Show() method, you can show the control over your control, Form, etc. You can start with the Getting Started article on the control to get familiar with it.
Give this article a try and let me know if further assistance is required.
Regards,
Dinko
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thanks Dinko,
this was not totally obvious (at least for me) from the Getting Started.
After having tested it, I have two questions :
- is it possible to access the controls embedded in the RadSplashScreen? I would in particular modify the font size of the Text (the Content) and possibly add a background color behind the picture
- is it possible to add another control to the RadSplashScreenControl like a TextBoxControl (to enter a password before showing the progressbar) ?
Regards
Patrick
The RadSplashScreenManager class exposes the FormLoad event which you can use to get the RadSplashScreenControl inside. Then using its SplashElement property you could access the default elements inside the form and customize them per your needs.
RadSplashScreenManager.FormLoad += RadSplashScreenManager_FormLoad;
private void RadSplashScreenManager_FormLoad(SplashFormEventArgs e)
{
var textPrimitive = e.Form.Controls[0] as RadSplashScreenControl;
textPrimitive.SplashElement.TextContentElement.Font = new Font(textPrimitive.SplashElement.TextContentElement.Font.FontFamily,55);
}
Additionally, you can replace the default content of the control with your own. You can check the Customize Splash Content help article for further information.
Hello Dinko,
Thanks for explaining the way to modify the font in the text control part of RadSplashScreen.
Regarding my second question, can we simply add a TextBox to the RadSplashScreen, I clearly understand that it is possible to replace the default content by a new one.
However, this essentially means recreating the splashScreenControl.
Can someone explain me the benefits of this control in that case ?
What I was looking for is something slightly but easily customizable.
Thanks for your answer
Best
Patrick
The RadSplashScreen is fully customizable. You could add additional elements to its default structure or create your own. To add a simple control you could get the main StackLayoutElement holding the four sections of the control. You can check the Structure help article for further information. Then you can insert your element in the desired position depending on your requirement.
private void RadSplashScreenManager_FormLoad(SplashFormEventArgs e)
{
var textPrimitive = e.Form.Controls[0] as RadSplashScreenControl;
RadTextBoxElement myTextBox = new RadTextBoxElement();
myTextBox.Size = new Size(50,textPrimitive.SplashElement.TextContentElement.Size.Height);
textPrimitive.SplashElement.Children[0].Children.Insert(2, myTextBox);
}
Here is the result on my side.
Hello Dinko,
Excellent.
This is just what I was looking for (not daring to modify the stack of Controls).
Many thanks
Patrick