public class GWCTileSource : Microsoft.Maps.MapControl.TileSource { private const string TilePath = @"{GWC_ADDRESS}/service/gmaps?layers={L}&zoom={Z}&x={X}&y={Y}"; private string gwc_address; private string layername; public GWCTileSource() : base() { } public GWCTileSource(string gwc_address, string layername) : base() { this.gwc_address = gwc_address; this.layername = layername; } public override Uri GetUri(int x, int y, int zoom) { string url = TilePath; url = url.Replace("{GWC_ADDRESS}", gwc_address); url = url.Replace("{L}", layername); url = url.Replace("{Z}", zoom.ToString()); url = url.Replace("{X}", x.ToString()); url = url.Replace("{Y}", y.ToString()); return new Uri(url); } }We are currently developing a program using RadScheduleView. In our model any appointment can only be scheduled during user's working hours (which is user configurable).
Working hours can change from one day to another, and can be changed during program execution. We want it to be displayed behind other appointments (that is, in the background of RadScheduleView).
Is there an way to configure RadSchedule view background color in a cell independent way? i.e Working hours being displayed as green colored background cells while non working hours being displayed as gray colored cells, for example?
Thank you in advance,
Leandro
public class RibbonElement{ public string Text { get; set; } public bool IsEnabled { get; set; }}public class Tab : RibbonElement{ public ObservableCollection<Group> Groups { get; set; }}public class Group : RibbonElement{ public ObservableCollection<Button> Buttons { get; set; }}public class Button : RibbonElement{} <DataTemplate x:Key="ButtonTemplate"> <t:RadRibbonButton Text='{Binding Text}' IsEnabled='{Binding IsEnabled}' /> </DataTemplate> <HierarchicalDataTemplate x:Key="GroupTemplate" ItemsSource='{Binding Buttons}' ItemTemplate='{StaticResource ButtonTemplate}'> <TextBlock Text='{Binding Text}' /> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="TabTemplate" ItemsSource='{Binding Groups}' ItemTemplate='{StaticResource GroupTemplate}'> <TextBlock Text='{Binding Text}' /> </HierarchicalDataTemplate></Window.Resources><t:RadRibbonView ItemsSource='{Binding Tabs}' ItemTemplate='{StaticResource TabTemplate}' ApplicationButtonVisibility="Hidden" />
I can't find how to make a 3D horizontal bar chart. Is there a series definition to do this? Or does anyone have instructions on how to make a Custom 3D model that can do this?
I'm using the document at
http://www.telerik.com/help/wpf/radchart-getting-started-create-data-bound-chart.html
to build a test application. I'm also using the code behind, so a piece of my code is:
{
[...]
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.LegendLabel = "Product Sales";
Bar3DSeriesDefinition def = new Bar3DSeriesDefinition();
seriesMapping.SeriesDefinition = new Bar3DSeriesDefinition();//new HorizontalBarSeriesDefinition();//new SplineSeriesDefinition();
seriesMapping.ItemMappings.Add(new ItemMapping("Month", DataPointMember.XValue));
seriesMapping.ItemMappings.Add(new ItemMapping("Quantity", DataPointMember.YValue));
seriesMapping.ItemMappings.Add(new ItemMapping("MonthName", DataPointMember.XCategory));
radChart1.SeriesMappings.Add(seriesMapping);
radChart1.ItemsSource = this.CreateData();
}
public class ProductSales
{
public ProductSales(int quantity, int month, string monthName)
{
this.Quantity = quantity;
this.Month = month;
this.MonthName = monthName;
}
public int Quantity
{
get;
set;
}
public int Month
{
get;
set;
}
public string MonthName
{
get;
set;
}
}
private List<ProductSales> CreateData()
{
List<ProductSales> persons = new List<ProductSales>();
persons.Add(new ProductSales(154, 1, "January"));
persons.Add(new ProductSales(138, 2, "February"));
persons.Add(new ProductSales(143, 3, "March"));
persons.Add(new ProductSales(120, 4, "April"));
persons.Add(new ProductSales(135, 5, "May"));
persons.Add(new ProductSales(125, 6, "June"));
persons.Add(new ProductSales(179, 7, "July"));
persons.Add(new ProductSales(170, 8, "August"));
persons.Add(new ProductSales(198, 9, "September"));
persons.Add(new ProductSales(187, 10, "October"));
persons.Add(new ProductSales(193, 11, "November"));
persons.Add(new ProductSales(212, 12, "December"));
return persons;
}
thanks in advance
<Style TargetType="telerik:GridViewCell"> <Setter Property="ToolTip" Value="{Binding Value,RelativeSource={RelativeSource Mode=Self}}" /></Style><DataTemplate x:Key="GridViewToolTipTemplate"> <TextBlock Text="{Binding Description, Converter={StaticResource LineBreaksConverter}}" TextWrapping="Wrap" MaxWidth="400" /></DataTemplate>