Refactor and enhance overlay feedback handling
- Promote `_containerPanel` to a protected property for better accessibility - Extract `CoerceDelta` method to centralize constraint logic - Implement `AnchorAndUpdatePositionInfo` across dialog controls for consistent positioning behavior - Adjust margin binding for `DialogResizer` to include parent border margin - Simplify pointer movement calculations and conditional checks
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
<u:DialogResizer IsVisible="{TemplateBinding CanResize}" />
|
||||
<u:DialogResizer IsVisible="{TemplateBinding CanResize}" Margin="{Binding #PART_Border.Margin}" />
|
||||
</Panel>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
@@ -242,7 +242,7 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
<u:DialogResizer IsVisible="{TemplateBinding CanResize}"/>
|
||||
<u:DialogResizer IsVisible="{TemplateBinding CanResize}" Margin="{Binding #PART_Border.Margin}"/>
|
||||
</Panel>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
|
||||
Reference in New Issue
Block a user