aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/NotificationItems/NewSynchronizardJobsNotificationItemView.xaml
blob: 5a57e3db75475b071fa296f5b6f105829e049210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<UserControl x:Class="Tango.PPC.Jobs.NotificationItems.NewSynchronizardJobsNotificationItemView"
             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:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:local="clr-namespace:Tango.PPC.Jobs.NotificationItems"
             xmlns:common="clr-namespace:Tango.PPC.Common.Converters"
             mc:Ignorable="d" 
             x:Name="MessageNotificationItemControl"
             d:DesignHeight="60" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=local:NewSynchronizardJobsNotificationItem, IsDesignTimeCreatable=False}" MinHeight="90" Height="90" MaxHeight="150" Background="White">

    <UserControl.Resources>
        <BitmapImage x:Key="icon" UriSource="../Images/sync_job.png" />
    </UserControl.Resources>

    <Grid>
        <Border BorderThickness="0 0 0 2" BorderBrush="{StaticResource TangoPrimaryAccentBrush}" Padding="15">
            <DockPanel>
                <Image Source="{StaticResource icon}" MaxHeight="50" />

                <Grid>
                    <TextBlock Margin="20 0 0 0" VerticalAlignment="Center">
                         New job definitions were synchronized with your machine. Tap to refresh your job list.
                    </TextBlock>
                </Grid>
            </DockPanel>
        </Border>
    </Grid>
</UserControl>
="c1">/// class simply displays the created Visual Lines. /// </summary> /// <remarks> /// This class does not contain any input handling and is invisible to hit testing. Input /// is handled by the TextView. /// This allows UIElements that are displayed behind the text, but still can react to mouse input. /// </remarks> sealed class TextLayer : Layer { /// <summary> /// the index of the text layer in the layers collection /// </summary> internal int index; public TextLayer(TextView textView) : base(textView, KnownLayer.Text) { } List<VisualLineDrawingVisual> visuals = new List<VisualLineDrawingVisual>(); internal void SetVisualLines(ICollection<VisualLine> visualLines) { foreach (VisualLineDrawingVisual v in visuals) { if (v.VisualLine.IsDisposed) RemoveVisualChild(v); } visuals.Clear(); foreach (VisualLine newLine in visualLines) { VisualLineDrawingVisual v = newLine.Render(); if (!v.IsAdded) { AddVisualChild(v); v.IsAdded = true; } visuals.Add(v); } InvalidateArrange(); } protected override int VisualChildrenCount { get { return visuals.Count; } } protected override Visual GetVisualChild(int index) { return visuals[index]; } protected override void ArrangeCore(Rect finalRect) { textView.ArrangeTextLayer(visuals); } } }