Comments (4)
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:
- Entry Focus is not cleared in Android (#13928), similarity score: 0.80
- [Windows] "ClearButtonVisibility" property is not working properly when opening the Entry at run time (#13714), similarity score: 0.79
- [Bug] [Android] ClearButton initially not showing up (#3379), similarity score: 0.79
- .NET MAUI: It is not possible to clear focus from the entry control in Android versions equal to or below 8.1. (#21009), similarity score: 0.77
- ClearButtonVisibility is not working (#6360), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
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.
@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.
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)
- Assets file '... QueryEngine\obj\project.assets.json' doesn't have a target for 'net7.0'. HOT 4
- RemainingItemsThresholdReached on CollectionView is triggered infinitely when a ControlTemplate is set HOT 2
- [MAUI] I4_ Selection - Multiple selection failed on MacCatalyst Platform HOT 1
- [MAUI]I3_Sizing & I6_Grouping-Variable size items for vertical list throw exception after scrolling HOT 1
- A sample app stops working after the 1st run HOT 13
- [MAUI]I1_Layout Horizontal grid for Text page is truncated HOT 1
- [MAUI] I9_Srolling_Snap points_ SnapPointsAlignment set to any value and the Items no change in position HOT 1
- [MAUI] I2_Spacing - The horizontal spacing should be changed but it is actually changed vertically HOT 1
- [MAUI]I8_headers and footers_DataTemplate header and footer for Vertical list page no header and footer HOT 1
- [MAUI]I9_ Scrolling-Clicking the 'Scroll to third cat' button does not respond HOT 1
- [BUG] iPadOS 18 Forced TabView HOT 1
- [Android] Blazor hybrid back navigation HOT 2
- error XAPRAS7023: System.IO.DirectoryNotFoundException: Could not find a part of the path \AndroidLib1\bin\Debug\net8.0-android\android-x64\AndroidLib1.dll HOT 3
- CollectionView Footer - Deleting Items From the Collectionview hides the Content Of The Footer HOT 2
- Maui receive event of EASessionController is lower than Xamarin. HOT 7
- Save File HOT 2
- Blazor Hybrid not working on MacOS 15.0 [Potential fix] HOT 8
- IImage does not take into account photo Orientation, causing IImage height and width to get mixed up HOT 1
- [MAUI] I5_ EmptyView -It is almost impossible to see what is typed in the Filter search box. HOT 1
- Android - NullReferenceException thrown from ItemContentView HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.