mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
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:
parent
bb027aa9c3
commit
0722781fc6
1 changed files with 4 additions and 1 deletions
|
@ -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*/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue