Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think it looks pretty close. You can download my modified version from <a href="http://www.mediafire.com/?a7s7rj5vblf5aox" rel="nofollow noreferrer">here</a></p> <p><img src="https://i.stack.imgur.com/7O4Pp.png" alt="alt text"></p> <p>Added a template for ComboBoxItem</p> <pre><code>&lt;SolidColorBrush x:Key="SelectedBackgroundBrush" Color="#DDD" /&gt; &lt;SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" /&gt; &lt;Style x:Key="ComboBoxItemStyle" TargetType="ComboBoxItem"&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="ComboBoxItem"&gt; &lt;Grid HorizontalAlignment="Stretch" Margin="-5,0,0,0" Background="{TemplateBinding Background}"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="45"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Border Name="border1" BorderThickness="0,0,1,1" BorderBrush="#FFCEDFF6" Grid.Column="0"&gt; &lt;TextBlock Foreground="Purple" HorizontalAlignment="Right" Margin="0,0,2,0" Text="{Binding WeeklyLessonDate, StringFormat='yyyy-MM-dd'}"/&gt; &lt;/Border&gt; &lt;Border Name="border2" BorderThickness="0,0,1,1" BorderBrush="#FFCEDFF6" Grid.Column="1"&gt; &lt;TextBlock HorizontalAlignment="Center" Text="{Binding WeekNumber}"/&gt; &lt;/Border&gt; &lt;/Grid&gt; &lt;ControlTemplate.Triggers&gt; &lt;Trigger Property="IsHighlighted" Value="true"&gt; &lt;Setter TargetName="border1" Property="Background" Value="{StaticResource SelectedBackgroundBrush}"/&gt; &lt;Setter TargetName="border2" Property="Background" Value="{StaticResource SelectedBackgroundBrush}"/&gt; &lt;/Trigger&gt; &lt;Trigger Property="IsEnabled" Value="false"&gt; &lt;Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/&gt; &lt;/Trigger&gt; &lt;/ControlTemplate.Triggers&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;Setter Property="Foreground" Value="Red"/&gt; &lt;Style.Triggers&gt; &lt;Trigger Property="ComboBox.AlternationIndex" Value="0"&gt; &lt;Setter Property="Background" Value="White"&gt;&lt;/Setter&gt; &lt;/Trigger&gt; &lt;Trigger Property="ComboBox.AlternationIndex" Value="1"&gt; &lt;Setter Property="Background" &gt; &lt;Setter.Value&gt; &lt;LinearGradientBrush RenderOptions.EdgeMode="Aliased" StartPoint="0.5,0.0" EndPoint="0.5,1.0"&gt; &lt;GradientStop Color="#FFFEFEFF" Offset="0"/&gt; &lt;GradientStop Color="#FFE4F0FC" Offset="1"/&gt; &lt;/LinearGradientBrush&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Trigger&gt; &lt;/Style.Triggers&gt; &lt;/Style&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload