How to write the control in the generic.xaml folder in the style settings.

I just want to set the control's style, want to put the following code in your generic file, but I cannot find this file. Do not know how to create this file
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Phone.Controls;assembly=Phone.Controls">

<Style TargetType="local:ScrollableTextBlock" >
<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMedium}"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Width" Value="200" />
<Setter Property="Height" Value="70" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:ScrollableTextBlock">
<ScrollViewer x:Name="ScrollViewer" Foreground="{TemplateBinding Foreground}"
Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
<StackPanel Orientation="Vertical" x:Name="StackPanel" />
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

</ResourceDictionary>

Started by Burgess at November 27, 2016 - 9:44 AM



Themes\

Posted by Zero at December 04, 2016 - 10:23 AM

In fact, I would like to ask the Microsoft.Phone.Controls.Toolkit project is what type? Windows Phone application? Or is it a class library, I don't know what to build a project is, also, the theme folder and inside the generic.xaml is automatically generated or create your own, I said, he can't find the file.

Posted by Burgess at December 18, 2016 - 10:26 AM

Microsoft.Phone.Controls.Toolkit is a WP class library

Unable to find and create their own

Posted by Zero at December 30, 2016 - 11:16 AM

But could not be created in the WP class in the generic.xaml file. Unable to find a resource dictionary ah (generic.xaml is a resource dictionary words right? )

Posted by Burgess at January 01, 2017 - 11:27 AM

From elsewhere to copy the past or build a XML file to change the name and extension.

Posted by Zero at January 05, 2017 - 12:12 PM