-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font issue #1
Comments
Hi @ghost1372! Thanks for checking it out! I totally agree with you. I was going to find a way to get the whole width of the input text and use it to offset the Placeholder. I found a few ways to get the width but those were a bit tricky and I wanted this to be as simple as possible. I'll take another look but if you have something in mind, I'd appreciate the help😁 |
I guess I need to wait for this issue (microsoft/microsoft-ui-xaml#808). There seems to be a difference in the rendering between TextBoxes and TexBlocks. |
tnx |
I followed your suggestion and created a branch. But instead of changing the style, which will be ending pulling the whole TextBox style, I added a TextBox control programmatically. I'll be checking a few things but I think I'll be updating the NuGet package in a day. Thanks again 😀 |
That's weird. I tested it on a new WinUI 3 project and worked without problems. This is the code. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
<winui3:AutoCompleteTextBox SuggestionsSource="{x:Bind DemoSuggestions, Mode=OneWay}"/>
</StackPanel> *.cs public sealed partial class MainWindow : Window
{
private List<string> DemoSuggestions { get; } = new();
public MainWindow()
{
this.InitializeComponent();
DemoSuggestions.Add("Ted Mosby");
DemoSuggestions.Add("Marshal Eriksen");
DemoSuggestions.Add("Barney Stinson");
}
private void myButton_Click(object sender, RoutedEventArgs e)
{
myButton.Content = "Clicked";
}
} Can you try setting |
Hi @AndrewKeepCoding sorry for late response. I used your codes and this is result:
|
Finally I got to reproduce the problem by changing my Windows to the Light mode. These are the facts so far (Windows 11):
|
Created new issue #3. Closing this. @ghost1372 see you there. |
using MS Gothic font is not good option, this is my output
You should resolve this issue without changing the font.
The text was updated successfully, but these errors were encountered: