There is a window with an inserted homemade component, which is blocked by something. As if some invisible zone on the side (shown by a yellow line), which overlaps it (similarly and below). If you resize the window, it moves.
Window code next
<Window> <Grid> <Button x:Name="btnUpdate" Content="↻" Margin="10,10,0,0" Click="Button_Click_1" HorizontalAlignment="Left" Width="20" Height="20" VerticalAlignment="Top" /> <local:Clock x:Name="clock" Width="250" Height="250" Margin="10,10,72,33" HorizontalAlignment="Left" VerticalAlignment="Top" /> <Label x:Name="labelHours" Content="0 h." HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" FontSize="21.333" /> <Label x:Name="labelPass" Content="0 h." HorizontalAlignment="Left" Margin="10,0,0,10" VerticalAlignment="Bottom" FontSize="21.333" /> </Grid> </Window>
The component itself has the following structure
<UserControl> <Canvas Width="200" Height="200"> <!-- далее несколько внутренних canvas-ов --> <Canvas> <Path/> </Canvas> </Canvas> </UserControl>
Who will tell you what the problem is, what is blocking it?
Margin="10"
. - VladD pm