@@ -106,24 +106,32 @@ public PackageDetailsPage(IPackage package, OperationType role, TEL_InstallRefer
106
106
InstallOptionsPage = new InstallOptionsPage ( package , OperationRole , options ) ;
107
107
InstallOptionsExpander . Content = InstallOptionsPage ;
108
108
109
+ MainActionButton . Padding = new Thickness ( 0 ) ;
110
+ var textBlock = new TextBlock ( )
111
+ {
112
+ TextWrapping = TextWrapping . WrapWholeWords ,
113
+ Padding = new Thickness ( 0 ) ,
114
+ TextAlignment = TextAlignment . Center
115
+ } ;
116
+ MainActionButton . Content = textBlock ;
109
117
if ( OperationRole is OperationType . Install )
110
118
{
111
- MainActionButton . Content = CoreTools . Translate ( "Install" ) ;
119
+ textBlock . Text = CoreTools . Translate ( "Install" ) ;
112
120
SetTextToItem ( Version_Label , CoreTools . Translate ( "Version" ) ) ;
113
121
SetTextToItem ( Version_Content , AvailablePackage ? . VersionString ?? "NULL" ) ;
114
122
SetUpActionButtonAsInstall ( ) ;
115
123
}
116
124
else if ( OperationRole is OperationType . Update )
117
125
{
118
- MainActionButton . Content = CoreTools . Translate ( "Update to version {0}" , UpgradablePackage ? . NewVersionString ?? "NULL" ) ;
126
+ textBlock . Text = CoreTools . Translate ( "Update to version {0}" , UpgradablePackage ? . NewVersionString ?? "NULL" ) ;
119
127
SetTextToItem ( Version_Label , CoreTools . Translate ( "Installed Version" ) ) ;
120
128
SetTextToItem ( Version_Content , ( UpgradablePackage ? . VersionString ?? "NULL" )
121
129
+ $ " - { CoreTools . Translate ( "Update to {0} available" , UpgradablePackage ? . NewVersionString ?? "NULL" ) } ") ;
122
130
SetUpActionButtonAsUpdate ( ) ;
123
131
}
124
132
else /* OperationRole is OperationType.Uninstall */
125
133
{
126
- MainActionButton . Content = CoreTools . Translate ( "Uninstall" ) ;
134
+ textBlock . Text = CoreTools . Translate ( "Uninstall" ) ;
127
135
SetTextToItem ( Version_Label , CoreTools . Translate ( "Installed Version" ) ) ;
128
136
SetTextToItem ( Version_Content , InstalledPackage ? . VersionString ?? "NULL" ) ;
129
137
SetUpActionButtonAsUninstall ( ) ;
0 commit comments