C
C#15mo ago
ch3rry

❔ Exception: the component does not have a resource identified by the uri


Dictionary<string, object> frames = new Dictionary<string, object>
{
{"ClientAdd", new ClientAdd()},
{"Requests", new PageRequests()},
{"Results", new PageResults()}
};

public void LoadFrame(string frameName)
{
foreach (object child in tabButtons.Children)
{
if (child is not Button) continue;
var button = child as Button;

if ((button.Tag?.ToString() ?? "") != frameName)
button.Name = "";
else
button.Name = "tabActive";
}
frameMain.Content = frames[frameName];
}

public void ReloadFrame(string frameName, object frameObj, bool justRenew = false)
{
frames[frameName] = frameObj;
if (!justRenew) LoadFrame(frameName);
}

Dictionary<string, object> frames = new Dictionary<string, object>
{
{"ClientAdd", new ClientAdd()},
{"Requests", new PageRequests()},
{"Results", new PageResults()}
};

public void LoadFrame(string frameName)
{
foreach (object child in tabButtons.Children)
{
if (child is not Button) continue;
var button = child as Button;

if ((button.Tag?.ToString() ?? "") != frameName)
button.Name = "";
else
button.Name = "tabActive";
}
frameMain.Content = frames[frameName];
}

public void ReloadFrame(string frameName, object frameObj, bool justRenew = false)
{
frames[frameName] = frameObj;
if (!justRenew) LoadFrame(frameName);
}
so i have this weird error in my application that gets triggered when calling ReloadFrame. thing is, this was working fine just earlier, idek why i'd get this.
No description
2 Replies
ch3rry
ch3rryOP15mo ago
when i call LoadFrame() it doesn't throw this, the page is loaded from the dictionary, but as soon as i call the constructor again (ReloadFrame("name", new Page())), it does anyone pls? ?
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server