@ -0,0 +1,64 @@
|
|||||||
|
<base:BaseLoginPage x:Class="MediaBrowser.Plugins.DefaultTheme.Pages.LoginPage"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:base="clr-namespace:MediaBrowser.UI.Pages;assembly=MediaBrowser.UI"
|
||||||
|
xmlns:DTO="clr-namespace:MediaBrowser.Model.DTO;assembly=MediaBrowser.Model"
|
||||||
|
xmlns:controls="clr-namespace:MediaBrowser.UI.Controls;assembly=MediaBrowser.UI" mc:Ignorable="d"
|
||||||
|
d:DesignHeight="300"
|
||||||
|
d:DesignWidth="300"
|
||||||
|
Title="LoginPage">
|
||||||
|
|
||||||
|
<Page.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<DataTemplate DataType="{x:Type DTO:DtoUser}">
|
||||||
|
<Grid HorizontalAlignment="Left" Margin="3">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
||||||
|
<ColumnDefinition Width="475"></ColumnDefinition>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<controls:ExtendedImage HasImage="{Binding HasImage}"
|
||||||
|
PlaceHolderSource="../Resources/Images/UserLoginDefault.png"
|
||||||
|
Source="{Binding Converter={StaticResource UserImageConverter}, ConverterParameter='225,225,0,0'}"
|
||||||
|
Stretch="Uniform"
|
||||||
|
Width="225"
|
||||||
|
Height="225"
|
||||||
|
Background="{Binding Converter={StaticResource TileBackgroundConverter}}"/>
|
||||||
|
<TextBlock Text="{Binding Name}" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0" Margin="25 30 0 0" FontSize="{StaticResource Heading2FontSize}"></TextBlock>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource LastSeenTextConverter}}" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0" Margin="25 80 0 0"></TextBlock>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Page.Resources>
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"></RowDefinition>
|
||||||
|
<RowDefinition Height="*"></RowDefinition>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Image Style="{StaticResource MBLogoImageBlack}" Margin="0 0 0 10" Height="125" Stretch="Uniform" HorizontalAlignment="Left"></Image>
|
||||||
|
|
||||||
|
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Center" Grid.Row="1">
|
||||||
|
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"></RowDefinition>
|
||||||
|
<RowDefinition Height="*"></RowDefinition>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock FontSize="{StaticResource Heading2FontSize}" Grid.Row="0" Margin="0 0 0 30">Select Profile</TextBlock>
|
||||||
|
|
||||||
|
<ListView HorizontalAlignment="Center" Grid.Row="1" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding Path=Users}" Style="{StaticResource ListViewStyle}" ItemContainerStyle="{StaticResource ListViewItemStyle}">
|
||||||
|
<ListView.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Vertical" />
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ListView.ItemsPanel>
|
||||||
|
</ListView>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</base:BaseLoginPage>
|
@ -0,0 +1,81 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:themeconverters="clr-namespace:MediaBrowser.Plugins.DefaultTheme.Converters"
|
||||||
|
x:Class="MediaBrowser.Plugins.DefaultTheme.Resources.AppResources">
|
||||||
|
|
||||||
|
<themeconverters:WeatherImageConverter x:Key="WeatherImageConverter"></themeconverters:WeatherImageConverter>
|
||||||
|
<themeconverters:TileBackgroundConverter x:Key="TileBackgroundConverter"></themeconverters:TileBackgroundConverter>
|
||||||
|
|
||||||
|
<Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource BaseListViewItemStyle}">
|
||||||
|
|
||||||
|
<Style.Resources>
|
||||||
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="LightBlue"/>
|
||||||
|
</Style.Resources>
|
||||||
|
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="Opacity" Value=".85" />
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Override MainWindow style-->
|
||||||
|
<Style TargetType="Window" x:Key="MainWindow" BasedOn="{StaticResource BaseWindow}">
|
||||||
|
<Setter Property="Background">
|
||||||
|
<Setter.Value>
|
||||||
|
<RadialGradientBrush RadiusX=".75" RadiusY=".75">
|
||||||
|
<GradientStop Color="White" Offset="0.0"/>
|
||||||
|
<GradientStop Color="WhiteSmoke" Offset="0.5"/>
|
||||||
|
<GradientStop Color="#cfcfcf" Offset="1.0"/>
|
||||||
|
</RadialGradientBrush>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Override PageContentTemplate-->
|
||||||
|
<ControlTemplate x:Key="PageContentTemplate">
|
||||||
|
|
||||||
|
<Grid Margin="20 15 20 20">
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right">
|
||||||
|
|
||||||
|
<!--Display CurrentUser-->
|
||||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 30 0" Visibility="{Binding Path=CurrentUser,Converter={StaticResource CurrentUserVisibilityConverter}}">
|
||||||
|
<TextBlock FontSize="{StaticResource Heading2FontSize}" Text="{Binding Path=CurrentUser.Name}" Margin="0 0 5 0">
|
||||||
|
</TextBlock>
|
||||||
|
<Image>
|
||||||
|
<Image.Style>
|
||||||
|
<Style TargetType="{x:Type Image}">
|
||||||
|
<Setter Property="Image.Source" Value="Images\CurrentUserDefault.png" />
|
||||||
|
<Setter Property="Stretch" Value="None" />
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Path=CurrentUser.HasImage}" Value="true">
|
||||||
|
<Setter Property="Image.Source" Value="{Binding Path=CurrentUser,Converter={StaticResource UserImageConverter}, ConverterParameter='0,64,0,0'}" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Image.Style>
|
||||||
|
</Image>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<!--Display Weather-->
|
||||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 30 0" Visibility="{Binding Path=CurrentWeather,Converter={StaticResource WeatherVisibilityConverter}}">
|
||||||
|
|
||||||
|
<TextBlock FontSize="{StaticResource Heading2FontSize}" Text="{Binding Path=CurrentWeather,Converter={StaticResource WeatherTemperatureConverter}}" Margin="0 0 5 0">
|
||||||
|
</TextBlock>
|
||||||
|
<Image Stretch="None" Source="{Binding Path=CurrentWeather,Converter={StaticResource WeatherImageConverter}}"></Image>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<!--Display Clock-->
|
||||||
|
<TextBlock FontSize="{StaticResource Heading2FontSize}">
|
||||||
|
<TextBlock.Text>
|
||||||
|
<Binding Path="CurrentTime" Converter="{StaticResource DateTimeToStringConverter}" ConverterParameter="h:mm" />
|
||||||
|
</TextBlock.Text>
|
||||||
|
</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Frame x:Name="PageFrame"></Frame>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
After Width: | Height: | Size: 968 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<appSettings>
|
||||||
|
<add key="ProgramDataPath" value="..\..\..\ProgramData-UI" />
|
||||||
|
</appSettings>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
@ -0,0 +1,14 @@
|
|||||||
|
<z:BaseApplication x:Class="MediaBrowser.UI.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:z="clr-namespace:MediaBrowser.Common.UI;assembly=MediaBrowser.Common">
|
||||||
|
<Application.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="Resources/AppResources.xaml" />
|
||||||
|
<ResourceDictionary Source="Resources/MainWindowResources.xaml" />
|
||||||
|
<ResourceDictionary Source="Resources/NavBarResources.xaml"/>
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Application.Resources>
|
||||||
|
</z:BaseApplication>
|
@ -0,0 +1,91 @@
|
|||||||
|
<UserControl x:Class="MediaBrowser.UI.Controls.WindowCommands"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="300" d:DesignWidth="300">
|
||||||
|
|
||||||
|
<UserControl.Resources>
|
||||||
|
|
||||||
|
<Style TargetType="StackPanel" x:Key="WindowCommandsPanel">
|
||||||
|
<Setter Property="Orientation" Value="Horizontal"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="WebdingsButton" BasedOn="{StaticResource ImageButton}">
|
||||||
|
<Setter Property="Margin" Value="0 0 15 0"/>
|
||||||
|
<Setter Property="KeyboardNavigation.IsTabStop" Value="false"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="TextBlock" x:Key="WebdingsTextBlock">
|
||||||
|
<Setter Property="FontFamily" Value="Webdings"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource DefaultForeground}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="MinimizeApplicationButton" BasedOn="{StaticResource WebdingsButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Minimize"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<TextBlock Style="{StaticResource WebdingsTextBlock}">0</TextBlock>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="MaximizeApplicationButton" BasedOn="{StaticResource WebdingsButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Maximize"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<TextBlock Style="{StaticResource WebdingsTextBlock}">1</TextBlock>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Path=WindowState, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="Maximized">
|
||||||
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="UndoMaximizeApplicationButton" BasedOn="{StaticResource WebdingsButton}">
|
||||||
|
<Setter Property="Visibility" Value="Collapsed"/>
|
||||||
|
<Setter Property="ToolTip" Value="Restore"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<TextBlock Style="{StaticResource WebdingsTextBlock}">2</TextBlock>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Path=WindowState, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="Maximized">
|
||||||
|
<Setter Property="Visibility" Value="Visible" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="CloseApplicationButton" BasedOn="{StaticResource WebdingsButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Close"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<TextBlock Style="{StaticResource WebdingsTextBlock}">r</TextBlock>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</UserControl.Resources>
|
||||||
|
|
||||||
|
<StackPanel Style="{StaticResource WindowCommandsPanel}">
|
||||||
|
<Button x:Name="MinimizeApplicationButton" Style="{StaticResource MinimizeApplicationButton}"></Button>
|
||||||
|
<Button x:Name="MaximizeApplicationButton" Style="{StaticResource MaximizeApplicationButton}"></Button>
|
||||||
|
<Button x:Name="UndoMaximizeApplicationButton" Style="{StaticResource UndoMaximizeApplicationButton}"></Button>
|
||||||
|
<Button x:Name="CloseApplicationButton" Style="{StaticResource CloseApplicationButton}"></Button>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
</UserControl>
|
@ -0,0 +1,50 @@
|
|||||||
|
<Window x:Class="MediaBrowser.UI.MainWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:controls="clr-namespace:MediaBrowser.UI.Controls"
|
||||||
|
Title="media browser"
|
||||||
|
Style="{StaticResource MainWindow}"
|
||||||
|
WindowStartupLocation="CenterScreen"
|
||||||
|
AllowsTransparency="True"
|
||||||
|
WindowStyle="None"
|
||||||
|
ResizeMode="CanResizeWithGrip"
|
||||||
|
KeyboardNavigation.DirectionalNavigation="Contained">
|
||||||
|
|
||||||
|
<!--The window itself is a tabstop, and it can't be disabled. So this is a workaround.-->
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<Grid x:Name="BackdropGrid" Style="{StaticResource BackdropGrid}">
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<!--This allows the user to drag the window.-->
|
||||||
|
<Grid x:Name="DragBar" Style="{StaticResource DragBar}"></Grid>
|
||||||
|
|
||||||
|
<!--This allows the user to drag the window.-->
|
||||||
|
<controls:WindowCommands x:Name="WindowCommands" Style="{StaticResource WindowCommands}"></controls:WindowCommands>
|
||||||
|
|
||||||
|
<!--Themes will supply this template to outline the window structure.-->
|
||||||
|
<ContentControl x:Name="PageContent" Template="{StaticResource PageContentTemplate}"></ContentControl>
|
||||||
|
|
||||||
|
<Grid x:Name="NavBarGrid" Style="{StaticResource NavBarGrid}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
||||||
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||||
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<StackPanel Style="{StaticResource NavBarGridLeftPanel}">
|
||||||
|
<Button x:Name="BackButton" Style="{StaticResource BackButton}"></Button>
|
||||||
|
<Button x:Name="ForwardButton" Style="{StaticResource ForwardButton}"></Button>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Style="{StaticResource NavBarGridCenterPanel}">
|
||||||
|
<Button x:Name="MuteButton" Style="{StaticResource MuteButton}"></Button>
|
||||||
|
<Button x:Name="VolumeDownButton" Style="{StaticResource VolumeDownButton}"></Button>
|
||||||
|
<Button x:Name="VolumeUpButton" Style="{StaticResource VolumeUpButton}"></Button>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Style="{StaticResource NavBarGridRightPanel}">
|
||||||
|
<Button x:Name="SettingsButton" Style="{StaticResource SettingsButton}"></Button>
|
||||||
|
<Button x:Name="ExitButton" Style="{StaticResource ExitButton}"></Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
@ -0,0 +1,122 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
||||||
|
xmlns:converters="clr-namespace:MediaBrowser.UI.Converters">
|
||||||
|
|
||||||
|
<!--Themes should override these as needed-->
|
||||||
|
<FontFamily x:Key="DefaultFontFamily">Segoe UI, Lucida Sans Unicode, Verdana</FontFamily>
|
||||||
|
<FontWeight x:Key="DefaultFontWeight">Thin</FontWeight>
|
||||||
|
<Brush x:Key="DefaultForeground">Black</Brush>
|
||||||
|
<System:Double x:Key="DefaultFontSize">36</System:Double>
|
||||||
|
<System:Double x:Key="Heading1FontSize">84</System:Double>
|
||||||
|
<System:Double x:Key="Heading2FontSize">60</System:Double>
|
||||||
|
|
||||||
|
<!--Define all the standard converters here in one place-->
|
||||||
|
<converters:DateTimeToStringConverter x:Key="DateTimeToStringConverter"></converters:DateTimeToStringConverter>
|
||||||
|
<converters:UserImageConverter x:Key="UserImageConverter"></converters:UserImageConverter>
|
||||||
|
<converters:WeatherTemperatureConverter x:Key="WeatherTemperatureConverter"></converters:WeatherTemperatureConverter>
|
||||||
|
<converters:LastSeenTextConverter x:Key="LastSeenTextConverter"></converters:LastSeenTextConverter>
|
||||||
|
<converters:WeatherVisibilityConverter x:Key="WeatherVisibilityConverter"></converters:WeatherVisibilityConverter>
|
||||||
|
<converters:CurrentUserVisibilityConverter x:Key="CurrentUserVisibilityConverter"></converters:CurrentUserVisibilityConverter>
|
||||||
|
|
||||||
|
<!--Default Frame style. -->
|
||||||
|
<Style TargetType="Frame">
|
||||||
|
<Setter Property="NavigationUIVisibility" Value="Hidden"/>
|
||||||
|
<Setter Property="KeyboardNavigation.IsTabStop" Value="false"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default Frame style. -->
|
||||||
|
<Style TargetType="ContentControl">
|
||||||
|
<Setter Property="KeyboardNavigation.IsTabStop" Value="false"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default Window style. -->
|
||||||
|
<Style TargetType="Window" x:Key="BaseWindow">
|
||||||
|
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
|
||||||
|
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}"/>
|
||||||
|
<Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource DefaultForeground}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="#cccccc"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default TextBlock style. -->
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
|
||||||
|
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}"/>
|
||||||
|
<Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource DefaultForeground}"/>
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default Label style. -->
|
||||||
|
<Style TargetType="Label">
|
||||||
|
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
|
||||||
|
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}"/>
|
||||||
|
<Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource DefaultForeground}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default Button style. -->
|
||||||
|
<Style TargetType="Button">
|
||||||
|
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
|
||||||
|
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}"/>
|
||||||
|
<Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource DefaultForeground}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default style for buttons that have images. -->
|
||||||
|
<Style TargetType="Button" x:Key="ImageButton" BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
|
||||||
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
|
<Setter Property="Cursor" Value="Hand"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="Opacity" Value=".5" />
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default ListViewItem style. -->
|
||||||
|
<Style x:Key="BaseListViewItemStyle" TargetType="{x:Type ListViewItem}">
|
||||||
|
|
||||||
|
<Setter Property="Padding" Value="0" />
|
||||||
|
<Setter Property="Margin" Value="0" />
|
||||||
|
<Setter Property="Cursor" Value="Hand"/>
|
||||||
|
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
||||||
|
<Setter Property="IsSelected" Value="True" />
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Themes should override this -->
|
||||||
|
<Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource BaseListViewItemStyle}">
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Default ListView style. -->
|
||||||
|
<Style TargetType="ListView" x:Key="BaseListViewStyle">
|
||||||
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
|
||||||
|
<Setter Property="KeyboardNavigation.DirectionalNavigation" Value="Continue"/>
|
||||||
|
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="True"/>
|
||||||
|
<Setter Property="IsSynchronizedWithCurrentItem" Value="True"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Themes should override this -->
|
||||||
|
<Style x:Key="ListViewStyle" TargetType="{x:Type ListView}" BasedOn="{StaticResource BaseListViewStyle}">
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--MB Logo, black text. -->
|
||||||
|
<Style TargetType="Image" x:Key="MBLogoImageBlack">
|
||||||
|
<Setter Property="Source" Value="Images/mblogoblack.png"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--MB Logo, white text. -->
|
||||||
|
<Style TargetType="Image" x:Key="MBLogoImageWhite">
|
||||||
|
<Setter Property="Source" Value="Images/mblogowhite.png"/>
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 26 KiB |
@ -0,0 +1,43 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
|
||||||
|
<!--Themes should override this to style the window-->
|
||||||
|
<Style TargetType="Window" x:Key="MainWindow" BasedOn="{StaticResource BaseWindow}">
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Themes may want to override this to adjust the backdrop container style-->
|
||||||
|
<Style TargetType="Grid" x:Key="BackdropGrid">
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="Opacity" Value=".15"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Themes may want to override this to adjust the backdrop image style-->
|
||||||
|
<Style TargetType="Image" x:Key="BackdropImage">
|
||||||
|
<Setter Property="Stretch" Value="UniformToFill"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Grid" x:Key="DragBar">
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="Height" Value="50"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||||
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="UserControl" x:Key="WindowCommands">
|
||||||
|
<Setter Property="Margin" Value="0 10 0 0"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||||
|
<Setter Property="Panel.ZIndex" Value="2"/>
|
||||||
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Path=MainWindow.IsMouseIdle}" Value="false">
|
||||||
|
<Setter Property="Visibility" Value="Visible" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Themes should override this to layout window content-->
|
||||||
|
<ControlTemplate x:Key="PageContentTemplate">
|
||||||
|
<Frame x:Name="PageFrame"></Frame>
|
||||||
|
</ControlTemplate>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
@ -0,0 +1,122 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<Style TargetType="Button" x:Key="NavBarButton" BasedOn="{StaticResource ImageButton}">
|
||||||
|
<Setter Property="Margin" Value="10 0 10 0"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
|
<Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="BackButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Back"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\BackButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="ForwardButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Forward"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\ForwardButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="ExitButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Exit"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\ExitButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="SettingsButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Settings"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\SettingsButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="VolumeUpButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Increase Volume"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\VolumeUpButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="VolumeDownButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Decrease Volume"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\VolumeDownButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="MuteButton" BasedOn="{StaticResource NavBarButton}">
|
||||||
|
<Setter Property="ToolTip" Value="Mute"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate>
|
||||||
|
<Image x:Name="img" Source="..\Resources\Images\MuteButton.png" Stretch="None" />
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Grid" x:Key="NavBarGrid">
|
||||||
|
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
||||||
|
<Setter Property="Background">
|
||||||
|
<Setter.Value>
|
||||||
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" Opacity=".8">
|
||||||
|
<GradientStop Color="#333333" Offset="0.0"/>
|
||||||
|
<GradientStop Color="Black" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Path=MainWindow.IsMouseIdle}" Value="false">
|
||||||
|
<Setter Property="Visibility" Value="Visible" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="StackPanel" x:Key="NavBarGridLeftPanel">
|
||||||
|
<Setter Property="Grid.Column" Value="0"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
|
<Setter Property="Orientation" Value="Horizontal"/>
|
||||||
|
<Setter Property="Margin" Value="15 20 15 20"/>
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="StackPanel" x:Key="NavBarGridCenterPanel">
|
||||||
|
<Setter Property="Grid.Column" Value="1"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="Orientation" Value="Horizontal"/>
|
||||||
|
<Setter Property="Margin" Value="15 20 15 20"/>
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="StackPanel" x:Key="NavBarGridRightPanel">
|
||||||
|
<Setter Property="Grid.Column" Value="2"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
|
<Setter Property="Orientation" Value="Horizontal"/>
|
||||||
|
<Setter Property="Margin" Value="15 20 15 20"/>
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
@ -0,0 +1,32 @@
|
|||||||
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:MediaBrowser.UI.Controls">
|
||||||
|
|
||||||
|
<Style TargetType="{x:Type local:ExtendedImage}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type local:ExtendedImage}">
|
||||||
|
<Border Background="{TemplateBinding Background}">
|
||||||
|
<Image x:Name="theImage">
|
||||||
|
<Image.Style>
|
||||||
|
<Style TargetType="{x:Type Image}">
|
||||||
|
<Setter Property="Source"
|
||||||
|
Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PlaceHolderSource}" />
|
||||||
|
<Setter Property="Stretch"
|
||||||
|
Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path= Stretch}" />
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HasImage}" Value="True">
|
||||||
|
<Setter Property="Source"
|
||||||
|
Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Source}" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Image.Style>
|
||||||
|
</Image>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|