palusi
palusi
CC#
Created by palusi on 7/26/2023 in #help
❔ problem loading json into dynamic object
okay thank you all
14 replies
CC#
Created by palusi on 7/26/2023 in #help
❔ problem loading json into dynamic object
whats wrong with newtonsoft? And how exactly can i paste json as c# classes in vs?
14 replies
CC#
Created by palusi on 7/8/2023 in #help
❔ Questions about uno platform
and here only the windows part worked:
<Page x:Class="MyUnoApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyUnoApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wasm="http://uno.ui/wasm"
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<StackPanel HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock
win:Text="by win" x:Name="HelloTextBlock" />
<TextBlock wasm:Text="by wasm"/>
<Button Width="100" Height="100" Click="Button_Click"/>

</StackPanel>
</Page>
<Page x:Class="MyUnoApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyUnoApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wasm="http://uno.ui/wasm"
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<StackPanel HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock
win:Text="by win" x:Name="HelloTextBlock" />
<TextBlock wasm:Text="by wasm"/>
<Button Width="100" Height="100" Click="Button_Click"/>

</StackPanel>
</Page>
6 replies
CC#
Created by palusi on 7/8/2023 in #help
❔ Questions about uno platform
this does not work:
using Microsoft.UI;

namespace MyUnoApp
{
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}

private void Button_Click(object sender, RoutedEventArgs e)
{
string message = string.Empty;

#if NETFX_CORE
message = "Hello from UWP World!";
#elif __ANDROID__
message = "Hello from Android World!";
#elif __IOS__
message = "Hello from iOS World!";
#elif __WASM__
message = "Hello from Web Assembly World!";
#elif __MACOS__
message = "Hello from MacOS World!";
#endif
HelloTextBlock.Text = message;
}
}
}
using Microsoft.UI;

namespace MyUnoApp
{
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}

private void Button_Click(object sender, RoutedEventArgs e)
{
string message = string.Empty;

#if NETFX_CORE
message = "Hello from UWP World!";
#elif __ANDROID__
message = "Hello from Android World!";
#elif __IOS__
message = "Hello from iOS World!";
#elif __WASM__
message = "Hello from Web Assembly World!";
#elif __MACOS__
message = "Hello from MacOS World!";
#endif
HelloTextBlock.Text = message;
}
}
}
6 replies
CC#
Created by palusi on 7/8/2023 in #help
❔ Questions about uno platform
i also tried to write system specific code
6 replies
CC#
Created by palusi on 7/8/2023 in #help
❔ Questions about uno platform
I already tried to customize the splash screen by editing the AppManifest.js file, but it does not make a difference. I noticed that i can write anything in this file without getting an error and making a difference.
6 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
i set this using a setter in a style:
<Setter Property="WindowChrome.WindowChrome">
<Setter.Value>
<WindowChrome CaptionHeight="26" ResizeBorderThickness="6" CornerRadius="0" GlassFrameThickness="1 0 0 0"
NonClientFrameEdges="None" UseAeroCaptionButtons="False" />
</Setter.Value>
</Setter>
<Setter Property="WindowChrome.WindowChrome">
<Setter.Value>
<WindowChrome CaptionHeight="26" ResizeBorderThickness="6" CornerRadius="0" GlassFrameThickness="1 0 0 0"
NonClientFrameEdges="None" UseAeroCaptionButtons="False" />
</Setter.Value>
</Setter>
now i have these problems: 1. in fullscreen a part of the window isn't visible 2. clicks on buttons on top of the window dont be recognized 3. the window animations for maximizing and minimizing dont play 4. By resizing the window on the right or top side it laggs How can I fix this or is there any better way to do this?
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
just put it in the window as general item or where should i put it?
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
Didnt work
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
Tried that
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
No
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
@WPF
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
i only want to change the color of the window menu border, is there any fast way to do that?
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
is it possible?
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
errror message: "Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand Fehler XDG0008 "WindowChrome" wird in einem Windows Presentation Foundation (WPF)-Projekt nicht unterstützt. " translated: Severity Code Description Project File Line Suppression state Error XDG0008 "WindowChrome" is not supported in a Windows Presentation Foundation (WPF) project.
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
does not work with wpf i guess
33 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
Thanks
33 replies
CC#
Created by palusi on 6/18/2023 in #help
❔ wpf custom fonts
can sb help?
4 replies
CC#
Created by palusi on 6/13/2023 in #help
wpf question
Found sth on Stack overflow, thank you
5 replies