|
@@ -30,6 +30,7 @@
|
|
|
<Convert:StringToUnVisibleConvert x:Key="StringToUnVisibleConvert" />
|
|
|
<Convert:BoolToVisible x:Key="BoolToVisible" />
|
|
|
<Convert:VisibleToBoolConvert x:Key="VisibleToBoolConvert" />
|
|
|
+ <Convert:UnVisivleConvert x:Key="UnVisivleConvert" />
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
<Grid>
|
|
@@ -165,159 +166,180 @@
|
|
|
X2="232"
|
|
|
Y1="0"
|
|
|
Y2="0" />-->
|
|
|
- <Grid MinWidth="260">
|
|
|
- <!--<StackPanel Name="LinkPagePanel" Visibility="{Binding ElementName=BtnLinkPage, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">-->
|
|
|
- <StackPanel Name="LinkPagePanel">
|
|
|
- <TextBlock
|
|
|
- x:Name="TxtPage"
|
|
|
- Height="20"
|
|
|
- Margin="16,0,0,4"
|
|
|
- FontFamily="Segoe UI"
|
|
|
- FontSize="12"
|
|
|
- FontWeight="Bold"
|
|
|
- Foreground="{StaticResource color.sys.text.neutral.lv2}"
|
|
|
- LineHeight="20"
|
|
|
- Text="{Binding T_Page}" />
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <CustomControl:TextBoxWithTip
|
|
|
- x:Name="PageNumText"
|
|
|
+ <StackPanel Orientation="Vertical" Visibility="{Binding IsEmptyPanelVisibility, Converter={StaticResource UnVisivleConvert}}">
|
|
|
+ <Grid MinWidth="260">
|
|
|
+ <!--<StackPanel Name="LinkPagePanel" Visibility="{Binding ElementName=BtnLinkPage, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">-->
|
|
|
+ <StackPanel Name="LinkPagePanel">
|
|
|
+ <TextBlock
|
|
|
+ x:Name="TxtPage"
|
|
|
+ Height="20"
|
|
|
+ Margin="16,0,0,4"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="12"
|
|
|
+ FontWeight="Bold"
|
|
|
+ Foreground="{StaticResource color.sys.text.neutral.lv2}"
|
|
|
+ LineHeight="20"
|
|
|
+ Text="{Binding T_Page}" />
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <CustomControl:TextBoxWithTip
|
|
|
+ x:Name="PageNumText"
|
|
|
+ Width="228"
|
|
|
+ Margin="16,0"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ IsEnabled="{Binding PageNumTextIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ IsError="{Binding ElementName=PageNumText, Path=ShowTip, Converter={StaticResource VisibleToBoolConvert}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ PlaceHoldText="{Binding PageNumPlaceHoldText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ ShowTip="{Binding ShowPageNumTip, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Text="{Binding PageNumTextContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ TipText="{Binding PageNumTipText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="LostFocus">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageNumTextLostFocusCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="KeyDown">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageNumTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CustomControl:TextBoxWithTip>
|
|
|
+ </StackPanel>
|
|
|
+ <ToggleButton
|
|
|
+ Name="BtnLocation"
|
|
|
Width="228"
|
|
|
- Margin="16,0"
|
|
|
- VerticalContentAlignment="Center"
|
|
|
- IsEnabled="{Binding PageNumTextIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- IsError="{Binding ElementName=PageNumText, Path=ShowTip, Converter={StaticResource VisibleToBoolConvert}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- PlaceHoldText="{Binding PageNumPlaceHoldText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- ShowTip="{Binding ShowPageNumTip, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- Text="{Binding PageNumTextContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- TipText="{Binding PageNumTipText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="LostFocus">
|
|
|
- <i:InvokeCommandAction Command="{Binding PageNumTextLostFocusCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- <i:EventTrigger EventName="KeyDown">
|
|
|
- <i:InvokeCommandAction Command="{Binding PageNumTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </CustomControl:TextBoxWithTip>
|
|
|
+ Height="32"
|
|
|
+ Margin="16,30,16,0"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderBrush="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ Command="{Binding LocationCommand}"
|
|
|
+ IsChecked="{Binding BtnLocationIsChecked}"
|
|
|
+ IsEnabled="{Binding BtnLocationIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Style="{StaticResource LinkToolbarTgb}">
|
|
|
+ <ToggleButton.Content>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Path
|
|
|
+ Name="PathLocation"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Data="M15.064 6.88052L13.5661 6.49468L9.57748 11.6857L10.2156 13.8898C10.3593 14.3863 9.74722 14.7479 9.38174 14.3824L6.59721 11.5979L0.0145727 15.9711L4.38786 9.38851L1.60356 6.60421C1.23807 6.23873 1.59967 5.62665 2.09615 5.77038L4.30107 6.40871L9.49166 2.42039L9.10576 0.92227C8.97879 0.42937 9.58359 0.0840825 9.9435 0.443993L15.5423 6.04277C15.9022 6.40268 15.5569 7.00748 15.064 6.88052Z"
|
|
|
+ Fill=" #616469" />
|
|
|
+ <TextBlock Margin="10,0" Text="定位目标区域" />
|
|
|
+ </StackPanel>
|
|
|
+ </ToggleButton.Content>
|
|
|
+ </ToggleButton>
|
|
|
+ <Image
|
|
|
+ Name="ImagePreview"
|
|
|
+ Width="{Binding ImagePreviewWidth}"
|
|
|
+ Height="{Binding ImagePreviewHeight}"
|
|
|
+ Margin="32"
|
|
|
+ Source="{Binding PreviewImage}"
|
|
|
+ Visibility="{Binding ImagePreviewVisibility}" />
|
|
|
</StackPanel>
|
|
|
- <ToggleButton
|
|
|
- Name="BtnLocation"
|
|
|
- Width="228"
|
|
|
- Height="32"
|
|
|
- Margin="16,30,16,0"
|
|
|
- Background="Transparent"
|
|
|
- BorderBrush="Transparent"
|
|
|
- BorderThickness="0"
|
|
|
- Command="{Binding LocationCommand}"
|
|
|
- IsChecked="{Binding BtnLocationIsChecked}"
|
|
|
- IsEnabled="{Binding BtnLocationIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- Style="{StaticResource LinkToolbarTgb}">
|
|
|
- <ToggleButton.Content>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Path
|
|
|
- Name="PathLocation"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- VerticalAlignment="Center"
|
|
|
- Data="M15.064 6.88052L13.5661 6.49468L9.57748 11.6857L10.2156 13.8898C10.3593 14.3863 9.74722 14.7479 9.38174 14.3824L6.59721 11.5979L0.0145727 15.9711L4.38786 9.38851L1.60356 6.60421C1.23807 6.23873 1.59967 5.62665 2.09615 5.77038L4.30107 6.40871L9.49166 2.42039L9.10576 0.92227C8.97879 0.42937 9.58359 0.0840825 9.9435 0.443993L15.5423 6.04277C15.9022 6.40268 15.5569 7.00748 15.064 6.88052Z"
|
|
|
- Fill=" #616469" />
|
|
|
- <TextBlock Margin="10,0" Text="定位目标区域" />
|
|
|
- </StackPanel>
|
|
|
- </ToggleButton.Content>
|
|
|
- </ToggleButton>
|
|
|
- <Image
|
|
|
- Name="ImagePreview"
|
|
|
- Width="{Binding ImagePreviewWidth}"
|
|
|
- Height="{Binding ImagePreviewHeight}"
|
|
|
- Margin="32"
|
|
|
- Source="{Binding PreviewImage}"
|
|
|
- Visibility="{Binding ImagePreviewVisibility}" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Name="LinkWebPanel" Visibility="{Binding ElementName=BtnLinkWeb, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">
|
|
|
- <TextBlock
|
|
|
- Height="20"
|
|
|
- Margin="16,12,0,4"
|
|
|
- FontFamily="Segoe UI"
|
|
|
- FontSize="12"
|
|
|
- Foreground="#616469"
|
|
|
- LineHeight="20"
|
|
|
- Text="URL" />
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <CustomControl:TextBoxWithTip
|
|
|
- x:Name="PageWebText"
|
|
|
- Width="228"
|
|
|
- Margin="16,0"
|
|
|
- VerticalContentAlignment="Center"
|
|
|
- IsEnabled="{Binding PageWebTextIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- IsError="{Binding ElementName=PageWebText, Path=ShowTip, Converter={StaticResource VisibleToBoolConvert}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- PlaceHoldText="{Binding PageWebPlaceHoldText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- ShowTip="{Binding ShowPageWebTip, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- Text="{Binding PageWebTextContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- TipText="{Binding PageWebTipText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="LostFocus">
|
|
|
- <i:InvokeCommandAction Command="{Binding PageWebTextLostFocusCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- <i:EventTrigger EventName="KeyDown">
|
|
|
- <i:InvokeCommandAction Command="{Binding PageWebTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </CustomControl:TextBoxWithTip>
|
|
|
+
|
|
|
+ <!--<StackPanel Name="LinkWebPanel" Visibility="{Binding ElementName=BtnLinkWeb, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">-->
|
|
|
+ <StackPanel Name="LinkWebPanel" Visibility="Collapsed">
|
|
|
+ <TextBlock
|
|
|
+ Height="20"
|
|
|
+ Margin="16,12,0,4"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="12"
|
|
|
+ Foreground="#616469"
|
|
|
+ LineHeight="20"
|
|
|
+ Text="URL" />
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <CustomControl:TextBoxWithTip
|
|
|
+ x:Name="PageWebText"
|
|
|
+ Width="228"
|
|
|
+ Margin="16,0"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ IsEnabled="{Binding PageWebTextIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ IsError="{Binding ElementName=PageWebText, Path=ShowTip, Converter={StaticResource VisibleToBoolConvert}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ PlaceHoldText="{Binding PageWebPlaceHoldText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ ShowTip="{Binding ShowPageWebTip, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Text="{Binding PageWebTextContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ TipText="{Binding PageWebTipText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="LostFocus">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageWebTextLostFocusCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="KeyDown">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageWebTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CustomControl:TextBoxWithTip>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Name="LinkMailPanel" Visibility="{Binding ElementName=BtnLinkMail, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">
|
|
|
- <TextBlock
|
|
|
- Height="20"
|
|
|
- Margin="16,12,0,4"
|
|
|
- FontFamily="Segoe UI"
|
|
|
- FontSize="12"
|
|
|
- Foreground="#616469"
|
|
|
- LineHeight="20"
|
|
|
- Text="Email" />
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <CustomControl:TextBoxWithTip
|
|
|
- x:Name="PageMailText"
|
|
|
- Width="228"
|
|
|
- Margin="16,0"
|
|
|
- VerticalContentAlignment="Center"
|
|
|
- IsEnabled="{Binding PageMailTextIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- IsError="{Binding ElementName=PageMailText, Path=ShowTip, Converter={StaticResource VisibleToBoolConvert}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- PlaceHoldText="{Binding PageMailPlaceHoldText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- ShowTip="{Binding ShowPageMailTip, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- Text="{Binding PageMailTextContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
- TipText="{Binding PageMailTipText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="LostFocus">
|
|
|
- <i:InvokeCommandAction Command="{Binding PageMailTextLostFocusCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- <i:EventTrigger EventName="KeyDown">
|
|
|
- <i:InvokeCommandAction Command="{Binding PageMailTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </CustomControl:TextBoxWithTip>
|
|
|
+ <!--<StackPanel Name="LinkMailPanel" Visibility="{Binding ElementName=BtnLinkMail, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">-->
|
|
|
+ <StackPanel Name="LinkMailPanel" Visibility="Collapsed">
|
|
|
+ <TextBlock
|
|
|
+ Height="20"
|
|
|
+ Margin="16,12,0,4"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="12"
|
|
|
+ Foreground="#616469"
|
|
|
+ LineHeight="20"
|
|
|
+ Text="Email" />
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <CustomControl:TextBoxWithTip
|
|
|
+ x:Name="PageMailText"
|
|
|
+ Width="228"
|
|
|
+ Margin="16,0"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ IsEnabled="{Binding PageMailTextIsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ IsError="{Binding ElementName=PageMailText, Path=ShowTip, Converter={StaticResource VisibleToBoolConvert}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ PlaceHoldText="{Binding PageMailPlaceHoldText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ ShowTip="{Binding ShowPageMailTip, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Text="{Binding PageMailTextContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ TipText="{Binding PageMailTipText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="LostFocus">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageMailTextLostFocusCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="KeyDown">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageMailTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CustomControl:TextBoxWithTip>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Button
|
|
|
- x:Name="BtnGOorBack"
|
|
|
- Background="Transparent"
|
|
|
- BorderThickness="0"
|
|
|
- Command="{Binding BtnGOorBackPageCommand}"
|
|
|
- Content="{Binding BtnGOorBackContent}"
|
|
|
- FontSize="16"
|
|
|
- Style="{StaticResource btn.link}"
|
|
|
- Tag="GO"
|
|
|
- Visibility="{Binding BtnGOorBackVisibility}">
|
|
|
- <Button.CommandParameter>
|
|
|
- <MultiBinding Converter="{StaticResource ResourceKey=ObjectConvert}" Mode="TwoWay">
|
|
|
- <MultiBinding.Bindings>
|
|
|
- <Binding ElementName="BtnGOorBack" />
|
|
|
- <Binding ElementName="BtnLinkPage" />
|
|
|
- <Binding ElementName="BtnLinkWeb" />
|
|
|
- <Binding ElementName="BtnLinkMail" />
|
|
|
- </MultiBinding.Bindings>
|
|
|
- </MultiBinding>
|
|
|
- </Button.CommandParameter>
|
|
|
- </Button>
|
|
|
+ </Grid>
|
|
|
+ <Button
|
|
|
+ x:Name="BtnGOorBack"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ Command="{Binding BtnGOorBackPageCommand}"
|
|
|
+ Content="{Binding BtnGOorBackContent}"
|
|
|
+ FontSize="16"
|
|
|
+ Style="{StaticResource btn.link}"
|
|
|
+ Tag="GO"
|
|
|
+ Visibility="{Binding BtnGOorBackVisibility}">
|
|
|
+ <Button.CommandParameter>
|
|
|
+ <MultiBinding Converter="{StaticResource ResourceKey=ObjectConvert}" Mode="TwoWay">
|
|
|
+ <MultiBinding.Bindings>
|
|
|
+ <Binding ElementName="BtnGOorBack" />
|
|
|
+ <Binding ElementName="BtnLinkPage" />
|
|
|
+ <Binding ElementName="BtnLinkWeb" />
|
|
|
+ <Binding ElementName="BtnLinkMail" />
|
|
|
+ </MultiBinding.Bindings>
|
|
|
+ </MultiBinding>
|
|
|
+ </Button.CommandParameter>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel
|
|
|
+ Name="EmptyPanel"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Visibility="{Binding IsEmptyPanelVisibility}">
|
|
|
+ <Image
|
|
|
+ Width="128"
|
|
|
+ Height="128"
|
|
|
+ Source="pack://application:,,,/Resources/PropertyPanel/no link.png" />
|
|
|
+ <TextBlock
|
|
|
+ Name="txtEmpty"
|
|
|
+ Margin="0,12,0,0"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="16"
|
|
|
+ Text="{Binding T_EmptyTitle}"
|
|
|
+ TextAlignment="Center" TextWrapping="Wrap" />
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
<!--<i:Interaction.Triggers>
|