A list of puns related to "Xaml"
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?
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.
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?
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.
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. :(
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?
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
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?
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?
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.
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
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)
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.
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.
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
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.
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?
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
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.
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.
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
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.