Touch friendly OpenFileDialog, FolderBrowserDialog

Shell for WPF Forum

Posted 3 years ago by Daniel Constantin - ModuleWorks GmbH
Version: 19.1.0687
Avatar

Hi,

I work on a touch friendly application and I would need some touch friendly OpenFileDialog and FolderBrowserDialog.

If there is nothing like this inside actipro suite, there is support to change some of the components in the Shell like the Browse for folder component to make it more touch friendly ?

Kind regards,

Daniel

Comments (1)

Answer - Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

If you want your entire window to render scale up uniformly, you could apply a ScaleTransform to your Window's root element's LayoutTransform property.

Alternatively if you want to handle controls individually, making apps more touch friendly generally revolves around using a larger font size, sometimes larger icons, and increasing padding on controls.

For instance in the Browse for Folder demo, you could apply this style:

<shell:ShellTreeListBox x:Name="treeListBox" Grid.Row="1" Margin="0,5,0,10" RootSpecialFolderKind="Default" IsNewFolderContextMenuItemAllowed="True">
	<shell:ShellTreeListBox.ItemContainerStyle>
		<Style TargetType="grids:TreeListBoxItem">
			<Setter Property="Padding" Value="10,7,15,7" />
		</Style>
	</shell:ShellTreeListBox.ItemContainerStyle>
</shell:ShellTreeListBox>

Also update the Buttons to have more Padding, and possibly increase the FontSize of all controls if appropriate too.


Actipro Software Support

The latest build of this product (v24.1.3) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.