make text selectable
This commit is contained in:
parent
c09bdbd25e
commit
fdc574929b
|
@ -45,23 +45,27 @@
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
FontWeight="Normal"
|
FontWeight="Normal"
|
||||||
|
IsTextSelectionEnabled="True"
|
||||||
TextWrapping="WrapWholeWords" />
|
TextWrapping="WrapWholeWords" />
|
||||||
|
|
||||||
<TextBlock x:Name="PrefixTextBlock"
|
<TextBlock x:Name="PrefixTextBlock"
|
||||||
x:Uid="ApproveCommandlineWarningPrefixTextBlock"
|
x:Uid="ApproveCommandlineWarningPrefixTextBlock"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
|
IsTextSelectionEnabled="True"
|
||||||
TextWrapping="WrapWholeWords" />
|
TextWrapping="WrapWholeWords" />
|
||||||
|
|
||||||
<TextBlock x:Name="CommandlineText"
|
<TextBlock x:Name="CommandlineText"
|
||||||
Margin="0,16,0,16"
|
Margin="0,16,0,16"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
FontFamily="Cascadia Mono"
|
FontFamily="Cascadia Mono"
|
||||||
|
IsTextSelectionEnabled="True"
|
||||||
Text="{x:Bind Commandline, Mode=OneWay}"
|
Text="{x:Bind Commandline, Mode=OneWay}"
|
||||||
TextWrapping="WrapWholeWords" />
|
TextWrapping="WrapWholeWords" />
|
||||||
|
|
||||||
<TextBlock x:Name="SuffixTextBlock"
|
<TextBlock x:Name="SuffixTextBlock"
|
||||||
x:Uid="ApproveCommandlineWarningSuffixTextBlock"
|
x:Uid="ApproveCommandlineWarningSuffixTextBlock"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
|
IsTextSelectionEnabled="True"
|
||||||
TextWrapping="WrapWholeWords" />
|
TextWrapping="WrapWholeWords" />
|
||||||
<Grid Margin="0,8,0,8"
|
<Grid Margin="0,8,0,8"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
|
|
|
@ -655,16 +655,6 @@ namespace winrt::TerminalApp::implementation
|
||||||
co_return ContentDialogResult::None;
|
co_return ContentDialogResult::None;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO! get rid of me
|
|
||||||
winrt::Windows::Foundation::IAsyncOperation<ContentDialogResult> TerminalPage::_ShowCommandlineApproveWarning()
|
|
||||||
{
|
|
||||||
if (auto presenter{ _dialogPresenter.get() })
|
|
||||||
{
|
|
||||||
co_return co_await presenter.ShowDialog(FindName(L"ApproveCommandlineWarning").try_as<WUX::Controls::ContentDialog>());
|
|
||||||
}
|
|
||||||
co_return ContentDialogResult::None;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Method Description:
|
// Method Description:
|
||||||
// - Builds the flyout (dropdown) attached to the new tab button, and
|
// - Builds the flyout (dropdown) attached to the new tab button, and
|
||||||
// attaches it to the button. Populates the flyout with one entry per
|
// attaches it to the button. Populates the flyout with one entry per
|
||||||
|
|
Loading…
Reference in a new issue