Skip to content

Commit ab0d7b3

Browse files
authored
Merge pull request #1676 from mrlacey/patch-1
remove incorrectly duplicated word
2 parents 73d7117 + fc8b266 commit ab0d7b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/extensibility/ux-guidelines/fonts-and-formatting-for-visual-studio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ window.ShowModal()
7777

7878
`ShowModal` returns a bool? (nullable Boolean) with the `DialogResult`, which can be used if needed. The return value is true if the dialog was closed with **OK**.
7979

80-
If you need to display some WPF UI that is not a dialog and is hosted in its own `HwndSource`, such as a popup window or a WPF child window of a Win32/WinForms parent window window, you will need to set the `FontFamily` and `FontSize` on the root element of the WPF element. (The shell sets the properties on the main window, but they will not be inherited past a `HWND`). The shell provides resources to which the properties can be bound, like this:
80+
If you need to display some WPF UI that is not a dialog and is hosted in its own `HwndSource`, such as a popup window or a WPF child window of a Win32/WinForms parent window, you will need to set the `FontFamily` and `FontSize` on the root element of the WPF element. (The shell sets the properties on the main window, but they will not be inherited past a `HWND`). The shell provides resources to which the properties can be bound, like this:
8181

8282
```xaml
8383
<Setter Property="FontFamily" Value="{DynamicResource VsFont.EnvironmentFontFamily}" />
@@ -461,4 +461,4 @@ protected static void SetFontStyles(Control topControl, Control parent, Font ref
461461

462462
## See Also
463463
[MSDN: Fonts (Windows)](/windows/desktop/uxguide/vis-fonts)
464-
[MSDN: User Interface Text (Windows)](/windows/desktop/uxguide/text-ui)
464+
[MSDN: User Interface Text (Windows)](/windows/desktop/uxguide/text-ui)

0 commit comments

Comments
 (0)