or
<
Application
x:Class
=
"Mantis.Client.App"
xmlns:resources
=
"clr-namespace:Mantis.Client.Resources"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
Application.Resources
>
<
ResourceDictionary
>
<!--These theme resources are here as defaults-->
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"/Themes/VisualStudio/System.Windows.xaml"
/>
<
ResourceDictionary
Source
=
"/Themes/VisualStudio/Telerik.Windows.Controls.xaml"
/>
<
ResourceDictionary
Source
=
"/Themes/VisualStudio/Telerik.Windows.Controls.Data.xaml"
/>
<
ResourceDictionary
Source
=
"/Themes/VisualStudio/Telerik.Windows.Controls.Docking.xaml"
/>
<
ResourceDictionary
Source
=
"/Themes/VisualStudio/Telerik.Windows.Controls.Input.xaml"
/>
<
ResourceDictionary
Source
=
"/Themes/VisualStudio/Telerik.Windows.Controls.Navigation.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
<
HierarchicalDataTemplate
x:Key
=
"MenuItemTemplate"
ItemsSource
=
"{Binding Items}"
>
<
TextBlock
Text
=
"{Binding Text}"
/>
</
HierarchicalDataTemplate
>
<
Style
x:Key
=
"MenuStyle"
TargetType
=
"telerik:RadMenuItem"
BasedOn
=
"{StaticResource RadMenuItemStyle}"
>
<
Setter
Property
=
"IsCheckable"
Value
=
"{Binding IsCheckable}"
/>
<
Setter
Property
=
"IsChecked"
Value
=
"{Binding IsChecked, Mode=TwoWay}"
/>
<
Setter
Property
=
"IsSeparator"
Value
=
"{Binding IsSeparator}"
/>
<
Setter
Property
=
"IsEnabled"
Value
=
"{Binding IsEnabled}"
/>
<
Setter
Property
=
"StaysOpenOnClick"
Value
=
"{Binding StaysOpenOnClick}"
/>
<
Setter
Property
=
"Icon"
Value
=
"{Binding Image}"
/>
</
Style
>
</
ResourceDictionary
>
</
Application.Resources
>
</
Application
>
public
partial
class
App : Application
{
private
MantisBootstrapper _bootstrapper;
protected
override
void
OnStartup(StartupEventArgs e)
{
Telerik.Windows.Controls.VisualStudio2013Palette.LoadPreset(Telerik.Windows.Controls.VisualStudio2013Palette.ColorVariation.Dark);
base
.OnStartup(e);
this
._bootstrapper =
new
MantisBootstrapper();
this
._bootstrapper.Run();
}
protected
override
void
OnExit(ExitEventArgs e)
{
this
._bootstrapper.Shutdown();
base
.OnExit(e);
}
}
private
void
RadMenuItem_Click(
object
sender, Telerik.Windows.RadRoutedEventArgs e)
{
App.Current.Resources.MergedDictionaries.Clear();
App.Current.Resources.MergedDictionaries.Add(
new
Telerik.Windows.Controls.Windows8TouchResourceDictionary());
App.Current.Resources.MergedDictionaries.Add(
new
ResourceDictionary { Source =
new
Uri(
"/Themes/Touch/System.Windows.xaml"
, UriKind.Relative) });
App.Current.Resources.MergedDictionaries.Add(
new
ResourceDictionary { Source =
new
Uri(
"/Themes/Touch/Telerik.Windows.Controls.xaml"
, UriKind.Relative) });
App.Current.Resources.MergedDictionaries.Add(
new
ResourceDictionary { Source =
new
Uri(
"/Themes/Touch/Telerik.Windows.Controls.Data.xaml"
, UriKind.Relative) });
App.Current.Resources.MergedDictionaries.Add(
new
ResourceDictionary { Source =
new
Uri(
"/Themes/Touch/Telerik.Windows.Controls.Docking.xaml"
, UriKind.Relative) });
App.Current.Resources.MergedDictionaries.Add(
new
ResourceDictionary { Source =
new
Uri(
"/Themes/Touch/Telerik.Windows.Controls.Input.xaml"
, UriKind.Relative) });
App.Current.Resources.MergedDictionaries.Add(
new
ResourceDictionary { Source =
new
Uri(
"/Themes/Touch/Telerik.Windows.Controls.Navigation.xaml"
, UriKind.Relative) });
}
There are descriptors for Categorical, Scatter, and Polar. What about for RangeSeries?
Thanks - Mitch
private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs e)
{
e.SetCursor(Cursors.Arrow);
e.Handled = true;
if (e.Effects != DragDropEffects.None)
return;
this.OnDropImpossible(this.CurrentDragVisual);
}
public class MyDynamicObject : DynamicObject
{
public string Name { get; set; }
public override bool TryGetMember(GetMemberBinder binder, out object result)
{
return base.TryGetMember(binder, out result);
}
public override bool TrySetMember(SetMemberBinder binder, object value)
{
return base.TrySetMember(binder, value);
}
}