Winform: How to copy treenode collection in clipboard with Tag property
Suppose i have a treeview and a particular node has few sub node and sub node has another nodes etc or particular node has no sub nodes. in my case i have assign a object to tag property of each node. Now i want when user select any node and click button…
How to handle Transform Animation on listview (shopping basket sample)?
I have created a transform animation similar to below using xamarin.forms. I achieved that using a behavior on a view cell of the lisview. But what actually happen is, item of the view is literally moving to the basket using the code below and there…
array in dataGrid
Hi, I am writing a booking system. Following is my xaml. <DataGrid HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0" CanUserResizeColumns="False" …
old app version is started after file is replaced
We are developing a WinForms desktop application. In order to update our application, we replace the exe-file. At this point the application is running by several users. If a user restarts the application (on the same or another server in network),…
navigate from page to main window wpf
navigate from page to main window wpf
XAML Binding to the Title of a Window does not always work {Relative Source, AncestorType=Window}.
Hi. I need to databind two TextBlocks to the Window Title property. The first one works via "RelativeSource FindAncestor, AncestorType=Window}", but the second one does not (it's deeply nested within a button tooltip). How can I change the…
IIS anonymous site prompting for credentials
Not sure what I have missed here but I have a simple site which uses anon authentication (all others are disabled). I have allowed directory browsing and have set NTFS to everyone, IUSR, users read/list contents but I still get prompted when trying to…
Winform: Always getting NULL when retrieve data from clipboard
I have store the instance of my class in clipboard and when retrieve the same from clipboard then getting null always. i marked my class [Serializable] but still no luck. i am not being able to find out where i made the mistake. Here is my code. please…
How to set cookies to WebView2 control in c#?
How to set the cookies in Webview2 control in c#? Here is how i am navigating the url into WebView2 control. WebView.CoreWebView2.Navigate("URL Name"); I tried using the 'WebResourceRequested' event but there is no way to add headers into the…
Windows Store app cannot install Windows service ?
Hi, I'd like to publish my application (.NetFramework/WPF) on Windows Store. I could build an appinstaller package that installs perfectly. At first startup my application installs a Windows service which seems to fail. Is there some limitation…
Binding a Trigger to a custom property in a UserControl
I have a StackPanel with a handful of custom UserControls (MyUserControl). I'm trying to write a style trigger that will hide MyUserControls if their CustomObject dependency property has IsEnabled set to False. For example, with no style... …
Need Help with Resize Event
I am struggling with the Resize event. I have a 3 tabpage form with 300+ plus controls. I am not using anchors or TableLayoutPanel, but am calculating the new size and placement manually for each control in the Resize event. I allow the user to…
CollectionView / Grouping destroys selection
I have a ListBox which worked great. I put in code to prevent a selection from occurring during the load on the items into the ItemsSource (Binding). I then wanted to group the items. All of a sudden the code that I had no longer worked. Spying with…
Why TextTrimming="CharacterEllipsis" doesn't work?
<StackPanel > <TextBlock TextTrimming="CharacterEllipsis" Text="{Binding RevitView}" ></TextBlock> <Button MinWidth="30" HorizontalAlignment="Right" >...</Button> …
how to respond to List.Clear()
hi, we trying to define canvas with itemssource , but the only problem it doesn't respond to list.clear(), public IList<object> ItemsSource { get { return (IList<object>)GetValue(ItemsSourceProperty); } …
Through the "System.Speech.DLL" Get voice pack problem.
Hello, everyone. I'm using the WPF programming tool on Win10, my job needs to install the multi-language voice packs for testing the Text-To-Speech on my current OS. So far, I have installed Japanese, Korean, French, German, Italian, and Portugal 6…
How to use multiple dictionaries in WPF for controls independently
Hi All. I use several dictionaries in my project. One dictionary is MaterialDesignInXAML. When I added this library to my project, it styled all the controls. I would like to use this library for RadioButton and TextBox only, but it did not affect…
minimize(automate) this binding boilerplate:
hi, is there a way to minimize(automate) this binding boilerplate: private static TextBlock NewTextBlock(TextBlockViewModel textBlockVM) { var textBlock = new TextBlock(); Binding dc = new Binding() { Source =…
Is UDP viable for trading Server and Clients?
I've experimented once on UDP (Unicast, Multicast and Broadcast) and undermined it always as I read a lot about its unreliability in data transmission. Today, I've read an article, UDP Delivers BUT I'm not sure whether it's suitable for this, my first…
Smooth Bezier Segment for UWP
If we look WPF implementation of Bezier cure you will find 3 functions (WPF mini-language) C for cubic Bezier (3 arguments) Q for QuadraticBezierSegment (2 arguments) and S for Smooth Bezier Segment (2 arguments). So, this path works fine which contains…