Modifying the title of the window to "Calculator [Dev]" (#531)
* Modifying the title of the window to "Calculator [Dev]" when the build isn't configured with `IsStoreBuild` Fixes #439
This commit is contained in:
		
				
					committed by
					
						
						Howard Wolosky
					
				
			
			
				
	
			
			
			
						parent
						
							bb027aa9c3
						
					
				
				
					commit
					0722781fc6
				
			@@ -29,8 +29,11 @@ namespace CalculatorApp
 | 
			
		||||
 | 
			
		||||
        Loaded += ref new RoutedEventHandler(this, &TitleBar::OnLoaded);
 | 
			
		||||
        Unloaded += ref new RoutedEventHandler(this, &TitleBar::OnUnloaded);
 | 
			
		||||
 | 
			
		||||
#ifdef IsStoreBuild
 | 
			
		||||
        AppName->Text = AppResourceProvider::GetInstance().GetResourceString(L"AppName");
 | 
			
		||||
#else
 | 
			
		||||
        AppName->Text = AppResourceProvider::GetInstance().GetResourceString(L"DevAppName");
 | 
			
		||||
#endif //IsStoreBuild
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void TitleBar::OnLoaded(_In_ Object ^ /*sender*/, _In_ RoutedEventArgs ^ /*e*/)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user