Inline AutoSuggestBox like windows 11 search box - c#

In Windows 11 OS, search textbox displays as below
Here the auto append text has a different foreground. How to do this? while typing in AutoSuggestBox, I need to show the suggestion as like in Win 11 OS.

There is an issue on the WinUI GitHub asking about this behavior here. There is no built in behavior achieving this in WinUI but you could achieve this by retemplating. Alternatively, a community member has created a control with that behavior and published it here.

Related

Allowing user to print specific pages in C# WPF FlowDocument Application

The box above is what is called when a print() method is initiated on a flowDocumentPageViewer of flowDocumentScrollViewer.
In My application, I want my users to be able to select specific page range to print but the options seems to be disabled in the printbox. is there a way I can activate this in code.
Help will be appreciated as this tied to to a project I am doing.
After alot of surfing the internet with no answer, I decided to check out my Library, my best pick was pro WPF 4.5 in c# 4th edition and I got the answer on page 941 chapter 29. Actually have read this before but I did not pick to detail and the author stressed that calling PrintDialog.UserPageRangeEnabled and others should be done before calling PrintDialog.ShowDialog()
I fixed this with that and viola, after months of stress, I got it right.
Although most of the printing features like PrintDialog.currentPageEnabled and PrintDialog.SelectedPagesEnabled are supported only in .NET 4.5 but I'm ok with with the PrintDialog.UserPageRangeEnabled because my app targets .NET 4 CF for I want it to be available to window xp users.
Below is the box now.
Please take a look at the following post which explains printing from a FlowDocument:
Printing a WPF FlowDocument
You can find out more from 'Mitesh Sureja's Blog':
Printing Flow Document using WPF PrintDialog

Keyboard shortcuts don't work in Windows 8

I have a winform application written in C# that was developed under Windows 7. Many of the menu commands have keyboard shortcuts which are defined in the control properties When I run this application on a Windows 8 system, none of the shortcut keys work, in fact I get what sounds like the default beep, as if I am doing something wrong. Some other aspects of the program aren't functioning quite correctly also, but this is something I just expect to work and have no idea how I would work around this problem. Thanks in advance for any advice on how to fix this problem.
Gary
It's all designer generated:
this.saveConfigurationToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));

Fully customizable message box in Windows Phone 7

I would like to create a message box in my Windows Phone 7 application, but I want to add the "never show again" button or checkbox inside of it. How can I do that? I searched about it and I found examples in XNA and found a code using Notificationbox, but it doesn't seem to work with C# or something.
My project is coded with C#, is there a way to implement a customizable message box?
Tomer Shamam has an example of how to do this at: http://blogs.microsoft.co.il/blogs/tomershamam/archive/2010/10/19/windows-phone-7-custom-message-box.aspx
He's put the code on http://wpassets.codeplex.com/

IE 9 Tab Control

How can we use the Tab Control that Internet Explorer 9 uses in our Windows Forms applications? And is it OK to use it? Is there a DLL somewhere that we need to download, or choose from within the Toolbox?
Or are there any samples, tutorials or articles around somewhere that demonstrate how to change the look of the old Tab Control in WinForms?
To answer your question directly, no, you can't use the IE9 tab control; it's custom UI specific to IE and it is not exported in any public manner. You can try to imitate it, as others have pointed out.

Auto Form Fill for Windows Application

Detecting text fields are a common job in Form Fillers for browsers.
Is there a way to detect text fields and labels in an windows application using C++ or C#?
I want to write an Auto Form Filler for windows applications.
Taking abmv's answer further, there are several tools for this, some for .NET, too:
Windows Forms Spy
.NET Control Inspector
ManagedSpy in MSDN Magazine of April 2006
Hawkeye
Spy++ itself can be found on Microsoft's website, the source code seems to be not available, but a similar tool has source code.
Try a tool like SPY++ you can see that it can detect lables

Categories

Resources