Hello,
I have a problem trying to reproduce the Radwindow as main window KB (https://www.telerik.com/support/kb/wpf/window/details/how-to-use-radwindow-as-main-window).
I'm using VB.NET with 2017.3.913.40 telerik components. I'm also using noXaml binaries.
When i run the application, nothing is visible.
I've tried todo this alos MainWindow inherits radwindow, but it's not better.
If i remove the onStartup code and set the application startupuri to MainWindow.xaml, i have the window visible, but there is another aweful window visible behind.
This problem will drive me crazy !
Thanks in advance for your answers.
Application.xaml
<Application x:Class="TelerikWpfApp13.Application" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:TelerikWpfApp13"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/System.Windows.xaml" /> <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.xaml" /> <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Navigation.xaml" /> <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Docking.xaml" /> </ResourceDictionary.MergedDictionaries> <Style TargetType="local:MainWindow" BasedOn="{StaticResource RadWindowStyle}" /> </ResourceDictionary> </Application.Resources></Application>
Application.xaml.vb
Class Application Inherits System.Windows.Application ' Application-level events, such as Startup, Exit, and DispatcherUnhandledException ' can be handled in this file. Protected Overrides Sub OnStartup(e As StartupEventArgs) Call New MainWindow().Show() MyBase.OnStartup(e) End SubEnd Class
MainWindow.xaml
<telerik:RadWindow x:Class="MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Header="MainWindow" Height="300" Width="300"> <Grid> </Grid></telerik:RadWindow>
MainWindow.xaml.vb
Public Class MainWindowEnd Class
