6 Answers, 1 is accepted
0
Hello Anan,
Thank you for contacting us.
Attached you will find a sample project in which is illustrated how to apply custom theme for the RadWindow.Confirm.
If you have further questions please feel free to contact us again.
Best wishes,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you for contacting us.
Attached you will find a sample project in which is illustrated how to apply custom theme for the RadWindow.Confirm.
If you have further questions please feel free to contact us again.
Best wishes,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Anan
Top achievements
Rank 1
answered on 07 Mar 2010, 11:01 PM
Hello
Thx for ur reply...
I don't want to apply custom theme...i want to style the outer frame of the confirm dialog...something like this
RadWindow.Template = App.Current.Resources["RadWindow_ControlTemplate"] as ControlTemplate;
I need to change the solid black on the outer frame to some other color.
Thanks
Thx for ur reply...
I don't want to apply custom theme...i want to style the outer frame of the confirm dialog...something like this
RadWindow.Template = App.Current.Resources["RadWindow_ControlTemplate"] as ControlTemplate;
I need to change the solid black on the outer frame to some other color.
Thanks
0
Anan
Top achievements
Rank 1
answered on 07 Mar 2010, 11:14 PM
Hello
Just want to be more clear...when i say outer frame...its the header background color...
Just want to be more clear...when i say outer frame...its the header background color...
0
Hi Anan,
Thank you for contacting us.
To achieve that you have to put the style in the resources of the Page. Add a x:Key value to the style. Then in the code behind:
Hope this helps.
If you have further questions please feel free to contact us again.
Greetings,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you for contacting us.
To achieve that you have to put the style in the resources of the Page. Add a x:Key value to the style. Then in the code behind:
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
//Theme myTheme = new Theme(new Uri("/AlertTheme;component/Theme/AlertTheme.xaml", UriKind.Relative));
RadWindow.Confirm(
new
DialogParameters
{
Content =
"Humpty Dumpty sat on a wall. Humpty dumpty had a great fall."
,
Opened = OnAlertWindowOpened
});
}
private
void
OnAlertWindowOpened(
object
sender, EventArgs e)
{
var window = sender
as
RadWindow;
var confirm = window.Content
as
RadConfirm;
confirm.Style =
this
.Resources[
"ConfirmStyle"
]
as
Style;
}
Hope this helps.
If you have further questions please feel free to contact us again.
Greetings,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Anan
Top achievements
Rank 1
answered on 10 Mar 2010, 02:43 AM
Hello
That worked...Thanks...a small change
it should be
window.Style = App.Current.Resources["RadWindowStyle"] as Style;
Anan
That worked...Thanks...a small change
it should be
window.Style = App.Current.Resources["RadWindowStyle"] as Style;
Anan
0
Rakesh
Top achievements
Rank 1
answered on 10 Aug 2012, 06:27 PM
I have to show confirm window at many places in my Application. Is there anyway we can write intrinsic style or make our custom style applied wherever RadWindow Confirm pops up?