using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using WpfApplication1;
namespace MDIWindows
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
Example window;
public Window1( )
{
InitializeComponent();
}
private void OnOpenClick( object sender, RoutedEventArgs e )
{
if( window == null )
{
window = new Example();
window.Width = 200;
window.Height = 200;
window.Owner = this;
}
window.Show();
}
private void OnBringToFrontClick( object sender, RoutedEventArgs e )
{
if( window == null )
window.BringToFront();
}
}
}
using System;
using System.Windows;
using System.Windows.Media;
using Telerik.Windows.Controls;
using WindowStartupLocation = System.Windows.WindowStartupLocation;
using WindowState = System.Windows.WindowState;
namespace WpfApplication1
{
public partial class Example : Telerik.Windows.Controls.RadWindow
{
public Example( )
{
InitializeComponent();
}
}
}
Hi.
When changing visual style not the first time, but the second time, the application always chrashes. I change the styles like this:
this
.RadRibbonBar.SetValue(StyleManager.ThemeProperty, new Windows7Theme());
this.RadPaneGroup.SetValue(StyleManager.ThemeProperty, new Windows7Theme());
this.RetrivalDataGrid.SetValue(StyleManager.ThemeProperty, new Windows7Theme());
It does not matter which style I change to. It always works the first time and always chrases the second time.
The application error message is like this:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in PresentationCore.dll
Additional information: Specified argument was out of the range of valid values.
Anyone know what this problem is?
regards
Kjetil