Skip to content
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

ToggleButton highlight doesn't match the button size #377

Closed
bacca87 opened this issue Nov 26, 2016 · 1 comment
Closed

ToggleButton highlight doesn't match the button size #377

bacca87 opened this issue Nov 26, 2016 · 1 comment
Assignees
Milestone

Comments

@bacca87
Copy link

bacca87 commented Nov 26, 2016

Hi,
I need to keep the same size for all the toggle button inside my grid.
The problem is that the button highlight just cover the text instead of all the button size.

2016-11-26 16_32_36-great 2 0

How can i do for matching the highlight with the button size?

Thankyou

<Fluent:DropDownButton Name="selectMonthButton">
	<Grid ShowGridLines="True">
		<Grid.Resources>
			<Style TargetType="{x:Type Fluent:ToggleButton}">
				<Setter Property="GroupName" Value="MonthsGroup" /> 
				<Setter Property="Width" Value="100" />
			</Style>
		</Grid.Resources>
		<Grid.ColumnDefinitions>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
			<ColumnDefinition></ColumnDefinition>
		</Grid.ColumnDefinitions>
		<Fluent:ToggleButton Grid.Column="0">January</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="1">February</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="2">March</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="3">April</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="4">May</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="5">June</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="6">July</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="7">August</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="8">September</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="9">October</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="10">November</Fluent:ToggleButton>
		<Fluent:ToggleButton Grid.Column="11">December</Fluent:ToggleButton>                            
	</Grid>
</Fluent:DropDownButton>

Environment

  • Fluent.Ribbon v4.0.3.394
  • Theme office2013 (not needed in version 5.0 and upwards)
  • Windows 7
  • .NET Framework 4.6
@batzen batzen added this to the 5.0.0 milestone Nov 27, 2016
@batzen batzen self-assigned this Nov 27, 2016
@batzen
Copy link
Member

batzen commented Nov 27, 2016

This is indeed a bug.

@batzen batzen closed this as completed in 294af11 Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants