C
C#2y ago
n305

✅ materialDesign:Card

for some reason it says that closing matrialcard doesent exist and it shows an error
25 Replies
n305
n305OP2y ago
Lexaro
Lexaro2y ago
send me the code i fix it for you
n305
n305OP2y ago
<Window x:Class="TalgrafNaytto.SplashScreen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="https://materialdesignxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="SplashScreen" Height="450" Width="750"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True"
Background="{x:Null}">



<materialDesign:Card UniformCornerRadius="15" Background="{DynamicResourse MaterialDesignPaper}"
materialDesign:ShadowAssist.ShadowDepth="Depth4" Margin="25">

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="350"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
</Grid.ColumnDefinitions>

<StackPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50
0 0 0">

<WrapPanel>
<Image Source="Assets/talgraflogo.png" HorizontalAlignment="Left" Height="50"
Width="50"></Image>
<TextBlock Text="Talgraf" FontSize="28" FontWeight="Bold"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15 0 0 0"></TextBlock>
</WrapPanel>


</StackPanel>

</Grid>

</materialDesign:Card>
</Window>
<Window x:Class="TalgrafNaytto.SplashScreen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="https://materialdesignxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="SplashScreen" Height="450" Width="750"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True"
Background="{x:Null}">



<materialDesign:Card UniformCornerRadius="15" Background="{DynamicResourse MaterialDesignPaper}"
materialDesign:ShadowAssist.ShadowDepth="Depth4" Margin="25">

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="350"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
</Grid.ColumnDefinitions>

<StackPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50
0 0 0">

<WrapPanel>
<Image Source="Assets/talgraflogo.png" HorizontalAlignment="Left" Height="50"
Width="50"></Image>
<TextBlock Text="Talgraf" FontSize="28" FontWeight="Bold"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15 0 0 0"></TextBlock>
</WrapPanel>


</StackPanel>

</Grid>

</materialDesign:Card>
</Window>
thank you:) Im trying to create a splash screen now, and after that I will make it go to a page where you can choose download this is a test for a trainee position:D I have a week to do this C# is my weakest language
Lexaro
Lexaro2y ago
<Window x:Class="TalgrafNaytto.SplashScreen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="https://materialdesignxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="SplashScreen" Height="450" Width="750"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True"
Background="{x:Null}">



<materialDesign:Card UniformCornerRadius="15" Background="{DynamicResourse MaterialDesignPaper}"
materialDesign:ShadowAssist.ShadowDepth="Depth4" Margin="25">

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="350"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
</Grid.ColumnDefinitions>

<StackPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50
0 0 0">

<WrapPanel>
<Image Source="Assets/talgraflogo.png" HorizontalAlignment="Left" Height="50"
Width="50"></Image>
<TextBlock Text="Talgraf" FontSize="28" FontWeight="Bold"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15 0 0 0"></TextBlock>
</WrapPanel>


</StackPanel>

</Grid>

</materialDesign:Card>
</Window>
<Window x:Class="TalgrafNaytto.SplashScreen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="https://materialdesignxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="SplashScreen" Height="450" Width="750"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True"
Background="{x:Null}">



<materialDesign:Card UniformCornerRadius="15" Background="{DynamicResourse MaterialDesignPaper}"
materialDesign:ShadowAssist.ShadowDepth="Depth4" Margin="25">

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="350"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
</Grid.ColumnDefinitions>

<StackPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50
0 0 0">

<WrapPanel>
<Image Source="Assets/talgraflogo.png" HorizontalAlignment="Left" Height="50"
Width="50"></Image>
<TextBlock Text="Talgraf" FontSize="28" FontWeight="Bold"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15 0 0 0"></TextBlock>
</WrapPanel>


</StackPanel>

</Grid>

</materialDesign:Card>
</Window>
@Ne0
n305
n305OP2y ago
Thank you, what part did you change?
n305
n305OP2y ago
because it still gives me these:
Lexaro
Lexaro2y ago
add the name "Card" to ur namespace
n305
n305OP2y ago
Im sorry, but what is "namespace"?😅 @Lexaro
Lexaro
Lexaro2y ago
?????? u dont know what a namespace is? and want to do something in C#?
n305
n305OP2y ago
well im not good at c# its my weakest language
Lexaro
Lexaro2y ago
A namespace in C# is a way of organizing and grouping related classes, interfaces, and other types in a logical manner. Namespaces help to avoid naming conflicts between types in different parts of an application and also help to structure the code in a hierarchical and meaningful way. Look at the beginning of your code
n305
n305OP2y ago
n305
n305OP2y ago
yeah so I put the "Card" on the class=""?
Lexaro
Lexaro2y ago
yea
n305
n305OP2y ago
so I delete the current one
Lexaro
Lexaro2y ago
👍
n305
n305OP2y ago
n305
n305OP2y ago
n305
n305OP2y ago
😭 😭 why is this so hard
Lexaro
Lexaro2y ago
I would advise you to learn C# first before you start a big project
n305
n305OP2y ago
I have used C# in unity projects before I have made some games
Lexaro
Lexaro2y ago
then maybe start with Windows Forms not with Windows Presentation Foundation
n305
n305OP2y ago
yeah, the thing is that this is not some project that I want to do I have to do this and submit it to get a trainee position I have 1 week to do this If I succeed I get a position If not.. well let's not think about that
Lexaro
Lexaro2y ago
Hm
n305
n305OP2y ago
I like HTML and python the best and I figured that I will get help here so that's why im here anyways thanks, I will try to do the rest on my own
Want results from more Discord servers?
Add your server