Conversation
| DockPanel.Dock="Top" | ||
| Height="55" | ||
| Margin="1" | ||
| Visibility="{Binding Path=IsPendingRestart, Mode=OneWay, Converter={StaticResource BoolToVis} }"> |
There was a problem hiding this comment.
have you used the wpf live tree to verify that this dockPanel actually has a dataContext that is not null - you may need to set it explicitly, not on the parent, but on this sub tree.
There was a problem hiding this comment.
Yes, I did that. The data context is inherited from parent
There was a problem hiding this comment.
@QilongTang you are missing RaisePropertyChanged("IsPendingRestart"); or nameOf(IsPendingRestart) inside your setter for the public property.
| /// <summary> | ||
| /// Property to check if the Dynamo session has package pending for uninstall | ||
| /// </summary> | ||
| public Boolean IsPendingRestart { get; set; } |
There was a problem hiding this comment.
it is potentially time for us to move all this data to a model - right now it's all in the view...
There was a problem hiding this comment.
I agree, that should a better example for 3rd party devs, I checked other view extensions, all of them have similar problems
| <!-- Template for the feedback banner --> | ||
| <DockPanel Name="Feedback" VerticalAlignment="Bottom" Grid.Row="2" Width="600"> | ||
| <StatusBar Background="{StaticResource FeedbackSectionBackground}" DockPanel.Dock="Bottom" Height="55"> | ||
| <!-- Restart Banner --> |
There was a problem hiding this comment.
I'm curious why you all decided to copy the feature preview banner UI for this instead of adding another state icon. Seems like we would want to avoid conflating dependency-state and feature-state UI components.
There was a problem hiding this comment.
@scottmitchell The team have discussed around this state, we admit this is not a state for package like the other ones, this is more like a state for Dynamo. So we decide to display this differently and still show it as a warning.
src/WorkspaceDependencyViewExtension/Properties/Resources.en-US.resx
Outdated
Show resolved
Hide resolved
test/DynamoCoreWpfTests/ViewExtensions/WorkspaceDependencyViewExtensionTests.cs
Outdated
Show resolved
Hide resolved
src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml.cs
Outdated
Show resolved
Hide resolved
|
@QilongTang looks good, just a few comments. |
|
@mjkkirschner Comments all addressed, I also reverted the last changes in order to preserve the behavior that when a package is marked for uninstall in PM UI, it can also be reflected on package dep viewer ( not binding to the download button). The logic is now back to |
|
After talking with @mjkkirschner , Merging |
Please Note:
DynamoRevitrepo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTMlabel is added to the PR.Purpose
DYN-2103
As a Dynamo user, I want workspace dep viewer to set Restart State
gif of whole workflow:

TODO
Declarations
Check these if you believe they are true
*.resxfilesReviewers
@DynamoDS/dynamo
FYIs