C#C
C#17mo ago
linuscoro

✅ 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"
`
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"/>

My usercontrol is inside a folder called controls inside the project.
Does anyone know why it's not working?
Was this page helpful?