This question is locked. New answers and comments are not allowed.
* In the following xaml code I'm setting a Style for the button control which works fine as long as its not in the RadWindow, but does not appear to apply the style loaded as part of a RadWindows, Is this not supported?? If So what do I need to do to get it to work in this code:
Button Style Code that works outside the radwindow control:
RadWindows XAML code:
Button Style Code that works outside the radwindow control:
<
Style
x:Key
=
"ButtonFlagStyle"
TargetType
=
"Button"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"Button"
>
<
Grid
Background
=
"Transparent"
Width
=
"48"
Height
=
"48"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Pressed"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"image"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"image1"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Collapsed"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Image
x:Name
=
"image"
Source
=
"/Images/navigator_White.png"
Stretch
=
"Fill"
Visibility
=
"Collapsed"
/>
<
Image
x:Name
=
"image1"
Source
=
"/Images/navigator_Black.png"
Stretch
=
"Fill"
/>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
RadWindows XAML code:
<
telerikPrimitives:RadWindow
x:Name
=
"SetHeadingwindow"
WindowSizeMode
=
"AutoSize"
Margin
=
"39,146,41,468"
Grid.ColumnSpan
=
"2"
>
<
Border
Margin
=
"39,146,41,468"
Width
=
"400"
x:Name
=
"SetHeadingPanel"
BorderThickness
=
"3"
BorderBrush
=
"#FF1D4FE5"
Visibility
=
"Visible"
Opacity
=
"1"
CornerRadius
=
"20"
Grid.ColumnSpan
=
"2"
>
<
Border.Background
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#72D0D0DE"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#73454845"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Border.Background
>
<
Grid
Height
=
"140"
>
<
TextBlock
Text
=
"You can enter a MGRS cordinate"
Margin
=
"4,-90,3,0"
FontSize
=
"22"
FontWeight
=
"Bold"
Foreground
=
"Black"
Height
=
"37"
Width
=
"387"
TextAlignment
=
"Center"
FontStyle
=
"Italic"
/>
<
TextBox
Name
=
"HeadingCordTo"
Width
=
"300"
Text
=
"Long and Lat"
FontSize
=
"18"
FontWeight
=
"Bold"
TextWrapping
=
"Wrap"
Background
=
"#61585454"
BorderBrush
=
"#BF0E75DB"
Height
=
"63"
GotFocus
=
"HeadingCordTo_GotFocus"
TextChanged
=
"HeadingCordTo_TextChanged"
KeyDown
=
"HeadingCordTo_KeyDown"
Margin
=
"21,0,73,0"
SelectionForeground
=
"#FFF8F8F8"
SelectionBackground
=
"#FF8DC8E5"
Foreground
=
"#FF1414C7"
Opacity
=
"0.9"
KeyUp
=
"HeadingCordTo_KeyUp"
/>
<
Button
x:Name
=
"bnntSet"
Click
=
"SetHeadingCommit_Click"
Margin
=
"311,35,-2,32"
BorderBrush
=
"Black"
Foreground
=
"Black"
Style
=
"{StaticResource ButtonFlagStyle}"
/>
<
TextBlock
Name
=
"MgrstosetText"
Text
=
"mgrscord"
Margin
=
"34,96,86,7"
FontSize
=
"20"
FontWeight
=
"Bold"
Foreground
=
"Black"
Height
=
"37"
Width
=
"274"
TextAlignment
=
"Center"
FontStyle
=
"Normal"
HorizontalAlignment
=
"Stretch"
/>
</
Grid
>
</
Border
>
</
telerikPrimitives:RadWindow
>