终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SiloPanel.xaml 887 B

2 年前
12345678910111213141516
  1. <UserControl x:Name="userControl" x:Class="WPFDemo.SiloPanel"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:WPFDemo"
  7. DataContext="{Binding RelativeSource={RelativeSource Self}}"
  8. mc:Ignorable="d" >
  9. <Viewbox >
  10. <Canvas Name="cvMain" Width="{Binding PanelWidth}" Height="{Binding PanelHeight}" Background="#B2C0E2E1">
  11. <StackPanel Orientation="Horizontal" Canvas.Top="5" Canvas.Left="5">
  12. <TextBlock FontSize="15" Text="{Binding Tips}"></TextBlock>
  13. </StackPanel>
  14. </Canvas>
  15. </Viewbox>
  16. </UserControl>