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
ResizeMode="CanResizeWithGrip"on the window.
Dear all,
I am in a very bad situation ,
coz , I have started a wpf project ...all is well except in the case of radgrid view in wpf ...
I am expecting all the functionality of windows radgridview in wpf. like adding rows etc.
is there any way to add the windows rad control to wpf ?.
If anybody know a solution please share it with me............
Thanks and Regards,
Firoz
Qatar
private ObservableCollection<IRoleUtilisateur> _userRole; |
public ObservableCollection<IRoleUtilisateur> ListUserRole |
{ |
get { return _userRole; } |
set |
{ |
_userRole = value; |
OnPropertyChanged("ListUserRole"); |
} |
} |
private int _rang; |
public int Rang |
{ |
get |
{ |
return _rang; |
} |
set |
{ |
_rang = value; |
} |
} |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="{Loc rank}" DataMemberBinding="{Binding Rang}" /> |
</telerik:RadGridView.Columns> |