or
<
Style
TargetType
=
"{x:Type telerik:GridViewRow}"
>
<
Style.Triggers
>
<
MultiDataTrigger
>
<
MultiDataTrigger.Conditions
>
<
Condition
Binding
=
"{Binding Path=IsActive}"
Value
=
"False"
/>
<
Condition
Binding
=
"{Binding Path=InPlan}"
Value
=
"True"
/>
</
MultiDataTrigger.Conditions
>
<
Setter
Property
=
"Background"
Value
=
"AntiqueWhite"
/>
<
Setter
Property
=
"Foreground"
Value
=
"Red"
/>
</
MultiDataTrigger
>
</
Style.Triggers
>
</
Style
>
<
DockPanel
x:Name
=
"LayoutRoot"
>
<
ContentControl
x:Name
=
"RibbonPanel"
/>
<
ContentControl
x:Name
=
"StatusBarPanel"
/>
<
ContentControl
x:Name
=
"ControlPanelRegion"
/>
<
ContentControl
x:Name
=
"OutlookBarPanel"
/>
<
Border
BorderThickness
=
"2"
Padding
=
"0"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
ContentControl
x:Name
=
"MainRegion"
/>
<
ContentControl
x:Name
=
"AnotherRegion"
/>
</
Grid
>
</
Border
>
</
DockPanel
>
((RadPdfViewer)sender).Print(new PrintSettings("Document 1", true));
GridViewColumn tagColumn =
this
.gridView.Columns[
"Tag"
];
IColumnFilterDescriptor tagFilter = tagColumn.ColumnFilterDescriptor;
// Suspend the notifications to avoid multiple data engine updates
tagFilter.SuspendNotifications();
tagFilter.DistinctFilter.Clear();
foreach
(var pair
in
myDictionary)
{
if
(pair.Value.IsShown)
{
tagFilter.DistinctFilter.AddDistinctValue(pair.Key);
}
}
// Resume the notifications to force the data engine to update the filter.
tagFilter.ResumeNotifications();
var filename =
"C:\\temp\\test.pdf"
;
var doc =
new
Telerik.Windows.Documents.Model.RadDocument();
var stream =
new
FileStream(filename, FileMode.Create);
var pdfExp =
new
Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider();
pdfExp.Export(doc, stream);
stream.Close();
doc.SectionDefaultPageSize = Telerik.Windows.Documents.Model.PaperTypeConverter.ToSize(Telerik.Windows.Documents.Model.PaperTypes.A4);
pdfExp.Export(doc, stream);
stream.Close();