Comments (4)
Hi,
Below is part of ListViewItem's control template code, SystemControlHighlightListAccentLowBrush is the background brush of selected item. you can replace it or change it in source code(LLMListView/Themes/Generic.xaml).
<VisualState x:Name="Selected">
<Storyboard>
<DoubleAnimation Duration="0:0:0"
Storyboard.TargetName="MultiSelectCheck"
Storyboard.TargetProperty="Opacity"
To="1" />
<DoubleAnimation Duration="0"
Storyboard.TargetName="BorderBackground"
Storyboard.TargetProperty="Opacity"
To="1" />
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderBackground" Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightListAccentLowBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}" />
</ObjectAnimationUsingKeyFrames>
<PointerUpThemeAnimation Storyboard.TargetName="ContentPresenter" />
</Storyboard>
</VisualState>
from llmlistview.
it was downloaded on NuGet... editing generic.xaml is not posible right? Do you have alternatives?
BTW thank you for your reply :)... Much appreciated
from llmlistview.
It's open source, you can clone the source code and do what you want 😄
Anyway, you can use App.Current.Resources["SystemControlHighlightListAccentLowBrush"] = new SolidColorBrush(Colors.Red);
in *.xaml.cs to replace SystemControlHighlightListAccentLowBrush style to set background color of selected item.
like this:
from llmlistview.
wow... you are really amazing... Thank you so much...
from llmlistview.
Related Issues (20)
- Item Right Swipe click on button "Done" to swipe back HOT 10
- Is there anyway to bind a mvvm item property to enable/disable the item right swipe? HOT 5
- Performance Issue with 200 contacts loaded? HOT 4
- I can't set ItemContainerStyle HOT 5
- Group and swipe HOT 2
- LLMListView is creating self header? HOT 5
- ListView.ScrollToView() is not working HOT 2
- How to add alternate row style HOT 2
- Pull to refresh is not working in Tablet or Surface HOT 6
- In SwipeMode Fix ResetSwipe after clicking on Edit HOT 3
- Load More HOT 1
- Reordering conflict HOT 2
- Grouping with ListView HOT 1
- How to use LLMListViewItem.RightSwipeMaxLength Property in MVVM usecase HOT 5
- How to hide PullToRefreshIndicator and ProgressBarIndicator in LLMListView
- Full screen width item inside the LLMListView HOT 1
- Fixed Right Swip issue in RTL Direction Flow HOT 20
- System.UnauthorizedAccessException_80070005
- EmptyDataTemplate
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 llmlistview.