Just sharing the UI of a new medication reminder app I built using c# and xaml. reddit.com/gallery/s2u4n2
πŸ‘︎ 352
πŸ’¬︎
πŸ‘€︎ u/kid_jenius
πŸ“…︎ Jan 13 2022
🚨︎ report
NodeEditor - Avalonia C#/XAML application running on the web (Windows 7/Chrome) youtube.com/watch?v=Y36Fy…
πŸ‘︎ 75
πŸ’¬︎
πŸ‘€︎ u/wieslawsoltes
πŸ“…︎ Dec 17 2021
🚨︎ report
Amazing: what took me 1 month to do with UWP/WinUI 2.7 took just 3 hours on WinUI 3 for Desktop. I mean, not everything has been done because WinUI 3 still lacks features that will arrive soon, such as the acrylic effect. And of course I copied the previous XAML and adjusted it to the new "flavor"😊 v.redd.it/7q1l547akdb81
πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/LWoutersFL
πŸ“…︎ Jan 13 2022
🚨︎ report
Is it normal in large MVVM project to just give up on the xaml designer?

I'm inheriting a massive application suit, 60+ projects, a dozen in the presentation layer alone, and have never worked extensively with WPF before. Naturally there are a handful of abstract base classes for all the views, style reference dictionaries being loaded in the constructors of those classes, plus any number of custom controls etc... But for even the simplest of forms, the xaml designer throws a "cannot create instance of type" error.

My question is: is it normal to just give up on the designer and work the xaml code raw in applications this size, or should I go down the rabbit hole and see if I can refactor whatever mistakes were made so the Visual Studio IDE can cope?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/waremi
πŸ“…︎ Dec 18 2021
🚨︎ report
Web app developed with C# and XAML. Powered by Avalonia and Web Assembly. youtube.com/watch?v=Y36Fy…
πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/DotNetEvangelist
πŸ“…︎ Dec 18 2021
🚨︎ report
How to Run .xaml uipath file using autohotkey

Hai I was started learning uipath after creating my first bot is there any way to execute the created bot (file format .xaml) using autohotkey scripting.

I tried something like

Run, filepath/uipathRobot.exe, filepath/Web_scrapping.xaml

But not working...Kindly suggest and guide through this,

Thanks in advance.

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/Silentwolf99
πŸ“…︎ Dec 30 2021
🚨︎ report
Tools for XAML

What extensions do you suggest for Visual Studio and/or Rider, or other third-party tools, that make your work with XAML better and easier?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/LWoutersFL
πŸ“…︎ Jan 14 2022
🚨︎ report
XAML Slider & Test Box Formatting

//SOLVED!

Hello,

I would like the Slider and Text-Box to stay closer together in the following XAML:

<Window x:Class="DzMapTool.SettingsWindow"
        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:local="clr-namespace:DzMapTool"
        mc:Ignorable="d"
        Title="SettingsWindow" Height="450" Width="800">
    <Grid>
        <DockPanel Margin="233,68,229,297">
            <TextBox x:Name="OpacityTextBox" Text="{Binding ElementName=opacitySliderValue, Path=Value, UpdateSourceTrigger=PropertyChanged}" TextAlignment="Center" Width="30" Height="30" BorderThickness="3,3,3,3" Margin="-20,0,0,0" DockPanel.Dock="Right" HorizontalAlignment="Left" />
            <Slider Margin="0,0,0,0" Width="228" ValueChanged="Slider_ValueChanged" Height="24" Value="0.5" Maximum="1" Cursor="Hand" SmallChange="0.01" LargeChange="0.25" TickPlacement="BottomRight" TickFrequency="0.01" IsSnapToTickEnabled="True" Name="opacitySliderValue">
                <Slider.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <LinearGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform Angle="90" CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </LinearGradientBrush.RelativeTransform>
                        <GradientStop Color="Black" Offset="0.578"/>
                        <GradientStop Color="White" Offset="0"/>
                    </LinearGradientBrush>
                </Slider.Background>
            </Slider>
        </DockPanel>
    </Grid>
</Window>

When I resize the window, the TextBox oddly slights off to the right.

πŸ‘︎ 2
πŸ’¬︎
πŸ“…︎ Dec 28 2021
🚨︎ report
With some XAML diagnostics...
πŸ‘︎ 210
πŸ’¬︎
πŸ“…︎ Oct 07 2021
🚨︎ report
XAML Slider & Test Box Formatting /r/dotnet/comments/rqh2tq…
πŸ‘︎ 5
πŸ’¬︎
πŸ“…︎ Dec 28 2021
🚨︎ report
NodeEditor - Avalonia C#/XAML application running on the web (Windows 7/Chrome) youtube.com/watch?v=Y36Fy…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/wieslawsoltes
πŸ“…︎ Dec 17 2021
🚨︎ report
TUI (Text User Interface) (GUI Framework) implementation for Avalonia UI Supports XAML, data bindings, animation, styling and the rest from Avalonia github.com/jinek/Consolon…
πŸ‘︎ 67
πŸ’¬︎
πŸ‘€︎ u/wieslawsoltes
πŸ“…︎ Nov 04 2021
🚨︎ report
Just sharing the UI of a new medication reminder app I built using c# and xaml. (/r/dotnet) reddit.com/gallery/s2u4n2
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/ContentForager2
πŸ“…︎ Jan 16 2022
🚨︎ report
Designing an A4 document XAML in WPF

Hello, I currently try to design a document writer in my wpf application.

I wanna use the richtextbox.

So how can I design the document. With margins all around so I can print the document on my printer. (I think I nailed the printing part)

But I want to see the format of my letter before in my application, but I am already failing to implement margins, fixing the richtextbox on A4 size ...

I have to use the flowdocument element around the richtextbox element right?

Sorry I am really lay currently. I really thought printing stuff would be hard, but formatting the richtextbox sends to be harder. :(

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Saalkoz
πŸ“…︎ Dec 16 2021
🚨︎ report
Create objects inside of each other in XAML?

I have a specific GUI I'm trying to make where a hash table populates with a key that has a username and then inside of each value is an array with additional values.

Name                           Value
----                           -----
Username                       {Item 1, Item 2, Item 3}

I then want to take this hash table and create listbox's within tabs in XAML elements.

Here is my XAML.

[xml]$Tabs = @"
<Window     
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                
                Title="Tab ListBox"
                Height="250"
                Width="475">

    <Grid>

        <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="150" Width="400">
            <TabControl Name="TabControl"/>
        </Grid>

    </Grid>
</Window>
"@

The best I can get so far is to use

$hashtable.GetEnumerator() | ForEach-Object {
    $TabControl.Items.Add($_.Key)
}

which then creates the tabs I need, but I'm having a hard time figuring out how to use XAML to create a listbox inside of the newly created tab. I know that I can just do $listbox.ItemSource = $hashtable.Username to populate the listbox but how can I even get to the point where the listbox is created inside of the new tab I made with $TabControl.Items.Add($_.Key)? I know I'll need to create the listbox inside of the foreach loop on the $hashtable, but I can't seem to find anything online to do that?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/TheBSGamer
πŸ“…︎ Nov 29 2021
🚨︎ report
How do I use one binding for multiple text boxes to separate three-digit numbers in WPF XAML?

I use C# WPF in Visual Studio 2019

I want to display my TextBoxes values as Thousands decimal separated like this 1500.9 => 1,500.9

I Choose Validation Rules and Binding for this problem because I don't want to use C# Code Behind and Another point is that this option alone does nothing for a text box

StringFormat="0,0.0" 

What is My Problem :

I thought Binding in Validation Rule uses this type of property for formatting , I did bind all of my textboxes to my property and now all text boxes have the same value even when I change one of them enter image description here

https://stackoverflow.com/questions/70183271/how-do-i-use-one-binding-for-multiple-text-boxes-to-separate-three-digit-numbers

πŸ‘︎ 2
πŸ’¬︎
πŸ“…︎ Dec 01 2021
🚨︎ report
XAML to SVG

I managed to extract the png and XAML assets from Visual Studio 2022 out of Microsoft.VisualStudio.ImageCatalog.g.en.resources, but I wanted to modify some of the icons. Being that the vector format is XAML in this case, I can’t seem to find any reliable XAML to SVG converters. Inkscape doesn’t seem to work with them. Anyone got a secret sauce for it?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Rhaegord
πŸ“…︎ Nov 13 2021
🚨︎ report
MAUI Blazor vs XAML?

So I'm a web developer and I want to learn to build mobile apps. I have tried using Blazor, I got fairly comfortable with it and I'm thinking of trying out .NET MAUI with Blazor webview.

My question is should I learn to use MAUI elements instead? Would I be missing out on some features if I focus on using only Blazor for mobile?

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/neosus
πŸ“…︎ Nov 10 2021
🚨︎ report
From designs to pixel-perfect XAML in seconds with Uno Platform for Figma youtu.be/5G73e21yN_w
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Unoplatform
πŸ“…︎ Dec 09 2021
🚨︎ report
I'm sometimes surprised how good looking c# .net xaml apps can be with minimal effort. Here's a small white noise app project I started a few months ago called Ambie. It now has >10k acquisitions and >3.5k monthly active users. It's open source on github!
πŸ‘︎ 316
πŸ’¬︎
πŸ‘€︎ u/kid_jenius
πŸ“…︎ Jul 24 2021
🚨︎ report
Microsoft recently introduced C# mark up which is use to create UI for .Net applications. Does it replace XAML? What’s your opinion.

Most of the people told that XAML is quite out dated, Microsoft also get rid if this and as a result in MAUI they introduce C# markup. So, main question is what’s the future of XAML? Because Microsoft doesn’t update it regularly.

πŸ‘︎ 38
πŸ’¬︎
πŸ‘€︎ u/NearbyIssue629
πŸ“…︎ Aug 25 2021
🚨︎ report
Have anyone used xaml.behaviour or windows.interactivity in their WPF project?

I need to use an interaction triggers on a mouse hover. I have a control template of a button and I need to use the interaction triggers in that control template.

Anyone WPF developer here? Please reply

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/merun372
πŸ“…︎ Oct 26 2021
🚨︎ report
TUI (Text User Interface) (GUI Framework) implementation for Avalonia UI Supports XAML, data bindings, animation, styling and the rest from Avalonia github.com/jinek/Consolon…
πŸ‘︎ 45
πŸ’¬︎
πŸ‘€︎ u/wieslawsoltes
πŸ“…︎ Nov 05 2021
🚨︎ report
Why do almost all c# ui tools use xaml not something like json

I also want to know if it's possible to make my own ui tool that uses json instead of xaml they are really similar and I feel like using objects is better for ui tools (please correct me if I am wrong here)

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/ivan_ahmos
πŸ“…︎ Sep 15 2021
🚨︎ report
Trying to create appx app (Most recent windows calculator) from appxbundle, SCCM says it needs XAML and VClibs40 which are in the folder but it won't see them and deploying gets a failure.

Solution: Remove old dependency appxs and replace with new ones, even though they were the same version and architecture. No idea why.

I worked on this all yesterday and am just at a loss. I've got several versions of both dependencies in the folder with both the appxbundle and the extracted files just in case.

Anyone deal with something similar?

BTW, we have the store totally locked down on some computers so we have to deploy this way, even for MS apps like these.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/PGDW
πŸ“…︎ Oct 13 2021
🚨︎ report
Showing off some 60fps animations I added to my c# xaml .net app. Open source. v.redd.it/oze3ty5xjds61
πŸ‘︎ 445
πŸ’¬︎
πŸ‘€︎ u/kid_jenius
πŸ“…︎ Apr 10 2021
🚨︎ report
ReactiveUI: How to access XAML binding properties in code behind binding?

Hello, I need to set a source update trigger delay for a TextBox binding that I have in a ReactiveUI MVVM application. The TextBox is for a live data filter of a DataGrid so a delay of 300ms would allow the user to finish typing before the filter occurs. Here is the code that I have in XAML which is working:

<TextBox x:Name="TextBox_FilterString" Text="{Binding Path=FilterInput,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,Delay=300 />

I would like to move this binding into code behind to conform with ReactiveUI best practices and align with my other bindings like so:

this.Bind(ViewModel, vm => vm.FilterInput, v => v.TextBoxFilterString.Text)
    .DisposeWith(disposable);

One of the major benefits of this is the ability to quickly view all bindings in one place and have most binding failures happen at compile-time rather than run-time. Looking at the documentation, it looks like there are a lot of really neat binding interactions that can be implemented with ReactiveUI but I can't find an example of one that would implement a delay that resets with another keystroke. I can think of several clunky ways to do this, but I'd like to understand the right way if there is one. If anyone has any tips about how to implement this, please let me know.

Also, on a side note. ReactiveUI is a really awesome framework but it's been hard to connect with other users. If anyone knows of a forum or user-group that might be a better venue for this question, please let me know.

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/dregan
πŸ“…︎ Aug 06 2021
🚨︎ report
3rd party frameworks to add ease of use to XAML/WPF?

Hi! I come from the web dev world of HTML, javascript, etc., and I'm trying to learn Xaml/wpf. I find a some of the tools to be rigid and a bit hard to write succinctly, for example trying to programatically populate a WrapPanel in C#, I don't seem to be able to give an element a template and just fill in the variables.

Are there any popular libraries that make xaml/wpf a bit simpler to write?

As an example, in a webapp I might populate an area with divs using handlebars, like:

{{#each items}}
    <div class="SomeClass">{{this}}</div>
{{/each}}

But there doesn't seem to be a decent equivalent in wpf/xaml

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/proboardslolv5
πŸ“…︎ Jul 08 2021
🚨︎ report
XAML is awful
πŸ‘︎ 484
πŸ’¬︎
πŸ‘€︎ u/PixelBased_
πŸ“…︎ Apr 04 2021
🚨︎ report
Is it possible to display a real-time power bi dashboard within a Powershell XAML WPF app?

I have a dashboard currently hosted on the power bi service in a dedicated/premium capacity workspace and am trying to display the embedded dashboard within a tab of my WPF GUI that uses a combination of Powershell and XAML. Not exactly sure how I go about embedding the dashboard.

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/Black_Magic100
πŸ“…︎ May 22 2021
🚨︎ report
Referencing another XAML's element

I am trying to set up a function between two different WPF pages (let's call them PageA.xaml and PageB.xaml). While PageA.xaml has a Listbox called "lbRecords" set up to contain a series of records passed to it, PageB.xaml has a Combobox called "cbStates" set up to contain a series of States passed to it.

I am trying to set up in PageB a function called "cbStates_SelectionChanged" that changes what lbRecords displays based on the selected state, however I am having some trouble with referencing lbRecords from said function.

I have tried setting up a line that says "PageA.MainWindow origin = new MainWindow();" and then calling it through origin, however that just gives me heavy CPU usage continually (and also seems to keep it from displaying the window)...

How would I be able to reference PageA's lbRecords element in PageB while keeping CPU usage to almost a low pulse?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Leapswastaken
πŸ“…︎ Aug 24 2021
🚨︎ report
Are there coding conventions for XAML structure?

Hi Everyone!

As of now, I have been following my own way of doing my code structures and make it as readable as possible the same way I would do with my C# codes since I am strictly applying C# coding conventions.

I am curious if there are coding conventions or code structures for XAML files as well for the sake of readability and maintenance.

The image below is my sample code snippet wherein I added regions and made sure that the x:Name field is assigned using Pascal casing. I am not sure if I am on the right track.

Thank you!

https://preview.redd.it/m94mrxups4471.png?width=1234&format=png&auto=webp&s=4bfba83c8510d771440c580e2165268267409955

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/JehanJoseph550
πŸ“…︎ Jun 09 2021
🚨︎ report
XAML Designer vs Hot Reload /r/Xamarin/comments/o8c8m…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/FlyOnTheWall43
πŸ“…︎ Jun 26 2021
🚨︎ report
A Deep Dive: Demonstration - Building XAML/WPF via PowerShell

Greetings PowerShell community,

I made this video several months ago, but haven't posted it yet.
A Deep Dive: Demonstration - Building XAML/WPF via PowerShell - YouTube

This is a video I created to go along with the lesson plan of the same name.
The associated lesson plan is in the video description.
The lesson plan discusses some of my history with graphic design, some story elements, basic information about PowerShell... and how to combat dark mage wizardry (metaphor).

The lesson plan gets into the nitty gritty of how to build classes that handle the output of standard legacy applications like "netstat", "arp", and "nbtstat"... basically. And then, explaining how the classes pipe output directly into a XAML based GUI that uses DataGrid, Style elements, and PowerShell DataBinding.

Basically, everything from the cmd based application output parsing...
...to the the XAML building process...
...to the PowerShell code behind...
...it is all in this contiguous video.

Building XAML/WPF based applications is cool, and doing so with native PowerShell...?
Well, you get a feel for how top shelf PowerShell truly is.

Special thanks to (Damien Van Robaeys/systandeploy) for giving me the original inspiration to dive this deeply into this subject.

Feel free to leave feedback.

πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/mcc85sdp
πŸ“…︎ Jun 12 2021
🚨︎ report
I want to make better-looking applications, should I learn XAML? (beginner)

Hi guys. I started learning to program 3 months ago. I've been building out mini projects with Winforms. I've built a few applications, but nothing impressive (tic tac toe, inventory manager, and a calculator). My work functions well but is looking plain. I want my work to look more impressive. I want to create better UX's.

From what I've heard XAML is a very accessible language when creating better UX in the visual studio (please correct me if I'm wrong). I'm thinking of using this design for my projects going forward.

At the same time, I want a programming job by the end of the year (don't really know what role to go for, still in beginner mode). And I heard that XAML is mostly redundant and not used as widely as other languages. Will learning XAML be a complete waste of time then? What options do I have?

Hopefully, I can get some advice because there is a good course on Youtube by AngelSix and his login form looks beautiful.

Thanks.

πŸ‘︎ 57
πŸ’¬︎
πŸ‘€︎ u/LateProduce
πŸ“…︎ Feb 27 2021
🚨︎ report
Avalonia 0.10.0 Release – A cross platform XAML framework for .NET avaloniaui.net/blog/2020-…
πŸ‘︎ 123
πŸ’¬︎
πŸ‘€︎ u/wieslawsoltes
πŸ“…︎ Jan 22 2021
🚨︎ report
Is it possible to set commands and command parameters in a separate XAML style?

Hi Everyone!

I made a separate style indicating my button design. One of the things I noticed in one of my pages is that all buttons have the same command and command parameters.

Since all those buttons in that particular page have the same behavior, is it possible to create a Setter and a Property to a Style and attach a Data Binding that would make all the buttons in that page do the same thing?

https://preview.redd.it/duhpcrqcw4b71.png?width=884&format=png&auto=webp&s=5e7f2b037d18a258e2d41e75a6fad039e7faa6a5

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/JehanJoseph550
πŸ“…︎ Jul 14 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.