MultiValue Tools

 View Only

 SB/XA XAML Style/Theme to Hide RESIZE Grip on Forms

  •   SB/XA
  •   STYLES
  •   THEME
  •   XAML
Aaron Glover's profile image
Aaron Glover posted 12-16-2021 21:17
Hi All,

Can anyone provide me with some guidance on how I can change the visibility of the Resize Grip which appears in SB/XA XAML Screens/Forms?

I have played with "Snoop" and have tested that changing the "Visibility" property of the ResizeGrip component to "Hidden" has the desired effect of disabling the ability for users to manually stretch and resize my forms.

I have managed to achieve this on Dialogs using something like below.

<Setter Property="sbc:SBForm.ShowResizeGrip" Value="False" />

But can't manage to hide it on standard forms.


Thanks in Advance
Aaron


#XAML #SB/XA #STYLES #THEME
Mark Shannon's profile image
ROCKETEER Mark Shannon
Hello Aaron,

I will open a case for you and seek advice from the engineering team.

Thanks, Mark.
Mark Shannon's profile image
ROCKETEER Mark Shannon
Hello Aaron,

Does this help:

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sbc="http://schemas.sbxa.com/WPFControls"
xmlns:sbe="clr-namespace:SBXA.UI.WPFControls.MarkupExtensions"
xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
>

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/SBXAWinFxControls;component/Themes/BaseSBFormStyle.xaml" />
</ResourceDictionary.MergedDictionaries>

<Style TargetType="{x:Type sbc:SBForm}" BasedOn="{StaticResource BaseSBFormStyle}">
<Setter Property="ShowResizeGrip" Value="False" />
</Style>

</ResourceDictionary>

Thanks, Mark.