or
Hi everyone,
I’m using the 2011 Q2 WPF package.
Is it possible to remove the background to create a very simple style.
Like the styles from the new Telerik gauges?
Thanks!
greetings,
Christian
private void RefeshAppointmentSettings(){// ... do some stuff CustomAppointment previous = null; var i = 0; foreach (var custSorted in toSort) { if (i > 0) { if (previous != null) { previous.End = custSorted.Start.AddMinutes(-1); } } previous = custSorted; previous.End = previous.Start.Date.AddDays(1).AddMinutes(-1); i++; } Appointments.AddRange(toSort);// ... do some stuff}private void SwitchTimeSpecialTimeTLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e){ var scheduleViewModel = DataContext as ScheduleViewModel; if (scheduleViewModel != null) { scheduleViewModel.RefeshAppointmentSettings(); _radSchedView.BeginEdit(); var arr = new CustomAppointment[scheduleViewModel.Appointments.Count]; scheduleViewModel.Appointments.CopyTo(arr, 0); scheduleViewModel.Appointments.Clear(); for(int i = 0;i<arr.Length;i++) { scheduleViewModel.Appointments.Add(arr[i]); } _radSchedView.Commit(); }}private string SaveLayoutAsString(RadDocking instance) { MemoryStream stream = new MemoryStream(); instance.SaveLayout(stream,true); stream.Seek(0, SeekOrigin.Begin); StreamReader reader = new StreamReader(stream); return reader.ReadToEnd(); } private void LoadLayoutFromString(string xml, RadDocking instance) { using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(xml))) { stream.Seek(0, SeekOrigin.Begin); instance.LoadLayout(stream,true); } }GroupDescriptor phaseDescriptor = new GroupDescriptor();phaseDescriptor.Member = "PhaseName";this.grdScope.GroupDescriptors.Insert(0, phaseDescriptor);
<telerik:RadScheduleView x:Name="_scheduleView" Margin="2,0,0,0" RenderTransformOrigin="0.5,0.5" SelectedAppointment="{Binding SelectedStreamingEpisodeAppointment, Mode=TwoWay}" AppointmentsSource="{Binding StreamingEpisodeAppointments}" telerik:StyleManager.Theme="Windows7" SnapAppointments="True" MinAppointmentWidth="60" ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}"> <telerik:RadScheduleView.RenderTransform> <TransformGroup> <ScaleTransform /> <SkewTransform /> <RotateTransform /> <TranslateTransform /> </TransformGroup> </telerik:RadScheduleView.RenderTransform> <telerik:RadScheduleView.ViewDefinitions> <telerik:TimelineViewDefinition MinorTickLength="1day" MajorTickLength="1day" TimerulerGroupStringFormat="{}{0:MM/dd/yyyy}" MinTimeRulerExtent="1" MaxTimeRulerExtent="Infinity" StretchAppointments="True" StretchGroupHeaders="True" /> </telerik:RadScheduleView.ViewDefinitions> <telerik:RadScheduleView.GroupDescriptionsSource> <telerik:GroupDescriptionCollection> <telerik:DateGroupDescription/> </telerik:GroupDescriptionCollection> </telerik:RadScheduleView.GroupDescriptionsSource> </telerik:RadScheduleView><DataTemplate x:Key="AppointmentToolTipTemplate"> <Grid MaxWidth="300"> <Grid.ColumnDefinitions> <ColumnDefinition Width="43" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <TextBlock Text="{Binding Subject}" Grid.ColumnSpan="2" TextWrapping="Wrap" Margin="5 8 4 3" FontWeight="Bold" /> <Image Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5 5 0 0" Source="/Fox.Fbc.Vps.PL.Resources;component/Images/AcrossTime.png" Width="28" Height="29" /> <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" Margin="0 5 0 0"> <StackPanel Orientation="Horizontal" Margin="0 0 0 0"> <TextBlock Text="{Binding Start, StringFormat='hh:mm tt'}" TextWrapping="Wrap" FontSize="10" /> <TextBlock Text=" - " FontSize="10" /> <TextBlock Text="{Binding End, StringFormat='hh:mm tt'}" TextWrapping="Wrap" FontSize="10" /> </StackPanel> <TextBlock Text="{Binding Start, StringFormat='dddd dd MMM yyyy'}" Margin="0 3" FontSize="10" /> </StackPanel> <TextBlock Grid.Row="2" Grid.ColumnSpan="2" Text="{Binding Body}" Margin="5 3 5 8" TextWrapping="Wrap" /> </Grid> </DataTemplate>