none
Elemente zoomen nicht bei Windows resize RRS feed

  • Frage

  • Hallo

    Die Darstellung ist korrekt bei Grid Height/Width 150. Bei Windows resize, bleiben Rechtecke/Ellipse gleich. Was muss man definieren?

    <UserControl x:Class="AxUserControl.AnalogClockControl" 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="150" d:DesignWidth="150" Name="AnalogClockControlDesign" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Image Name="ClockBackground" Source="/AxUserControl;component/Properties/ClockBgr.gif" /> <Image Name="Logo" Width="30" Source="/AxUserControl;component/Properties/Logo.png" Margin="61,101,59,24" /> <Rectangle Name="SecondHand" Width="3" Height="48" RenderTransformOrigin="0.5,1" Fill="#FFCB4141" Margin="74,0,73,74" VerticalAlignment="Bottom" Panel.ZIndex="30"> <Rectangle.RenderTransform> <RotateTransform x:Name="SecondRotate" Angle="0"/> </Rectangle.RenderTransform> </Rectangle> <Rectangle Name="MinuteHand" Width="5" Height="43" RenderTransformOrigin="0.5,1" Fill="#FF3A8FBE" Margin="73,0,72,74" VerticalAlignment="Bottom" Panel.ZIndex="20"> <Rectangle.RenderTransform> <RotateTransform x:Name="MinuteRotate" Angle="0"/> </Rectangle.RenderTransform> </Rectangle> <Rectangle Name="HourHand" Width="5" Height="28" RenderTransformOrigin="0.5,1" Fill="#FF3A8FBE" Margin="73,0,72,74" VerticalAlignment="Bottom" Panel.ZIndex="10"> <Rectangle.RenderTransform> <RotateTransform x:Name="HourRotate" Angle="0"/> </Rectangle.RenderTransform> </Rectangle> <Ellipse Height="5" HorizontalAlignment="Left" Margin="73,74,0,0" Name="ClockCenter" Stroke="DarkGray" VerticalAlignment="Top" Width="5" Fill="DimGray" Panel.ZIndex="40" /> </Grid> </UserControl>


    • Bearbeitet JanM2 Samstag, 17. Januar 2015 21:19
    Samstag, 17. Januar 2015 20:56

Antworten

Alle Antworten