Skip to content

Commit

Permalink
DesktopToasts modify
Browse files Browse the repository at this point in the history
  • Loading branch information
zobinimm committed May 28, 2024
1 parent 6c35408 commit c2884bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Samples/DesktopToasts/CS/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ private void ShowToastButton_Click(object sender, RoutedEventArgs e)
"<visual>" +
"<binding template=\"ToastText04\">" +
"<text id=\"1\">Title0123456</text>" +
"<text id=\"2\" hintMaxLines=\"1\" TextWrapping=\"NoWrap\">Add text without wrap1.Add text without wrap2.Add text without wrap3.Add text without wrap4.Add text without wrap5.</text>" +
"<text id=\"3\" hintMaxLines=\"1\">The third line.Add text without wrap1 third line.Add text without wrap2 third line.Add text without wrap3 third line.</text>" +
"<text id=\"2\" hintMaxLines=\"1\" TextWrapping=\"NoWrap\">Add text without wrap1.Add text without wrap2.Add text without wrap3.\nAdd text without wrap4.Add text without wrap5.Add text without wrap6.</text>" +
"<text id=\"3\" hintMaxLines=\"1\">The third line.Add text without wrap1 third line1.Add text without wrap2 third line2.\nAdd text without wrap3 third line3.</text>" +

// Use line breaks in text to actively break lines, and display ellipses for non actively breaking lines.
// The following code is the desired effect to be achieved
//"<text id=\"2\" hintMaxLines=\"1\" TextWrapping=\"NoWrap\">Add text without wrap1.\nAdd text without wrap2...</text>" +
//"<text id=\"3\" hintMaxLines=\"1\">The third line.\nAdd text without wrap1 third line....</text>" +
//"<text id=\"2\" hintMaxLines=\"1\" TextWrapping=\"NoWrap\">Add text without wrap1.Add text without wrap2...\nAdd text without wrap4.Add text without wrap5...</text>" +
//"<text id=\"3\" hintMaxLines=\"1\">The third line.Add text without wrap1 third line1...\nAdd text without wrap3 third line2.</text>" +
"</binding>" +
"</visual>" +
"</toast>";
Expand Down

0 comments on commit c2884bd

Please sign in to comment.