Hi,
Is there away to remove the maximize and minimize buttons from the Rad Window. I would like to this dynamically in code.
Any help would be great
Thanks
Simon
Is there away to remove the maximize and minimize buttons from the Rad Window. I would like to this dynamically in code.
Notes note =
new
Notes();
int
NoteID = note.AddNote(_wardcode);
Telerik.Windows.Controls.RadWindow rw =
new
Telerik.Windows.Controls.RadWindow();
rw.Width = nw / 5;
rw.Height = nh / 4;
rw.Name =
"NotePad"
+ NoteID;
rw.BorderThickness =
new
Thickness(0);
rw.BorderBrush =
null
;
rw.Header =
"Note"
+ DateTime.Now.ToShortDateString();
Grid grid =
new
Grid();
grid.Background =
new
SolidColorBrush(System.Windows.Media.Color.FromArgb(255, 240, 255, 255));
System.Windows.Controls.RichTextBox rtxtbx =
new
System.Windows.Controls.RichTextBox();
rtxtbx.Name =
"txtNotePad"
+ NoteID;
rtxtbx.FontSize = fontsize * 2;
rtxtbx.GotFocus +=
new
RoutedEventHandler(rtxtbx_GotFocus);
rtxtbx.LostFocus +=
delegate
(
object
sender, RoutedEventArgs e) { rtxtbx_LostFocus(sender, e, NoteID); };
rw.LayoutChangeEnded +=
delegate
(
object
sender, EventArgs e) { Page2_LayoutChangeEnded(sender, e, NoteID); };
rw.Closed +=
delegate
(
object
sender, WindowClosedEventArgs e) { Page2_Closed(sender, e, NoteID); };
rw.LostFocus +=
new
RoutedEventHandler(rw_LostFocus);
grid.Children.Add(rtxtbx);
rw.Content = grid;
rw.Show();
Any help would be great
Thanks
Simon