wpf tag

43 questions


1 answers
385 views
0
I want the color I wrote in XML to be the background color of the dynamically generated button.

We are working on generating buttons dynamically.I would like to set the background color of the button to the color written in XML (such as Red).I'm having a hard time because I don't know how to set...

wpf
1 years ago

1 answers
505 views
0
If you close the app after using PdfDocument, the process will remain.

I'd like to use the PdfDocument of WinRT in WPF, but there may be a process left even if I close the app.Is there anything missing?Below is the reproduction code.< u l >PdfPage.RenderToStreamAsync() l...

2 years ago

1 answers
295 views
0
How do I set the SelectedIndex of ComboBox on the C# side?

When you create ComboBox on the C# side, you do not know how to set the SelectedIndex property.What method should I use?Please use the xaml below as an example.<ComboBoxName=newCombo SelectedIndex...

2 years ago

1 answers
300 views
0
Best Practices for Split Prism Module

. for development using Net Core 3.1+ PrismI think there are cases where processing is divided by module.At that time, the initial modules generated by PrismTemplatePack are in the View/ViewModel fold...

2 years ago

1 answers
100 views
0
WPF app created in Blend for Visual Studio does not work when taken out of bin

The WPF app created in Blend for Visual Studio 2017 is now available.Running from Blend and starting .exe from (project name) /bin/Release/ works as expected.When I moved .exe from the bin/release to ...

wpf
2 years ago

1 answers
104 views
0
WPF wants to display transparent WebP images correctly

You can now view WebP in Windows 10, but when you try to view transparent WebP in WPF, the transparent part becomes corrupted.Is there a way to display it correctly?<Image Source=1_webp_a.webp/>...

2 years ago

1 answers
171 views
0
I want to know why the screen flickers when I change the ControlTemplate of the Button control.

■PrefaceIn order to customize the appearance of Button in WPF, we have rewritten the ControlTemplate as follows:(Comment <--Rewrite Control Template Button --> and below) In addition, for ease o...

2 years ago

3 answers
155 views
0
How to Find Any Character in Text

Now I know how to count the number of characters in the entire input text, using the TextChanged event, using charCount=input.Text.Length.Then, what should I do to find out how many characters are in ...

2 years ago

1 answers
131 views
0
I want to get and set the AppendChild value that I added to DataTemplate

C#WPF Code TemplateYou have created and displayed a DataTemplate using the above page as a reference.FrameworkElementFactory textBlock = newFrameworkElementFactory(typeof(TextBlock), TextBlock);textBl...

2 years ago

1 answers
99 views
0
I want to find out why C#+WPF ended the window.

Developing apps with C#+WPFThe app consists of a main window and multiple subwindowsSet ShutdownMode=OnMainWindowClose in App.yamlConsider two situations:Sub-window closed aloneThe main window is clos...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.