pattern editor colors
Posted: Sat Feb 11, 2012 7:35 pm
kehivtys vama: yhdys sana ja harastus vehket vimpsan päle
https://forums.jeskola.net/
Code: Select all
<ObjectDataProvider x:Key="PatternNoteColors" ObjectType="{x:Type bgc:HSPAColorProvider}">
<ObjectDataProvider.ConstructorParameters>
<sys:Int32>12</sys:Int32>
<sys:Double>0</sys:Double>
<sys:Double>0.916667</sys:Double>
<sys:Double>0.7</sys:Double>
<sys:Double>0.7</sys:Double>
<sys:Double>0.6</sys:Double>
<sys:Double>0.6</sys:Double>
</ObjectDataProvider.ConstructorParameters>
</ObjectDataProvider>
Code: Select all
<Style TargetType="{x:Type Window}" x:Key="ThemeWindowStyle">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="shell:WindowChrome.WindowChrome">
<Setter.Value>
<shell:WindowChrome
ResizeBorderThickness="6"
CaptionHeight="22"
CornerRadius="0,0,0,0"
GlassFrameThickness="0"/>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="#F0F0F0"/>
<Setter Property="UseLayoutRounding" Value="True"/>
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Window}">
<Border BorderThickness="1" BorderBrush="#545454" Background="#666666">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="22"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="#545454" Background="#595959">
<Grid>
<TextBlock Text="{TemplateBinding Title}" VerticalAlignment="Center" Margin="8,0,0,0" Foreground="White" FontWeight="Bold"/>
<Button shell:WindowChrome.IsHitTestVisibleInChrome="True" BorderThickness="0" Padding="0"
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,9,0" Width="10" Height="10"
Command="{x:Static shell:SystemCommands.CloseWindowCommand}">
<Image Style="{DynamicResource WindowCloseButtonImageStyle}"/>
</Button>
</Grid>
</Border>
<ContentPresenter Grid.Row="1" Content="{TemplateBinding Content}"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>