Skip to content

Commit

Permalink
rename ThisDataContextChanged to PackageManagerPublishControl_DataCon…
Browse files Browse the repository at this point in the history
…textChanged
  • Loading branch information
dnenov committed Dec 4, 2023
1 parent bd0e65a commit 50c0844
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/DynamoCoreWpf/Controls/InstalledPackagesControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@
<DataTemplate>
<TextBlock Text="{Binding Path=Name}"
Foreground="{StaticResource PreferencesWindowFontColor}"
FontSize="9"
FontSize="11"
FontWeight="Regular"
TextTrimming="CharacterEllipsis" />
</DataTemplate>
</ItemsControl.ItemTemplate>
Expand All @@ -281,7 +282,8 @@
<TextBlock Name="Label"
Text="{Binding Path=Name}"
Foreground="{StaticResource PreferencesWindowFontColor}"
FontSize="9"
FontSize="11"
FontWeight="Regular"
TextTrimming="CharacterEllipsis" />

<DataTemplate.Triggers>
Expand Down Expand Up @@ -314,7 +316,8 @@
<TextBlock Name="Label"
Text="{Binding Path=Name}"
Foreground="{StaticResource PreferencesWindowFontColor}"
FontSize="9"
FontSize="11"
FontWeight="Regular"
TextTrimming="CharacterEllipsis" />

<DataTemplate.Triggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public PackageManagerPublishControl()
InitializeComponent();

this.Loaded += InitializeContext;
this.DataContextChanged += ThisDataContextChanged;
this.DataContextChanged += PackageManagerPublishControl_DataContextChanged;
}

private void ThisDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
private void PackageManagerPublishControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
{
if (!(this.DataContext is PublishPackageViewModel)) return;

Expand Down Expand Up @@ -105,7 +105,7 @@ public void Dispose()

Breadcrumbs?.Clear();

this.DataContextChanged -= ThisDataContextChanged;
this.DataContextChanged -= PackageManagerPublishControl_DataContextChanged;
}

private void InitializePages()
Expand Down

0 comments on commit 50c0844

Please sign in to comment.