|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Views="clr-namespace:CBR.Views"
xmlns:ViewModels="clr-namespace:CBR.ViewModels"
>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/MagnifyGlass.xaml" />
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/PageControl.xaml" />
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/SplitterExpander.xaml" />
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/RatingControl.xaml" />
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/Buttons.xaml" />
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/DesignerItem.xaml" />
<ResourceDictionary Source="/CBR;Component/Resources/XAML/Controls/ResizeChrome.xaml" />
</ResourceDictionary.MergedDictionaries>
<!-- ################################################################################# -->
<!-- BACKSTAGE STYLES -->
<Style x:Key="TitleLabel" TargetType="{x:Type TextBlock}">
<Setter Property="FontWeight" Value="ExtraBold" />
<Setter Property="FontSize" Value="18" />
<Setter Property="Foreground" Value="Black" />
</Style>
<Style x:Key="SubTitleLabel" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TitleLabel}">
<Setter Property="FontSize" Value="16" />
<Setter Property="FontStyle" Value="Italic" />
</Style>
<Style x:Key="DashedSeparator" TargetType="{x:Type Line}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="StrokeDashArray" Value="2 4" />
<Setter Property="Stretch" Value="Fill" />
<Setter Property="Stroke" Value="#FF666666" />
<Setter Property="Margin" Value="2" />
</Style>
<Style x:Key="VerticalSeparator" TargetType="{x:Type Line}">
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="Stretch" Value="Fill" />
<Setter Property="Stroke">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFD1D1D1" Offset="0" />
<GradientStop Color="#FF555555" Offset="0.512" />
<GradientStop Color="#FFD1D1D1" Offset="1" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
<!-- ################################################################################# -->
<!-- DCOUMENTS DATA TEMPLATES -->
<!-- This template applies a cbr/cbz document in the main window -->
<DataTemplate DataType="{x:Type ViewModels:BookViewModel}">
<Views:BookView />
</DataTemplate>
<!-- This template applies an xps document in the main window -->
<DataTemplate DataType="{x:Type ViewModels:XpsBookViewModel}">
<Views:XpsBookView />
</DataTemplate>
<!-- This style configures the main content areas in the main window -->
<Style x:Key="DocViewStyle" TargetType="{x:Type ContentControl}">
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContentControl}">
<Grid>
<ContentPresenter ContentSource="Content" ContentTemplate="{TemplateBinding ContentTemplate}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
WPF and MVVM fan, I practice C # in all its forms from the beginning of the NET Framework without mentioning C ++ / MFC and other software packages such as databases, ASP, WCF, Web & Windows services, Application, and now Core and UWP.
In my wasted hours, I am guilty of having fathered C.B.R. and its cousins C.B.R. for WinRT and UWP on the Windows store.
But apart from that, I am a great handyman ... the house, a rocket stove to heat the jacuzzi and the last one: a wood oven for pizza, bread, and everything that goes inside
https://guillaumewaser.wordpress.com/
https://fouretcompagnie.wordpress.com/