终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SiloPanel.xaml 887 B

2 jaren geleden
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>