or
<telerik:RadTabControl x:Name="tabBottomTabPanel" Grid.Row="2" ItemsSource="{Binding BottomTabs}" SelectedItem="{Binding SelectedBottomTab}"> </telerik:RadTabControl>private ObservableCollection<RadTabItem> _BottomTabs; public ObservableCollection<RadTabItem> BottomTabs { get { return _BottomTabs; } set { if (_BottomTabs != value) { _BottomTabs = value; RaisePropertyChanged("BottomTabs"); } } } private RadTabItem _SelectedBottomTab = null; public RadTabItem SelectedBottomTab { get { return _SelectedBottomTab; } set { if (_SelectedBottomTab != value) { _SelectedBottomTab = value; RaisePropertyChanged("SelectedBottomTab"); } } }private void setupBottomTabs() { RadTabItem tabA = new RadTabItem { Header = "Tab A" }; RadTabItem tabB = new RadTabItem { Header = "Tab B" }; RadTabItem tabC = new RadTabItem { Header = "Tab C" }; BottomTabs = new ObservableCollection<RadTabItem>(); BottomTabs.Add(tabA); BottomTabs.Add(tabB); BottomTabs.Add(tabC); } 
using Telerik.Windows.Controls.ScheduleView; using Telerik.Windows.DragDrop.Behaviors; namespace DragDrop { public class AppointmentConverter : DataConverter { /// <summary> /// Returns a list of all formats that the data in this data object can be converted to. /// </summary> public override string[] GetConvertToFormats() { string assemblyName = typeof(Appointment).AssemblyQualifiedName; return new string[] { assemblyName }; } /// <summary> /// Retrieves a data object in a specified format; the data format is specified by a string. /// </summary> public override object ConvertTo(object data, string format) { if (DataObjectHelper.GetDataPresent(data, typeof(ScheduleViewDragDropPayload), false)) { ScheduleViewDragDropPayload payload = (ScheduleViewDragDropPayload)DataObjectHelper.GetData(data, typeof(ScheduleViewDragDropPayload), false); if (payload != null) { return payload.DraggedAppointments; } } return null; } } }
I cannot drag a CustomAppointment (as coded in the Telerik Demo)
back to a list box from a schedule view. No exception or error,
it just simply doesn't let me (cursor icon changes to a 'not
permitted' icon).
I want the menus of my RADMenu to appear instantly.
No scrolling or fading in - the menus should just pop up instantly when I click on a RadMenuItem.
What is the most simple way to do this?
In the following piece of code I'm loading some RTF text into a telerik RadRichTextBox. Does anyone know how to set the text control to wrap the text to the box width? Take into account that the sample code is part of a DataTemplate in the resources section of a window, therefore variable _reportRTFBox is not available in window code behind
<Grid><Grid.RowDefinitions> <RowDefinition/> <RowDefinition /></Grid.RowDefinitions><telerikProvider:RtfDataProvider Grid.Row="1" Rtf="{Binding ReportToDistributeRTF}" RichTextBox="{Binding ElementName=_reportRTFBox}" /><telerik:RadRichTextBox Grid.Row="0" x:Name="_reportRTFBox" MaxHeight="200" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" IsReadOnly="True"/>
Many thanks,
Juanjo

StyleManager.ApplicationTheme = new MetroTheme();var findResource = FindResource("BaseColor");if (findResource != null) MetroColors.PaletteInstance.AccentColor = (Color)findResource;