Skip to main content
Question

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

  • December 16, 2021
  • 2 replies
  • 0 views

Aaron Glover
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

2 replies

Mark Shannon
  • Rocketeer
  • 13 replies
  • December 19, 2021
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
Hello Aaron,

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

Thanks, Mark.

Mark Shannon
  • Rocketeer
  • 13 replies
  • December 20, 2021
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
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.