using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Data;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Imaging;
using
System.Windows.Navigation;
using
System.Windows.Shapes;
using
VPlayer;
using
Telerik.Windows.Documents.Model.Styles;
namespace
WpfApplication3
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void RadButton_Click(object sender, RoutedEventArgs e)
{
Rtf.Rtf =
"Line 1";
editor.Document.CaretPosition.MoveToLastPositionInDocument();
editor.Insert(
@"Line 2");
}
}
}
Hi
i have problem following this scenario :
TreeView use LoadOnDemand and CheckList
1. parent node checked;
2. parent node expand;
i want to result that is all check of child node for parent node
but all not checked for checkbox for child node for parent node
how to do checked for all checkbox of child node for parent node??
thank you
<
Window
x:Class
=
"tlk_colorpicker.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
tlk:RadDropDownButton
Content
=
"Color"
x:Name
=
"color"
>
<
tlk:RadDropDownButton.DropDownContent
>
<
tlk:RadColorSelector
SelectedColorChanged
=
"PredefSelectedColorChanged"
NoColorVisibility
=
"Collapsed"
/>
</
tlk:RadDropDownButton.DropDownContent
>
</
tlk:RadDropDownButton
>
<
Rectangle
x:Name
=
"oRect"
Width
=
"50"
Height
=
"50"
Grid.Row
=
"2"
Fill
=
"AliceBlue"
/>
</
Grid
>
</
Window
>
private
void
PredefSelectedColorChanged(
object
sender, EventArgs e)
{
oRect.Fill =
new
SolidColorBrush(((RadColorSelector)sender).SelectedColor);
color.IsOpen =
false
;
}
public static void PrintPreview(GridViewDataControl source)
{
Window window = new Window();
window.Title = "Print Preview";
DocumentViewer documentViewer = new DocumentViewer();
PrintDialog printDialog = new PrintDialog();
printDialog.PageRangeSelection = PageRangeSelection.UserPages;
printDialog.UserPageRangeEnabled = true;
printDialog.MaxPage = 40;
documentViewer.Document = ToFixedDocument(ToPrintFriendlyGrid(source), printDialog);
window.Content = documentViewer;
window.ShowDialog();
}
Hi,
I have a scenario where I need to update the layout of a RadGridView when I change the width of a column from my ViewModel.
My first approach was to use the ColumnWidthChanged event, but it does not fire.
Is this intended behavior?
I could trigger the UpdateLayout() call from my ViewModel, but it does not belong there because it is entirely UI related stuff...
Any suggestions?
Best Regards,
Christian