3 Answers, 1 is accepted
0
Hello Erhan,
The elements from the QuickStart namespace are just helpers that are used only in our demos. Those elements are used to create the configuration panels for the demos. We do not provide an assembly with the QuickStart namespace and also we do not expose its code in the WPF demos application, because it is not necessary for the controls to work properly.
However, you can get the code with the QuickStart classes from the solution with the source code of our examples. You can download this solution from the download page in your account. To get to the this page you can click on the "Products & Subscriptions --> Trials" then click the "Download" button placed in the UI for WPF section. You can find the examples' solution in the "Demos" .zip file.
I hope this helps.
Regards,
Martin
Telerik
The elements from the QuickStart namespace are just helpers that are used only in our demos. Those elements are used to create the configuration panels for the demos. We do not provide an assembly with the QuickStart namespace and also we do not expose its code in the WPF demos application, because it is not necessary for the controls to work properly.
However, you can get the code with the QuickStart classes from the solution with the source code of our examples. You can download this solution from the download page in your account. To get to the this page you can click on the "Products & Subscriptions --> Trials" then click the "Download" button placed in the UI for WPF section. You can find the examples' solution in the "Demos" .zip file.
I hope this helps.
Regards,
Martin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Erhan
Top achievements
Rank 1
answered on 04 Feb 2015, 08:54 PM
Thanks Martin . I like example header style so much . and ı want to use it in my project. It is possible?
I added Quickstart_WPF.common to my project and ı set xmlns in my view . I can build my code . But ı couldnt see exampleheader when ı run my application.
I added Quickstart_WPF.common to my project and ı set xmlns in my view . I can build my code . But ı couldnt see exampleheader when ı run my application.
0
Accepted
Hello Erhan,
If you want only the example header you can get the xaml from the DataTemplate with x:Key set to "ExampleTemplate" defined in the SingleExample.xaml file (which is part of the QuickStart.Application project). For your convenience I extracted the xaml:
Please take a look at it and let me know if it works for you.
Regards,
Martin
Telerik
If you want only the example header you can get the xaml from the DataTemplate with x:Key set to "ExampleTemplate" defined in the SingleExample.xaml file (which is part of the QuickStart.Application project). For your convenience I extracted the xaml:
<
Border
>
<
Grid
Margin
=
"10"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Border
Grid.RowSpan
=
"2"
CornerRadius
=
"5"
BorderBrush
=
"#FFAAB9C0"
BorderThickness
=
"1"
Background
=
"White"
>
<
Border.Effect
>
<
DropShadowEffect
BlurRadius
=
"7"
ShadowDepth
=
"2"
Opacity
=
"0.5"
/>
</
Border.Effect
>
</
Border
>
<
Border
x:Name
=
"Header"
CornerRadius
=
"5 5 0 0"
Background
=
"#FF79256B"
BorderThickness
=
"0 0 0 1"
BorderBrush
=
"#FFAAB9C0"
>
<
Grid
>
<
Path
Width
=
"223"
Height
=
"29"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Top"
Data
=
"M0.5,12.1 L222.4,12.1 L222.5,37.6 C176.7,29.8 107.9,19.0 0.5,19.0 z"
Stretch
=
"Fill"
StrokeThickness
=
"0"
>
<
Path.Fill
>
<
LinearGradientBrush
StartPoint
=
"0.5,0.0"
EndPoint
=
"0.5,0.8"
>
<
GradientStop
Offset
=
"1"
Color
=
"#FF8E347D"
/>
<
GradientStop
Offset
=
"0.1"
Color
=
"#0079256B"
/>
</
LinearGradientBrush
>
</
Path.Fill
>
</
Path
>
<
ContentPresenter
Content
=
"Header"
TextBlock.Foreground
=
"White"
TextBlock.FontSize
=
"24"
TextBlock.FontFamily
=
"Myriad Pro Light"
/>
</
Grid
>
</
Border
>
<
AdornerDecorator
Margin
=
"5"
Grid.Row
=
"1"
>
<
ContentPresenter
x:Name
=
"Content"
Content
=
"{Binding}"
/>
</
AdornerDecorator
>
</
Grid
>
</
Border
>
Regards,
Martin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.