linuscoro
linuscoro
CC#
Created by linuscoro on 8/7/2024 in #help
✅ Problems adding usercontrol
I'm trying to add a usercontrol to a window. In the window I added the local reference liek this:
cs xmlns:local="clr-namespace:PrototipServer.Controls"
cs xmlns:local="clr-namespace:PrototipServer.Controls"
` And i have use it like this:
cs <local:DataGridAlarmes x:Name="gd_Alarmes" estacioSeleccionada="gd_AlarmesSelectionChanged" Visibility="Hidden" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,10,5" Grid.Column="2" Grid.Row="2"/>
cs <local:DataGridAlarmes x:Name="gd_Alarmes" estacioSeleccionada="gd_AlarmesSelectionChanged" Visibility="Hidden" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,10,5" Grid.Column="2" Grid.Row="2"/>
My usercontrol is inside a folder called controls inside the project. Does anyone know why it's not working?
62 replies