'Sharing a window in Teams with a custom WindowChrome flashes the original window chrome
I have a WPF desktop application with a window with a custom chrome. As soon as I set the WindowChrome style-property of the window, I have an issue when sharing that window in teams: the window chrome is toggling between the classic one, and my custom chrome.
There is no issue when sharing the screen instead of the window. We have this problem with Windows 11, but not Windows 10. Below the full XAML to reproduce this:
<Window x:Class="ControlTester.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ControlTester"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.Style>
<Style TargetType="{x:Type local:MainWindow}">
<Setter Property="WindowChrome.WindowChrome">
<Setter.Value>
<WindowChrome />
</Setter.Value>
</Setter>
</Style>
</Window.Style>
<DockPanel>
<TextBlock Text="This is my window with WindowChrome set"/>
</DockPanel>
</Window>
When sharing the window in Teams (Share content->Window)...
... both the presenter and the others in the meeting/call see this:
Any idea how to solve this?
Solution 1:[1]
Can you please raise a issue in Teams Desktop client like below:
- Open Teams desktop client and go to left side panel and click on Help.
- Select "Report a problem" and select appropriate category for your issue and raise a request.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Dharman |