- Please see attached screenshot -
The toolbar on the right side of the screen (blue line above "toolbar" buttons) should always have the same height as the HeaderSelectedItem element of the OutlookBar on the left. So when a user switches his theme at runtime, the toolbars height should adjust with the new selected theme. For example "Office 2013" and "Windows 8" themes use different heights. I tried that with the following code where "MyOutlookBar" is the key of my RadOutlookBar:
<!-- ToolBar Area -->
<
StackPanel
Orientation
=
"Horizontal"
Height
=
"{Binding ElementName=MyOutlookBar, Path=HeaderSelectedItem.Height}"
>
<
Image
Source
=
"{Binding ToolBarIcon}"
Stretch
=
"None"
/>
<
TextBlock
Text
=
"{Binding ToolBarTitle}"
/>
</
StackPanel
>
<
telerikControls:RadGridView
Grid.ColumnSpan
=
"2"
...
<telerikControls:RadGridView.Resources>
<
DataTemplate
x:Key
=
"DraggedItemTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"2"
>
<
TextBlock
Text
=
"test"
FontWeight
=
"Bold"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerikControls:RadGridView.Resources
>
<
planerView:RadGridViewDragDrop.DragVisualProvider
>
<!--<
planerView:RadGridViewItemDragVisualProvider
>
</
planerView:RadGridViewItemDragVisualProvider
>-->
<
telerikDragDropBehaviors:ScreenshotDragVisualProvider
></
telerikDragDropBehaviors:ScreenshotDragVisualProvider
>
</
planerView:RadGridViewDragDrop.DragVisualProvider
>
</
telerikControls:RadGridView
>
public
class
RadGridViewItemDragVisualProvider : DependencyObject, IDragVisualProvider
{
public
DataTemplate DraggedItemTemplate
{
get
{
return
(DataTemplate)GetValue(DraggedItemTemplateProperty);
}
set
{
SetValue(DraggedItemTemplateProperty, value);
}
}
public
static
readonly
DependencyProperty DraggedItemTemplateProperty =
DependencyProperty.Register(
"DraggedItemTemplate"
,
typeof
(DataTemplate),
typeof
(RadGridViewItemDragVisualProvider),
new
PropertyMetadata(
null
));
public
FrameworkElement CreateDragVisual(DragVisualProviderState state)
{
var visual =
new
DragVisual();
visual.Content = state.DraggedItems.OfType<
object
>().FirstOrDefault();
visual.ContentTemplate =
this
.DraggedItemTemplate;
return
visual;
}
public
Point GetDragVisualOffset(DragVisualProviderState state)
{
return
state.RelativeStartPoint;
}
public
bool
UseDefaultCursors {
get
;
set
; }
}
<Style x:Key="FolderItemStyle" TargetType="{x:Type telerik:RadTreeViewItem}" BasedOn="{StaticResource RadTreeViewItemStyle}">
<Setter Property="Foreground" Value="Blue"/>
<Setter Property="FontStyle" Value="Normal"/>
</Style>
<telerik:RadTreeView Grid.Row="1" Grid.Column="0" ItemContainerStyle="{StaticResource FolderItemStyle}">
I've got a simple chart with 2 Bar3DSeriesDefinitions and 2 y axes. I set the axis names appropriately & both series draw, but the additional y axis is not visible. Any clue why? The XAML in the designer shows the second y axis at design time, but that is before the series are added at run time & so the axes are shown as 2D.
Thanks - Mitch
Hi,
I'd like to have fixed y/x-axis 0 to 1. Values above and below don't make sense.
There are values exactly at (0,0.5) and by using a point series they are only partially within the plotable area
and become very hard to select. Is there a margin/padding property I can set?
Changing the axis minimum helps, but then my axis annotation don't make sense anymore.
Markus