palusi
palusi
CC#
Created by palusi on 7/26/2023 in #help
❔ problem loading json into dynamic object
I have a problem loading a json file into a dynamic object in c#. My problem is that some parameters of the c# file have a "-" in the keyword, such as the "official-artwork" parameter. Under what name can I access it now? My Code:
string json = "https://pokeapi.co/api/v2/pokemon/pikachu";
dynamic data = JsonConvert.DeserializeObject<dynamic>(json);
Console.WriteLine(data.sprites.other.official_artwork.front_default);
string json = "https://pokeapi.co/api/v2/pokemon/pikachu";
dynamic data = JsonConvert.DeserializeObject<dynamic>(json);
Console.WriteLine(data.sprites.other.official_artwork.front_default);
14 replies
CC#
Created by palusi on 7/8/2023 in #help
❔ Questions about uno platform
After I learned how to build apps with wpf i want to lean how to build apps with uno platform. I know have the following questions: 1. How can I change the application icon of my uno app? 2. How can I customize the splash menu for wasm? 3. How can I write System specific xaml and c#? 4. How can I write seperate Ui pages for different systems? For example if the mobile apps should have a different ui than the wasm or windows apps 5. Where can i find the finished build applications to deliver?
6 replies
CC#
Created by palusi on 6/29/2023 in #help
❔ wpf custom window
I want to design a custom window in wpf. The window should behave normally, i.e. animations, gestures, etc., but the edge of the window should be up to me. What's the best way to do this?
33 replies
CC#
Created by palusi on 6/18/2023 in #help
❔ wpf custom fonts
how can I use custom fonts in my wpf application? i want to use the Kablammo font from google fonts: https://fonts.google.com/specimen/Kablammo I saved the font in my application in a folder named "fonts". By using this xaml code the font of the text will still have normal font:
<TextBlock Text="Hello World" FontFamily="fonts/Kablammo-Regular.ttf #Kablammo" FontSize="50"/>
<TextBlock Text="Hello World" FontFamily="fonts/Kablammo-Regular.ttf #Kablammo" FontSize="50"/>
can someone help?
4 replies
CC#
Created by palusi on 6/13/2023 in #help
wpf question
how can I set the templates for the scrollbars of the scrollviewer? Is there any short way to do that?
5 replies
CC#
Created by palusi on 6/3/2023 in #help
❔ wpf question
16 replies
CC#
Created by palusi on 3/4/2023 in #help
❔ xaml question
Is it possible to use custom parameters for a template in xaml? So for example if i want to use a gradient for the Button background in a Parameter that i can use two custom color parameters for the color?
2 replies
CC#
Created by palusi on 3/2/2023 in #help
❔ compile at runtime
Is there any way to check if a string is actual c# code and if it is to compile and run it at runtime?
7 replies
CC#
Created by palusi on 2/16/2023 in #help
❔ calculator
I want to write a function which returns if a string can be used as calculator input. The calculator should use the Operators +-*/, brackets and foats. Should i use regex for this? How can I use it for this?
19 replies
CC#
Created by palusi on 2/6/2023 in #help
❔ Binding Xaml
9 replies