Hello,
To insert the RibbonControl using the Instant Layout Assistant it has to be activated 2 times.
Please find a screencast.
Also I'd like to keep XAML code layout when I insert a component.
But the Instant Layout Assistant and Toolbox change the code layout.
As you can see in the screencast, XAML before the insertion:
XAML<UserControl x:Class="LS12.Module.Shop.Views.ShopRibbonView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="800">
And after the insertion:
XAML<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" x:Class="LS12.Module.Shop.Views.ShopRibbonView"
mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="800">
It isn't critical issue, but I hope it can be fixed in a future releases.
Thanks,
Mikhail
Hello Mikhail,
I was able to replicate the problem on our side first. I will forward this ticket to our R&D team, and we will contact you as soon as we have any results. As for the second issue, I am afraid that we cannot change this behavior at the level of our controls because the MS Visual Studio uses own rules for formatting namespaces in XAML code.
Thanks,
Elliot