Share via

UWP print support app default window size

Ambigavathi Dhanapal 5 Reputation points
2026-06-18T11:41:42.03+00:00

We are developing print support app for label printer using UWP. Here we have designed printing preference page as below.

User's image

But when we click printing preference page it shows as below.

User's image

Is there any way to fix the screen size issue? Also is there a way to remove title bar from this window?

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments

2 answers

Sort by: Most helpful
  1. Danny Nguyen (WICLOUD CORPORATION) 7,345 Reputation points Microsoft External Staff Moderator
    2026-06-19T06:06:23.74+00:00

    Hi @Ambigavathi Dhanapal .

    From the screenshot, it looks like the page content is wider than the window that is hosting the print preferences UI. For a UWP Print Support App/settings UI, the outer preferences window is generally hosted by Windows, so the app may not have the same control over the window size or title bar as it would in a normal standalone UWP window.

    I would first check the XAML layout of the preferences page:

    • Avoid fixed Width, MinWidth, or large fixed margins on the root Grid, panels, or columns.
    • Use Grid star sizing (*) / Auto columns instead of hardcoded pixel widths.
    • Put the main content inside a ScrollViewer if the content can exceed the available window size.
    • Use VisualStateManager / AdaptiveTrigger to change the layout when the available width is smaller, for example moving the print preview section below the settings section or hiding/collapsing it.
    • Check whether the issue changes with Windows display scaling / DPI settings.

    For example, the page could be structured more like this:

    <ScrollViewer
        HorizontalScrollBarVisibility="Auto"
        VerticalScrollBarVisibility="Auto">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
    
            <!-- Left menu -->
            <!-- Main settings content -->
            <!-- Print preview panel -->
        </Grid>
    </ScrollViewer>
    

    For the title bar, if this is the Windows-hosted print preferences/settings window, it may not be removable from the app side. UWP title bar customization APIs apply to the app’s own window, but they may not affect the shell/window frame used by the print preferences host.

    Could you please share the XAML of the preferences page and the code where you handle the Print Support Settings UI activation / navigation? That would make it easier to confirm whether this is caused by fixed layout sizing in the page or by the host window behavior. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.

    Thank you.

    Was this answer helpful?


  2. AI answer

    2026-06-18T11:42:00.6366667+00:00

    The window that hosts a print support settings UI is owned and sized by Windows; the app content is shown inside a flyout/dialog whose dimensions are fixed by the platform. A print support app (or legacy UWP device app using windows.printTaskSettings / windows.printSupportSettingsUI) cannot control that outer window’s default size or remove its title bar.

    The customization that is supported is limited to the content inside the flyout:

    • For UWP device apps that replace the advanced print settings experience, the advanced settings are always shown in a flyout that is 646 px wide with a fixed title area; only the content area can scroll or reflow. The title bar (with back button and app title) is provided by Windows and cannot be removed or resized.
    • For Print Support Apps using the windows.printSupportSettingsUI contract, the app receives a PrintSupportSettingsUISession and is expected to present its own UI inside the dialog provided by Windows. The dialog is invoked from More Settings / Preferences / Printing Preferences and its shell chrome (including title bar) is controlled by Windows, not by the app.

    To handle different host sizes, the app should:

    • Design the settings page to be responsive and to reflow within the documented flyout dimensions.
    • Use scrolling where necessary when content exceeds the visible area.

    There is no supported way to:

    • Force a different default window size for the print preferences dialog/flyout.
    • Remove or hide the title bar provided by Windows.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.