Window-component:
<TelerikWindow @bind-Visible="@_visible">
<WindowTitle>Window</WindowTitle>
</TelerikWindow>
<TelerikButton OnClick="Show">Toggle</TelerikButton>
@code
{
private bool _visible;
public void Show()
{
_visible = !_visible;
}
}
Other component:
<WindowComponent @ref="_windowComp"/>
<TelerikButton OnClick="() => _windowComp.Show()">Show</TelerikButton>
@code {
private WindowComponent _windowComp;
}
Nothing happens when pressing the "Show"-button, although debugging clearly shows that the Show()-method is executed.