MyMsgText.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Grid x:Class="MyMsgText"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:my="clr-namespace:PCL"
  5. RenderTransformOrigin="0,0.5" UseLayoutRounding="True" SnapsToDevicePixels="True" MinWidth="400" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="25">
  6. <Grid.RenderTransform>
  7. <TransformGroup>
  8. <RotateTransform x:Name="TransformRotate" Angle="-4" />
  9. <TranslateTransform x:Name="TransformPos" X="0" Y="40" />
  10. </TransformGroup>
  11. </Grid.RenderTransform>
  12. <Border Name="PanBorder" CornerRadius="7" Background="#FBFBFB">
  13. <Border.Effect>
  14. <DropShadowEffect Color="{DynamicResource ColorObject1}" BlurRadius="20" ShadowDepth="4" RenderingBias="Performance" Opacity="0.8" x:Name="EffectShadow" />
  15. </Border.Effect>
  16. <Grid Name="PanMain" VerticalAlignment="Top" Margin="22,22,22,23">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="2" />
  20. <RowDefinition Height="13" />
  21. <RowDefinition Height="1*" />
  22. <RowDefinition Height="Auto" />
  23. </Grid.RowDefinitions>
  24. <TextBlock Grid.Row="0" FontSize="23" TextTrimming="None" Foreground="{DynamicResource ColorBrush2}" HorizontalAlignment="Left" Name="LabTitle" Margin="7,-1,70,9" Text="测试标题文本" VerticalAlignment="Top" SnapsToDevicePixels="False" UseLayoutRounding="False" />
  25. <Rectangle x:Name="ShapeLine" Grid.Row="1" Height="2" Fill="{Binding Foreground, ElementName=LabTitle}" />
  26. <my:MyScrollViewer Grid.Row="3" VerticalAlignment="Top" x:Name="PanCaption" Margin="0,0,0,17" Padding="7,0,15,0"
  27. VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" DeltaMult="0.7">
  28. <TextBlock VerticalAlignment="Top" TextTrimming="None" TextWrapping="Wrap" Name="LabCaption" FontSize="15" LineHeight="18"
  29. Foreground="#FF5C5C5C" FontWeight="Normal" Padding="1" />
  30. </my:MyScrollViewer>
  31. <StackPanel Grid.Row="4" Name="PanBtn" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="150,0,8,0" Orientation="Horizontal">
  32. <my:MyButton ColorType="Normal" x:FieldModifier="public" Text="测试按钮1" x:Name="Btn1" Margin="12,0,0,0" TextPadding="7" SnapsToDevicePixels="False" Padding="5,0" UseLayoutRounding="False" />
  33. <my:MyButton ColorType="Normal" x:FieldModifier="public" Text="测试按钮2" x:Name="Btn2" Margin="12,0,0,0" TextPadding="7" SnapsToDevicePixels="False" Padding="5,0" UseLayoutRounding="False" />
  34. <my:MyButton ColorType="Normal" x:FieldModifier="public" Text="测试按钮3" x:Name="Btn3" Margin="12,0,0,0" TextPadding="7" SnapsToDevicePixels="False" Padding="5,0" UseLayoutRounding="False" />
  35. </StackPanel>
  36. </Grid>
  37. </Border>
  38. </Grid>