How to apply search in collection view with portion loaded data?
i want to display filtred product in collectionview defined as: <CollectionView Grid.Row="0" Grid.ColumnSpan="3" IsVisible="{Binding IsNoResult, Converter={StaticResource…
Use same VisualStateGroup in all different ListViewItem style
Hello everyone. I'd like to make my VisualStateGroup unique for all ListViewItem, so that any ListViewItem style, even different, can use the same VisualStateGroup, without repeating in the ListViewItem style. Declare the VisualStateGroup once and all…
Performance Discrepancy Between Templated Control and Direct Implementation
I encountered a performance issue while working on a project where I utilized two identical buttons with all properties set the same. The only difference was in the content: one button utilized a PathIcon inside a Viewbox, while the other utilized a…
PrintTaskOptions throws Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Hi Team, We are trying to invoke a print preview from the stream of PDF documents. While invoking the print preview we are receiving Catastrophic failure from the PrintTaskOptions while creating print preview pages. We have tried the following methods…
Visual Studio XAML mobile app, ZIndex is not working
I am working in XAML. I have a page the sets a rectangle with a black background a pixel; border about as wide as a mobile phone. I am trying to place a label in the upper left of the rectangle with a black background and white text. What is occurring…
UWP DataGrid Scrollbar Issue: Unable to Scroll Using Touch on Touch Screen Devices
I'm developing a UWP app and I'm utilizing the DataGrid control from Microsoft.Toolkit.Uwp.UI.Controls to display data. While I can scroll using the mouse using both the scrollbar and its buttons, on a touch screen device, I can only scroll via finger…
How to know if Bluetooth connection is lost when application is running in Xamarin Forms. Any listener will hit?
How we can know if bluetooth connection is lost or turned off when we are running the application without any Button click event. App is connected to some ble devices . How to handle the scenario ? Any listener will hit or not? private void…
xaml comboxbox textbox lostfocus firing when clicking on combobox dropdown button to expand list
Use case is a value already stored in the control. To remove the value to change it (the list is filtered on the value), the user will backspace or ctrl+Shift Home to highlight and delete the current value. Now the user wants to select a new item from…
How to Make Span Text/content Wrapped if it exceeds?
Here if my account number exceeds the numbers from last get cut/disappear. So I used LineBreakMode to WordWrap in label but this is also not working here. <Label FontFamily="InterstateRegular"> …
xaml comboxbox textbox lostfocus firing when clicking on combobox dropdown button to expand list
Use case is a value already stored in the control. To remove the value to change it (the list is filtered on the value), the user will backspace or ctrl+Shift Home to highlight and delete the current value. Now the user wants to select a new item from…
About automatic suggestion and completion of XAML codes on Visual Studio Code
Hello I installed the Visual Studio Code application on my computer. I generally work on C#. But I have a problem. When developing a WPF project and working in XAML files, suggestions of XAML codes are not completed by the compiler in CS files as in C#…
Why so that when I set the Flyout behavior for one page it afects the wholle app
When Im setting the Flyout behavior to not appear on thr login page it gets disabled in the whole app, strager of all is that if I disable gesture navigation, if I pull on the side of the screen it appears, plus if i tap on the flyoutitem the flyout…
WPF ItemsPresenter
In the following XAML: <Window.Resources> <ControlTemplate x:Key="ListTemplate"> <Grid> <ItemsPresenter…
WPF rendering issue on any machine
Please follow this steps to catch problem on your machine. Please, help me resolve it. Create empty WPF project. Use property CacheMode="BitmapCache" in MainWindow's Grid; Show MainWindow on start application, then hide it. Show new any…
TreeViewDragItemsCompletedEventArgs.NewParentItem null
Hi, I added an event handler for the TreeView.DragItemsCompleted event, and the eventargs' NewParentItem is always received as null. The item was dragged within the tree onto another node in the tree.
Converting the PDF to a bitmap image corrupted the text content of the PDF.
I have a PDF document and using the below code logic, I am trying to convert the PDF page to an image. After converting the image, the text content in the PDF displayed as corrupted. PQ-376500-STR-FDN-KZV-00011-001.pdf |Stream PdfStream =…
How to use different Data Types in a Custom Control
I have a Custom NumericUpDown control in my WPF C# .NET 8 application that is working nicely, But now i want to update it so that it can use different Numbers DataTypes like int and decimal so that i can re-use my custom NumericUpDown control instead of…
I want to turn on the PC from sleep mode on windows 10/11 programmatically in WPF (.net framework) C# application. How to achieve it ?
I want to perform windows sleep turn on and then wake up the PC after some time say 2 days later. I have two options :- Either programmatically sleep the pc and wake it up later automatically(but it requires manual entering of password to pc after…
How to get a PowerShell available list of events, methods, and properties For GUI using Xaml
My Question is here I want to know to get a PowerShell available list of events, methods, and properties for GUI using Xaml https://stackoverflow.com/questions/77853338/how-to-get-a-powershell-available-list-of-events-methods-and-properties-for-gu
How to use a type in attachedBindableProperty in xaml?
public class LayoutHelper<T> { public static readonly BindableProperty ItemSourceProperty = BindableProperty.CreateAttached("ItemSource", typeof(ObservableCollection<T>), typeof(LayoutHelper<T>), null); .... } In C#…