C
C#2mo ago
SidoBytes

c# wpf style

.
5 Replies
Buddy
Buddy2mo ago
$details
MODiX
MODiX2mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
SidoBytes
SidoBytesOP2mo ago
<Grid>
<ListView>
<ListViewItem HorizontalAlignment="Stretch">
<Button BorderBrush="{x:Null}" Background="LightGray" Foreground="Black"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Padding="0">
<materialDesign:PackIcon Kind="Resistor" Width="24" Height="24" HorizontalAlignment="Center"/>
</Button>
</ListViewItem>
</ListView>
</Grid>
<Grid>
<ListView>
<ListViewItem HorizontalAlignment="Stretch">
<Button BorderBrush="{x:Null}" Background="LightGray" Foreground="Black"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Padding="0">
<materialDesign:PackIcon Kind="Resistor" Width="24" Height="24" HorizontalAlignment="Center"/>
</Button>
</ListViewItem>
</ListView>
</Grid>
i can't seem to get the button to fill the whole listitem i want to have selected , and unselected sate
FusedQyou
FusedQyou2mo ago
You don't seem to have HorizontalAlignment="Stretch" on the second button?
SidoBytes
SidoBytesOP2mo ago
i am trying to get the first button to work if i get the first one working then the rest will work

Did you find this page helpful?