DesignTimePlaceholder

Apr 13, 2012 at 1:02 AM

<UserControl x:Class="Fox.Silverlight.Views.DesignTimePlaceholder"
    x:Name="Placeholder"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400" d:DesignWidth="400"
    BorderBrush="Black"
    Foreground="Black"
    Tag="Design-time placeholder for position only�">
    <Viewbox>
        <Canvas
            Clip="F1 M 0,0L 579,0L 579,579L 0,579L 0,0"
            Width="579" Height="579">
            <Path Canvas.Left="64.157" Canvas.Top="63.3174"
                Data="F1 M 515.776,514.936L 454.191,514.936L 291.356,354.988L 132.584,514.936L 64.157,514.936L 64.157,453.352L 226.351,291.158L 64.157,131.744L 64.157,63.3174L 132.584,63.3174L 293.388,224.121L 454.191,63.3174L 515.776,63.3174L 515.776,131.744L 358.073,288.592L 515.776,446.509L 515.776,514.936 Z "
                Fill="{Binding Foreground, ElementName=Placeholder}"
                Stretch="Fill"
                Width="451.619" Height="451.619"
                />
            <Path Canvas.Left="-8" Canvas.Top="8"
                Data="F1 M 22,7.99998L 557,7.99998C 564.732,7.99998 571,14.268 571,22L 571,557C 571,564.732 564.732,571 557,571L 22,571C 14.268,571 8,564.732 8,557L 8,22C 8,14.268 14.268,7.99998 22,7.99998 Z "
                Stretch="Fill"
                Stroke="{Binding BorderBrush, ElementName=Placeholder}" StrokeLineJoin="Round" StrokeThickness="16"
                Width="579" Height="579" UseLayoutRounding="False"
                />
            <TextBlock Canvas.Left="104.243" Canvas.Top="551.082"
                FontFamily="Segoe UI Semibold" FontSize="13.333"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                RenderTransformOrigin="0.5,0.5"
                Text="{Binding Tag, ElementName=Placeholder}"
                UseLayoutRounding="False" d:LayoutRounding="Auto">
                <TextBlock.RenderTransform>
                    <CompositeTransform Rotation="-45.25"/>
                </TextBlock.RenderTransform>
            </TextBlock>
        </Canvas>
    </Viewbox>
</UserControl>

Apr 13, 2012 at 1:40 AM

    <Viewbox>
        <Canvas
            Clip="F1 M 0,0L 579,0L 579,579L 0,579L 0,0"
            Width="579" Height="579">
            <Path Canvas.Left="64" Canvas.Top="64"
                Data="F1 M 515.776,514.936L 454.191,514.936L 291.356,354.988L 132.584,514.936L 64.157,514.936L 64.157,453.352L 226.351,291.158L 64.157,131.744L 64.157,63.3174L 132.584,63.3174L 293.388,224.121L 454.191,63.3174L 515.776,63.3174L 515.776,131.744L 358.073,288.592L 515.776,446.509L 515.776,514.936 Z "
                Fill="{Binding Foreground, ElementName=Placeholder}"
                Stretch="Fill"
                Width="451.619" Height="451.619"
                />
            <Path
                Data="F1 M 22,7.99998L 557,7.99998C 564.732,7.99998 571,14.268 571,22L 571,557C 571,564.732 564.732,571 557,571L 22,571C 14.268,571 8,564.732 8,557L 8,22C 8,14.268 14.268,7.99998 22,7.99998 Z "
                Stretch="Fill"
                Stroke="{Binding BorderBrush, ElementName=Placeholder}" StrokeLineJoin="Round" StrokeThickness="16"
                Width="579" Height="579" UseLayoutRounding="False"
                />
            <TextBlock Canvas.Left="8" Canvas.Top="16"
                FontFamily="Segoe UI Semibold" FontSize="24"
                Text="{Binding Tag, ElementName=Placeholder}"
                TextAlignment="Center" TextTrimming="WordEllipsis" TextWrapping="Wrap"
                Width="563" Height="48"
                />
        </Canvas>
    </Viewbox>