the code shown in steps to reproduce, the <Label> & infragistics controls don't align within a StackPanel at the same horizontal position
In the following code Label & the checkbox don't align in the same Horizontal Location.
<Window x:Class="WpfApplication1.Window5"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window5" Height="300" Width="300" xmlns:igEditors="http://infragistics.com/Editors">
<Grid>
<StackPanel Orientation="Horizontal">
<Label>Hello:</Label>
<igEditors:XamCheckEditor Height="18" Name="xamCheckEditor1" Width="98" />
<my:LabelTool Height="19" Name="labelTool1" Width="61" xmlns:my="clr-namespace:Infragistics.Windows.Ribbon;assembly=Infragistics3.Wpf.Ribbon.v7.2" />
</StackPanel>
</Window>
It is strange & weird how Igx works.
When I reopened IGX it showed correct. It doesn't work when I first time designing using XAML code & drag & drop.
Also on further examining, the IGX controls don't have a gripper icon while
designing in VS that I can use it to hold & move the controls around.
Hmm.. close & reopen of the window makes it work.
also this issue is only with XamlCheckEditor only.
I see why gripper is not there in Igx controls.
There is a HorizontalAlignment property in Igx controls. It is kind of misleading with that property & Margin available at the same time.
Is Margin used at all if HorizontalAlignment property is set?
Thanks
Hi,
Margin and HorizontalAlignment properties are exposed by the FrameworkElement and thus all controls inherit these properties, including infragistics controls. They should work no differently for infragistics controls than other WPF controls.
Hope this helps,
Sandip