Where to find the new SplashScreen control

1 Answer 183 Views
SplashScreen
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Patgat asked on 18 Sep 2022, 09:32 AM

Dear all,

I can't find the new SplahSceen control for winforms in the R3 2022  new release. Neither in Telerik specific menu, nor in the standard VS2022 Add Element.

Thanks for your help

Regards

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 20 Sep 2022, 10:43 AM

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/.

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
commented on 20 Sep 2022, 04:46 PM | edited

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

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
commented on 20 Sep 2022, 04:49 PM | edited

.

Dinko | Tech Support Engineer
Telerik team
commented on 22 Sep 2022, 09:05 AM | edited

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.

 

 

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
commented on 24 Sep 2022, 01:13 PM

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

Dinko | Tech Support Engineer
Telerik team
commented on 26 Sep 2022, 10:46 AM

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.

 

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
commented on 26 Sep 2022, 01:57 PM

Hello Dinko,

Excellent.

This is just what I was looking for (not daring to modify the stack of Controls).

Many thanks

Patrick

Dinko | Tech Support Engineer
Telerik team
commented on 27 Sep 2022, 08:39 AM

I am happy to hear that the suggested approach works for you. If you have any other questions, you can open a new thread and we will be happy to help.
Tags
SplashScreen
Asked by
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or