终端一体化运控平台
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.
 
 
 

54 line
3.4 KiB

  1. <Window x:Class="BeDesignerSCADA.View.PropertyBindingWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BeDesignerSCADA.View"
  7. mc:Ignorable="d"
  8. Title="PropertyBindingWindow" Height="220" Width="400"
  9. Background="White"
  10. BorderBrush="#FFDEDEDE"
  11. BorderThickness="1"
  12. ResizeMode="NoResize"
  13. WindowStyle="None"
  14. WindowStartupLocation="CenterOwner">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="40"/>
  18. <RowDefinition/>
  19. <RowDefinition Height="40"/>
  20. </Grid.RowDefinitions>
  21. <TextBlock FontSize="20" Margin="10,10,0,0">属性绑定器</TextBlock>
  22. <Grid Grid.Row="1">
  23. <StackPanel>
  24. <StackPanel Margin="10,0,0,10" Orientation="Horizontal">
  25. <TextBlock Foreground="Green" FontSize="16" Text="当前设置属性名称为:" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  26. <TextBlock x:Name="ProperpName" Foreground="Red" FontSize="14" Text="属性名称" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  27. </StackPanel>
  28. <TextBlock Margin="10,0,0,0" Foreground="Green" FontSize="12" Text="Redis数据绑定模板" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  29. <Grid Margin="0,5,0,5">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="40" />
  32. <ColumnDefinition Width="*" x:Name="key"/>
  33. <ColumnDefinition Width="*" x:Name="Text"/>
  34. </Grid.ColumnDefinitions>
  35. <ComboBox x:Name="namebox" DropDownOpened="namebox_DropDownOpened" Grid.Column="1" Height="25" IsTextSearchEnabled="True" IsEditable="True" Tag="{Binding Text, ElementName=valuebox}" TextBoxBase.TextChanged="ComboBoxName_TextChanged"
  36. >
  37. </ComboBox>
  38. <ComboBox x:Name="valuebox" Margin="20,0,20,0" DropDownOpened="valuebox_DropDownOpened" Grid.Column="2" Height="25" IsTextSearchEnabled="True" IsEditable="True" Tag="{Binding Text, ElementName=namebox}" TextBoxBase.TextChanged="ComboBoxValue_TextChanged"
  39. />
  40. </Grid>
  41. <TextBlock Margin="10,0,0,0" Foreground="Green" FontSize="12" Text="最终模板" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  42. <TextBox x:Name="BindingName" Margin="10,0,20,0" Height="24" Grid.Column="1" ></TextBox>
  43. </StackPanel>
  44. </Grid>
  45. <StackPanel Grid.Row="2" Margin="0,0,16,10" Orientation="Horizontal" HorizontalAlignment="Right">
  46. <Button Width="120" Height="30" Content="解除所有绑定" x:Name="ClearBtn" Click="ClearBtn_Click" Margin="0,0,10,0"/>
  47. <Button Width="80" Height="30" Content="取消" x:Name="CancelBtn" Click="CancelBtn_Click" IsCancel="True"/>
  48. <Button Width="80" Height="30" Content="确认" x:Name="ConfirmBtn" Margin="8 0 4 0" Click="ConfirmBtn_Click"/>
  49. </StackPanel>
  50. </Grid>
  51. </Window>