Giter Club home page Giter Club logo

Comments (4)

github-actions avatar github-actions commented on July 22, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from maui.

AlphaWolvsblood avatar AlphaWolvsblood commented on July 22, 2024

The cause for this issue might be related to #13714, as it shows a similar unexpected behavior, but taking different steps to reproduce

from maui.

MartyIX avatar MartyIX commented on July 22, 2024

@AlphaWolvsblood I created #23158. Perhaps you could test if the PR actually fixes your issue.

FWIW, the PR helps with my own issue (not reported) but likely the same as yours.

from maui.

MartyIX avatar MartyIX commented on July 22, 2024

Possible workaround when one never wants those clear buttons in entries is to modify <PROJECT>/Platforms/Windows/App.xaml like this:

<maui:MauiWinUIApplication
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:maui="using:Microsoft.Maui"
    xmlns:local="using:App.WinUI"
    x:Class="App.WinUI.App">

    <!-- An underline appears in text controls on Windows when text controls get focus. -->
    <!-- Turn it off as it clashes with our validation effects. -->
    <maui:MauiWinUIApplication.Resources>
        <Thickness x:Key="TextControlBorderThemeThickness">0</Thickness>
        <Thickness x:Key="TextControlBorderThemeThicknessFocused">0</Thickness>

+       <!-- Remove clean button for text boxes. -->
+       <Color x:Key="TextControlButtonBackgroundPointerOver">Transparent</Color>
+       <Color x:Key="TextControlButtonBackgroundPressed">Transparent</Color>
+       <Color x:Key="TextControlButtonBorderBrush">Transparent</Color>
+       <Color x:Key="TextControlButtonBorderBrushPointerOver">Transparent</Color>
+       <Color x:Key="TextControlButtonBorderBrushPressed">Transparent</Color>
+       <Color x:Key="TextControlButtonForeground">Transparent</Color>
+       <Color x:Key="TextControlButtonForegroundPointerOver">Transparent</Color>
+       <Color x:Key="TextControlButtonForegroundPressed">Transparent</Color>

        <CornerRadius x:Key="ControlCornerRadius">0</CornerRadius>
    </maui:MauiWinUIApplication.Resources>
</maui:MauiWinUIApplication>

But it's far from perfect.

from maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.