Nothavid
Nothavid
CC#
Created by Nothavid on 10/2/2024 in #help
Blazor Isolated CSS not working
so it did in some capacity detect the isolated css
8 replies
CC#
Created by Nothavid on 10/2/2024 in #help
Blazor Isolated CSS not working
couldn't have been the problem since the html had the attributes
8 replies
CC#
Created by Nothavid on 10/2/2024 in #help
Blazor Isolated CSS not working
I still do not know what the issue was but i fixed it by copying the little code i wrote and pasting it into a new project... I'd still be happy to hear why it was not working anyway
8 replies
CC#
Created by Nothavid on 10/2/2024 in #help
Blazor Isolated CSS not working
apparently the @import 'ChemStore.Web.Client.bundle.scp.css'; is not the problem. Ive never worked with css (or html or blazor) before, so I didnt know that
8 replies
CC#
Created by Nothavid on 10/2/2024 in #help
Blazor Isolated CSS not working
The file is named MainLayout.razor.css and is contained within the same folder as MainLayout.razor:
@inherits LayoutComponentBase

<div class="header">
<a href="/"><img class="home-icon" src="/res/img/home.png" /></a>
<img class="profile-icon" src="res/img/profile.png" @onclick="@ToggleProfileMenu" />

@if(showProfileMenu)
{
<div class="profile-menu">
<ul>
<li><a href="/profile">Profile</a></li>
<li><a href="/cart">Cart</a></li>
</ul>
</div>
}
</div>

@Body

<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>

@code {
bool showProfileMenu;

private void ToggleProfileMenu() => showProfileMenu = !showProfileMenu;
}
@inherits LayoutComponentBase

<div class="header">
<a href="/"><img class="home-icon" src="/res/img/home.png" /></a>
<img class="profile-icon" src="res/img/profile.png" @onclick="@ToggleProfileMenu" />

@if(showProfileMenu)
{
<div class="profile-menu">
<ul>
<li><a href="/profile">Profile</a></li>
<li><a href="/cart">Cart</a></li>
</ul>
</div>
}
</div>

@Body

<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>

@code {
bool showProfileMenu;

private void ToggleProfileMenu() => showProfileMenu = !showProfileMenu;
}
8 replies
CC#
Created by Nothavid on 8/14/2024 in #help
Discord.NET cannot view invite uses
Yes, it's the default value. The code runs fine and doesn't throw any Exceptions.
4 replies
CC#
Created by Nothavid on 8/14/2024 in #help
Discord.NET cannot view invite uses
I won't be staying up now so I hope I provided all necessary information.
4 replies
CC#
Created by Dad on 5/21/2024 in #help
how do i put an image into a program
for a simple option you probably want to use windows forms with an imagebox
5 replies
CC#
Created by Nothavid on 5/19/2024 in #help
✅ Finding all FieldInfo's of BackingFields of a type
$close
4 replies
CC#
Created by Nothavid on 5/19/2024 in #help
✅ Finding all FieldInfo's of BackingFields of a type
I just had the bright idea of asking ChatGPT the exact same and, for once, it actually knew something. Now that I've seen it it's obvious but compiler generated fields are also created when you use async or yield return.
4 replies
CC#
Created by kapetandzoni on 4/25/2024 in #help
✅ Using UTF-8 encoding
glad i could help :)
7 replies
CC#
Created by kapetandzoni on 4/25/2024 in #help
✅ Using UTF-8 encoding
I don't think 'š' is included in the UTF8 char set. I have no clue why writing it works in that case but changing the input encoding to Unicode seems to fix it
7 replies