Sure would like to understand why a control which is declared in xaml within an OutlookBarGroup is loaded twice
Unable to upload a sample project due to 200Kb file size limit, so will post the xaml which is failing
The TextBoxControl_Loaded event handler is called twice
<igOB:XamWebOutlookBar
x:Name="XamWebOutlookBar"
MinimizedWidth="38"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Grid.Row="0" Grid.Column="0">
<igOB:OutlookBarGroup Header="OutlookBarGroup 1" IsSelected="True" x:Name="OB1BarGroup" Key="OB1BarGroup">
<TextBox x:Name="TextBoxControl" Text="TextBoxControl" Loaded="TextBoxControl_Loaded" />
</igOB:OutlookBarGroup>
<igOB:OutlookBarGroup Header="OutlookBarGroup 2" IsSelected="False" x:Name="OB2BarGroup" Key="OB2BarGroup">
<igOB:OutlookBarGroup Header="OutlookBarGroup 3" IsSelected="False" x:Name="OB3BarGroup" Key="OB3BarGroup">
</igOB:XamWebOutlookBar>
Hello,
Marin has reviewed your sample and was able to reproduce the issue that you're encountering. I'm going to be logging this in our system and will be following up on this through the case that you created.
Thanks for the sample. I will look into it.Regards,Marin
Thank you Marin for looking into this
I just received a message re: the reopened case (CAS-45680-NK6ZSB)
The sample attached to the case is as straightforward as I could get - the textbox control in the first OutlookBarGroup is loaded twice
Hi,I'm not sure if it is a bug.You can reproduce this behavior with the MS TabControl. Try with this code:<my:TabControl> <my:TabItem Header="Tab 1"> <TextBox Text="text" Loaded="TextBoxControl_Loaded"/> </my:TabItem> <my:TabItem Header="Tab 2"> <TextBox Text="text"/> </my:TabItem></my:TabControl>You will receive the Loaded event every time, when you select the first tab.Could you give us more details? Maybe I don't understand your scenario.Regards,Marin
I've reopened CAS-45680-NK6ZSB
I beleive this is a bug. Documentation says nothing about the content being loaded twice if it is the first OutlookBarGroup
What you're implying is every content/control of an OutlookBarGroup will have to check if it has already been loaded since the order of the groups can be changed (and saved to profile) by the user
Thank you