-
Notifications
You must be signed in to change notification settings - Fork 675
DYN-7099: notification focus fix #16321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5da184e
notification focus fix
dnenov ab7c5bf
fix failing smoke test
dnenov 3f109a6
test if changes are responsible for smoke test failure
dnenov 92f7c94
sync call focus
dnenov 1332b47
clean-up
dnenov 551b3a3
test fail fix
dnenov e5e1e64
capture errors for native calls
dnenov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,79 +1,82 @@ | ||
| <Popup x:Class="Dynamo.Notifications.View.NotificationUI" | ||
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
| xmlns:ui="clr-namespace:Dynamo.UI;assembly=DynamoCoreWpf" | ||
| xmlns:controls="clr-namespace:Dynamo.Controls;assembly=DynamoCoreWpf" | ||
| xmlns:p="clr-namespace:Dynamo.Wpf.Properties;assembly=DynamoCoreWpf" | ||
| xmlns:fa="http://schemas.fontawesome.io/icons/" | ||
| xmlns:wv2="clr-namespace:Dynamo.Wpf.Utilities;assembly=DynamoCoreWpf" | ||
| mc:Ignorable="d" | ||
| AllowsTransparency="True" | ||
| StaysOpen="False" | ||
| Opacity="0.5" | ||
| Width="340" | ||
| Height="598"> | ||
| <Popup | ||
| x:Class="Dynamo.Notifications.View.NotificationUI" | ||
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
| xmlns:controls="clr-namespace:Dynamo.Controls;assembly=DynamoCoreWpf" | ||
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
| xmlns:fa="http://schemas.fontawesome.io/icons/" | ||
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:p="clr-namespace:Dynamo.Wpf.Properties;assembly=DynamoCoreWpf" | ||
| xmlns:ui="clr-namespace:Dynamo.UI;assembly=DynamoCoreWpf" | ||
| xmlns:wv2="clr-namespace:Dynamo.Wpf.Utilities;assembly=DynamoCoreWpf" | ||
| Width="340" | ||
| Height="598" | ||
| AllowsTransparency="True" | ||
| Opacity="0.5" | ||
| Opened="NotificationUI_Opened" | ||
| StaysOpen="False" | ||
| mc:Ignorable="d"> | ||
| <Popup.Resources> | ||
| <ResourceDictionary> | ||
| <ResourceDictionary.MergedDictionaries> | ||
| <ui:SharedResourceDictionary Source="{x:Static ui:SharedDictionaryManager.DynamoConvertersDictionaryUri}" /> | ||
| <ui:SharedResourceDictionary Source="{x:Static ui:SharedDictionaryManager.DynamoModernDictionaryUri}" /> | ||
| </ResourceDictionary.MergedDictionaries> | ||
| <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> | ||
| <controls:PointsToPathConverter x:Key="PointsToPathConverter"/> | ||
| <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> | ||
| <controls:PointsToPathConverter x:Key="PointsToPathConverter" /> | ||
| </ResourceDictionary> | ||
| </Popup.Resources> | ||
| <Canvas Background="Transparent" | ||
| Name="RootLayout" > | ||
| <Path x:Name="PopupPathRectangle" | ||
| Style="{StaticResource PoupPathRectangleStyle}"> | ||
| <Canvas Name="RootLayout" Background="Transparent"> | ||
| <Path x:Name="PopupPathRectangle" Style="{StaticResource PoupPathRectangleStyle}"> | ||
| <Path.Data> | ||
| <RectangleGeometry x:Name="BackgroundRectangle"> | ||
| </RectangleGeometry> | ||
| <RectangleGeometry x:Name="BackgroundRectangle" /> | ||
| </Path.Data> | ||
| <!--This effect will show a 4px shadow of 20% of tranparency with a angle of 135 grades--> | ||
| <!-- This effect will show a 4px shadow of 20% of tranparency with a angle of 135 grades --> | ||
| <Path.Effect> | ||
| <DropShadowEffect Opacity="0.2" | ||
| Color="Black" | ||
| ShadowDepth="4" | ||
| BlurRadius="4" | ||
| Direction="135"/> | ||
| <DropShadowEffect | ||
| BlurRadius="4" | ||
| Direction="135" | ||
| Opacity="0.2" | ||
| ShadowDepth="4" | ||
| Color="Black" /> | ||
| </Path.Effect> | ||
| </Path> | ||
|
|
||
| <Path x:Name="PopupPathRectangleShadow" | ||
| Style="{StaticResource PoupPathRectangleStyle}"> | ||
| <Path x:Name="PopupPathRectangleShadow" Style="{StaticResource PoupPathRectangleStyle}"> | ||
| <Path.Data> | ||
| <RectangleGeometry Rect="{Binding ElementName=BackgroundRectangle, Path=Rect}"> | ||
| </RectangleGeometry> | ||
| <RectangleGeometry Rect="{Binding ElementName=BackgroundRectangle, Path=Rect}" /> | ||
| </Path.Data> | ||
| <!--This effect will show a 4px shadow of 20% of tranparency with a angle of 315 grades--> | ||
| <!-- This effect will show a 4px shadow of 20% of tranparency with a angle of 315 grades --> | ||
| <Path.Effect> | ||
| <DropShadowEffect Opacity="0.2" | ||
| Color="Black" | ||
| ShadowDepth="4" | ||
| BlurRadius="4" | ||
| Direction="315"/> | ||
| <DropShadowEffect | ||
| BlurRadius="4" | ||
| Direction="315" | ||
| Opacity="0.2" | ||
| ShadowDepth="4" | ||
| Color="Black" /> | ||
| </Path.Effect> | ||
| </Path> | ||
|
|
||
| <!--This Path will draw on the Canvas the pointer (a triangle)--> | ||
| <Path x:Name="TooltipPointer" | ||
| Data="{Binding Path=TooltipPointerPoints, Converter={StaticResource PointsToPathConverter}}" | ||
| Style="{StaticResource PoupPathPointerStyle}"> | ||
| <!-- This Path will draw on the Canvas the pointer (a triangle) --> | ||
| <Path | ||
| x:Name="TooltipPointer" | ||
| Data="{Binding Path=TooltipPointerPoints, Converter={StaticResource PointsToPathConverter}}" | ||
| Style="{StaticResource PoupPathPointerStyle}"> | ||
| <Path.Effect> | ||
| <DropShadowEffect Opacity="0.2" | ||
| Color="Black" | ||
| ShadowDepth="4" | ||
| BlurRadius="4" | ||
| Direction="{Binding Path=ShadowTooltipDirection}"/> | ||
| <DropShadowEffect | ||
| BlurRadius="4" | ||
| Direction="{Binding Path=ShadowTooltipDirection}" | ||
| Opacity="0.2" | ||
| ShadowDepth="4" | ||
| Color="Black" /> | ||
| </Path.Effect> | ||
| </Path> | ||
|
|
||
| <Grid x:Name="mainPopupGrid" Background="White" | ||
| Width="{Binding PopupRectangleWidth}"> | ||
| <wv2:DynamoWebView2 Name="webView" ></wv2:DynamoWebView2> | ||
| <Grid | ||
| x:Name="mainPopupGrid" | ||
| Width="{Binding PopupRectangleWidth}" | ||
| Background="White"> | ||
| <wv2:DynamoWebView2 Name="webView" /> | ||
| </Grid> | ||
| </Canvas> | ||
| </Popup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding SetLastError = true to the DllImport attribute and checking Marshal.GetLastWin32Error() after the call to aid debugging if the native call fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's now done.