28,661 questions
Title is a property : https://learn.microsoft.com/en-us/dotnet/api/system.windows.window.title?view=windowsdesktop-7.0
In a Button_Click :
string sTitle = this.Title;
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do you get the Content of the Title object of a XAML Window as a string in C# ? Although it appears on the screen, it does not appear to be a Propery of the MainWindow.
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Cinetique_GUI"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
Title="GUI Version 0.11 " Height="1080" Width="1920" WindowState="Maximized" >
Title is a property : https://learn.microsoft.com/en-us/dotnet/api/system.windows.window.title?view=windowsdesktop-7.0
In a Button_Click :
string sTitle = this.Title;