I am trying to create a docker that is a strip with squared buttons, but I am not able to change the docker width...I have no idea of how to change this, have anyone faced the same problem before?
The docker xaml code is currently like this:
<UserControl x:Class="Dea_Tools.DockerUI" xmlns="">schemas.microsoft.com/.../presentation" xmlns:x="">schemas.microsoft.com/.../xaml" xmlns:mc="">schemas.openxmlformats.org/.../2006" xmlns:d="">schemas.microsoft.com/.../2008" xmlns:local="clr-namespace:Dea_Tools" mc:Ignorable="d" MinWidth="60" Loaded="UserControl_Loaded"> <UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles/Colors.xaml"/> <ResourceDictionary Source="Styles/Styles.xaml"/> <ResourceDictionary Source="Resources/Images.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </UserControl.Resources> <Grid Margin="0,0,0,0" Width="60"> <StackPanel Width="60" Height="220" HorizontalAlignment="Center"> <Button x:Name="button1" Content="" Click="numAutomatico" Height="40" HorizontalAlignment="Center" Width="40" Margin="0,10,0,0"> <Button x:Name="button2" Content="" Click="expCurvas" Margin="0,10,0,0" Width="40" Height="40" HorizontalAlignment="Center"> <Button x:Name="button3" Content="" Click="cotaAutomatica" Margin="0,10,0,0" Width="40" Height="40" HorizontalAlignment="Center"> <Button x:Name="button4" Content="Cota Alinhada (Beta)" Click="cotaAlinhada" Margin="0,10,0,0" Width="40" Height="40" HorizontalAlignment="Center"/> </StackPanel> </Grid></UserControl>
Thanks!
try add "width" attribute in dockerData tag in AppUI.xslt file
Thanks for the tip! I added it, but the docker still don't get smaller than what's shown in the image...What I have in the DockerUI.xaml is the central strip that is in a light gray in the image above, but I couldn't find documentation to properly tackle the AppUI/UserUI files...
The dockerData is currently as below:
<dockerData guid="bcd98859-1bae-425f-8039-ffff82ac152f" userCaption="Dea Tools" wantReturn="true" focusStyle="noThrow" width="60" > <container> <!-- add the webpage control to the docker --> <item dock="fill" margin="0,0,0,0" guidRef="17e5f817-a7c0-417f-a921-05d8a2de88f1"/> </container> </dockerData>
I haven't worked with xslt/xml files before, so it's been hard to understand what's going on with this stuff...do you have any idea of what could it be?