or
if (((System.Windows.Controls.Canvas)this.Parent).Parent is Window) { Window thisWindow = ((System.Windows.Controls.Canvas)this.Parent).Parent as Window; thisWindow.ShowInTaskbar = true; thisWindow.Title = this.Header.ToString(); this.Icon = thisWindow.Icon; } Uri iconUri = new Uri("pack://application:,,,/WPFIcon2.ico", UriKind.RelativeOrAbsolute); this.Icon = BitmapFrame.Create(iconUri);

<UserControl x:Class="CalendarsContainer" <Grid x:Name="ScheduleGrid"> <Grid.DataContext> <viewModels:CalendarViewModel /> </Grid.DataContext> <telerik:RadComboBox Grid.Row="0" SelectedValue="{Binding TaskFilter, Mode=TwoWay}"/> <telerik:RadScheduleView Grid.Row="1" AppointmentsSource="{Binding Appointments}"> <telerik:RadScheduleView.ViewDefinitions> <telerik:MonthViewDefinition AppointmentFilter="{Binding AppointmentFilter}" /> </telerik:RadScheduleView.ViewDefinitions> </telerik:RadScheduleView> </Grid></UserControl><UserControl x:Class="CalendarsContainer" <Grid x:Name="ScheduleGrid"> <telerik:RadComboBox Grid.Row="0" SelectedValue="{Binding TaskFilter, Mode=TwoWay}"/> <telerik:RadScheduleView Grid.Row="1" AppointmentsSource="{Binding Appointments}"> <telerik:RadScheduleView.ViewDefinitions> <telerik:MonthViewDefinition AppointmentFilter="{Binding AppointmentFilter}" /> </telerik:RadScheduleView.ViewDefinitions> </telerik:RadScheduleView> </Grid></UserControl>public CalendarsContainer(){ InitializeComponent(); ScheduleGrid.DataContext = new CalendarViewModel();}InitializeComponent(); LocalizationManager.DefaultCulture = new System.Globalization.CultureInfo("de");
But it does not work...
<ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles/GridViewRowStyle.xaml"/> </ResourceDictionary.MergedDictionaries></ResourceDictionary><telerik:RadGridView x:Name="statusGrid" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ItemsSource="{Binding Status}" IsReadOnly="True" RowStyle="{DynamicResource GridViewRowStyle}">