or
<UserControl.Resources> |
<Style TargetType="Rectangle" x:Key="StripLinesYStyle> |
<Setter Property="Visibility" Value="Collapsed" /> |
</Style> |
</UserControl.Resources> |
var stripLineStyle = this.Resources["StripLinesYStyle"] as Style; |
myChart.DefaultView.ChartArea.AxisY.AxisStyles.StripLineStyle = stripLineStyle; |
Hello,
I have a window with a RadToolbar and a button in this toolbar :
<telerik:RadToolBar Height="32" HorizontalAlignment="Left" VerticalAlignment="Top" Width="388"> |
<Button Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Name="button1"> |
Test |
</Button> |
</telerik:RadToolBar> |
All works fine, my button looks like a toolbar button (no border, no background).
But if I put a style on my button (even if the style is empty) :
<telerik:RadToolBar Height="32" HorizontalAlignment="Left" VerticalAlignment="Top" Width="388"> |
<Button Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Name="button1"> |
Test |
<Button.Style> |
<Style TargetType="Button"> |
</Style> |
</Button.Style> |
</Button> |
</telerik:RadToolBar> |
my button looks like a normal button (with border and background).
Is there a workaround for this issue ?
Thank you.
<map:InformationLayer ItemsSource="{Binding Sales}"> |
<map:InformationLayer.ItemTemplate> |
<DataTemplate> |
<Canvas map:MapLayer.Location="{Binding Location}"> |
<TextBlock Text="Hi world"/> |
<map:MapRectangle |
Location="{Binding Location}" |
Width="1" |
Height="1" |
RadiusX="0.1" |
RadiusY="0.1" |
Fill="#7FFFFF00" |
Stroke="Red" |
StrokeThickness="2" /> |
</Canvas> |
</DataTemplate> |
</map:InformationLayer.ItemTemplate> |
</map:InformationLayer> |
<Style x:Key="Chart_GridLine" TargetType="{x:Type Line}"> |
<Setter Property="Stroke" Value="White"/> |
</Style> |
<Style x:Key="Chart_TickLine" TargetType="{x:Type Line}"> |
<Setter Property="Stroke" Value="White"/> |
<Setter Property="StrokeThickness" Value="1"/> |
</Style> |
<Style x:Key="Chart_AxisLine" TargetType="{x:Type Line}"> |
<Setter Property="Stroke" Value="White"/> |
<Setter Property="StrokeThickness" Value="2"/> |
</Style> |
<telerik:ChartDefaultView.ChartArea> |
<telerik:ChartArea> |
<telerik:ChartArea.AxisX> |
<telerik:AxisX StripLinesVisibility="Visible" MajorGridLinesVisibility="Visible"> |
<telerik:AxisX.AxisStyles> |
<telerik:AxisStyles |
AxisLineStyle="{StaticResource Chart_AxisLine}" |
GridLineStyle="{StaticResource Chart_GridLine}" |
TickLineStyle="{StaticResource Chart_TickLine}"/> |
</telerik:AxisX.AxisStyles> |
</telerik:AxisX> |
</telerik:ChartArea.AxisX> |
<telerik:ChartArea.AxisY> |
<telerik:AxisY MinorTicksVisibility="Collapsed"> |
<telerik:AxisY.AxisStyles> |
<telerik:AxisStyles |
AxisLineStyle="{StaticResource Chart_AxisLine}" |
TickLineStyle="{StaticResource Chart_TickLine}"/> |
</telerik:AxisY.AxisStyles> |
</telerik:AxisY> |
</telerik:ChartArea.AxisY> |
</telerik:ChartArea> |
</telerik:ChartDefaultView.ChartArea> |