<
ResourceDictionary
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:Telerik_Windows_Controls_Primitives
=
"clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"Resources.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
<
Style
TargetType
=
"{x:Type telerik:RadPaneGroup}"
x:Key
=
"StandardPaneGroup"
>
<
Setter
Property
=
"Background"
Value
=
"#1C1C1C"
></
Setter
>
<
Setter
Property
=
"BorderBrush"
Value
=
"#1C97EA"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:PaneHeader}"
>
<
Grid
Background
=
"{TemplateBinding Background}"
SnapsToDevicePixels
=
"true"
Height
=
"23"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"25"
/>
</
Grid.ColumnDefinitions
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
ResourceDictionary
>
I am creating an application where it can have the docking functionality. SO I choosed telerik controls for it as it makes my work simple.
I am facing the issues while setting the styles for Header in the RadPane. I am createing RadPane's dynamically through a click event of a menu Item. I want to set a style for RadPane header,border of my own where I Can use it all over my application. I am confused either to write styles for RadPane or RadPane group or PaneHeader.
Attached file is the sample of my application created using the general WPF controls like Menu, Tabcontrol. Created styles
<
telerik:RadGridView
x:Name
=
"GridView1"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding fileName}"
Header
=
"Filename"
/>
<
telerik:GridViewDynamicHyperlinkColumn
DataMemberBinding
=
"{Binding status}"
Header
=
"Upload Status"
NavigateUrlMemberPaths
=
"status"
NavigateUrlFormatString
=
"{} file:///C:/{0}.xls"
TargetName
=
"_blank"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Hi,
we use Telerik V2012.1.326.35 with VS2008 and we have a strange problem :(
Actually in our solution, in one of our project we added a RadPdfViewer in a XAML file. In code behind, on a RadButton click event, we call the following method :
private void loadDoc()
{
PdfDocumentSource newDoc = new PdfDocumentSource(new Uri(@"c:\MyDir\pdf2.pdf"));
PdfDoc.DocumentSource = newDoc;
}
I don't know why but I always received the follwing error message (see attached file).
If I move our method in a brand new solution and project, it work!!! I checked all Telerik files and they are the same in both projects.
Any thought???
Thank's
<
controls:RadNumericUpDown
x:Name
=
"XTextBox"
Value
=
"{Binding GraphicalItem.Rect.X}"
UpdateValueEvent
=
"PropertyChanged"
Minimum
=
"{Binding GraphicalItem.Rect.MinX}"
Maximum
=
"{Binding GraphicalItem.Rect.MaxX}"
LargeChange
=
"{Binding LargeCoordinateChange}"
SmallChange
=
"{Binding SmallCoordinateChange}"
BorderBrush
=
"#FFCBCBCB"
Margin
=
"3,2,0,2"
HorizontalAlignment
=
"Right"
BorderThickness
=
"1"
Background
=
"{x:Null}"
Height
=
"20"
MinWidth
=
"40"
Padding
=
"1,1,2,1"
/>
private
RadDiagram CreateDiagram(Color backgroundColor,
bool
isEditingEnabled)
{
var diagram =
new
RadDiagram
{
IsBackgroundSurfaceVisible =
false
,
Background =
new
SolidColorBrush(backgroundColor),
IsPanEnabled =
false
,
IsZoomEnabled =
false
,
AllowCopy =
false
,
AllowCut =
false
,
AllowDelete =
false
,
AllowDrop =
false
,
ActiveTool = MouseTool.PointerTool,
AllowPaste =
false
,
IsDraggingEnabled = isEditingEnabled,
IsResizingEnabled = isEditingEnabled,
IsRotationEnabled =
false
,
IsConnectorsManipulationEnabled = isEditingEnabled,
IsManipulationAdornerVisible = isEditingEnabled,
IsManipulationEnabled = isEditingEnabled,
SelectionMode = isEditingEnabled ? SelectionMode.Single : SelectionMode.None,
IsSnapToGridEnabled =
false
,
IsSnapToItemsEnabled =
false
,
};
diagram.Clear();
DiagramAnimations.SetIsZoomAnimationEnabled(diagram,
false
);
ScrollViewer.SetHorizontalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden);
ScrollViewer.SetVerticalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden);
return
diagram;
}