@@ -106,24 +106,32 @@ public PackageDetailsPage(IPackage package, OperationType role, TEL_InstallRefer
106106 InstallOptionsPage = new InstallOptionsPage ( package , OperationRole , options ) ;
107107 InstallOptionsExpander . Content = InstallOptionsPage ;
108108
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 ;
109117 if ( OperationRole is OperationType . Install )
110118 {
111- MainActionButton . Content = CoreTools . Translate ( "Install" ) ;
119+ textBlock . Text = CoreTools . Translate ( "Install" ) ;
112120 SetTextToItem ( Version_Label , CoreTools . Translate ( "Version" ) ) ;
113121 SetTextToItem ( Version_Content , AvailablePackage ? . VersionString ?? "NULL" ) ;
114122 SetUpActionButtonAsInstall ( ) ;
115123 }
116124 else if ( OperationRole is OperationType . Update )
117125 {
118- MainActionButton . Content = CoreTools . Translate ( "Update to version {0}" , UpgradablePackage ? . NewVersionString ?? "NULL" ) ;
126+ textBlock . Text = CoreTools . Translate ( "Update to version {0}" , UpgradablePackage ? . NewVersionString ?? "NULL" ) ;
119127 SetTextToItem ( Version_Label , CoreTools . Translate ( "Installed Version" ) ) ;
120128 SetTextToItem ( Version_Content , ( UpgradablePackage ? . VersionString ?? "NULL" )
121129 + $ " - { CoreTools . Translate ( "Update to {0} available" , UpgradablePackage ? . NewVersionString ?? "NULL" ) } ") ;
122130 SetUpActionButtonAsUpdate ( ) ;
123131 }
124132 else /* OperationRole is OperationType.Uninstall */
125133 {
126- MainActionButton . Content = CoreTools . Translate ( "Uninstall" ) ;
134+ textBlock . Text = CoreTools . Translate ( "Uninstall" ) ;
127135 SetTextToItem ( Version_Label , CoreTools . Translate ( "Installed Version" ) ) ;
128136 SetTextToItem ( Version_Content , InstalledPackage ? . VersionString ?? "NULL" ) ;
129137 SetUpActionButtonAsUninstall ( ) ;
0 commit comments