Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
75 views

Assuming the number of devices is set in the config.ini file as follows: [Device] Count = 10 When my WPF program starts, I want to automatically create buttons based on the Count value. For example, ...
2월32일's user avatar
2 votes
0 answers
127 views

I have following context menu defined as a part of the DataTemplate in xaml: <DataTemplate DataType="{x:Type viewModel:OverviewAnnotationItemViewModel}"> <views:...
Djomla's user avatar
  • 23
2 votes
1 answer
77 views

I have the below code: <ToggleButton x:Name="toggleBtn" Content="Open Popup" /> <Popup x:Name="pp" Placement="Bottom" StaysOpen="...
MinhSu - Justin's user avatar
0 votes
0 answers
18 views

I have a ComboBox with an ObjectDataProvider binding to an enum of colors. I have the enum descriptions displaying. I would like to have the ComboBoxItem background color match the designated color. I'...
Unanamous's user avatar
1 vote
0 answers
66 views

I created a WPF Class Library so that it would contain base styles that will be used in WPF application. In that class, I wanted to create like base styles for like buttons, expanders, etc. where say ...
NeoGenesis521's user avatar
2 votes
0 answers
58 views

Problem: I've created a custom WPF Button control with a ControlTemplate defined in a ResourceDictionary. This template uses DynamicResource for initial Background and Foreground properties (to ...
Cobret's user avatar
  • 64
0 votes
0 answers
86 views

I have FlowDocument containing simple Table with two columns with short content. And I want Table to not size to full page width but to minimal required width, according to content. And I want Table ...
Conroy Bagpipe's user avatar
1 vote
1 answer
54 views

I've managed to edit the copy of the Menu and MenuItem template to be used as styles for respective Control Elements with the triggers shown in the code snippets below The problem is i couldn't figure ...
AAng's user avatar
  • 123
0 votes
0 answers
141 views

Issue Summary: I'm working on a WinForms application using the Guna UI 2 library. I have a collapsible left side menu (Panel) that expands/collapses using animation (Timer). The problem: Controls ...
halooAl's user avatar
0 votes
0 answers
61 views

I'm new to C# WPF and Live Charts Core, and I'm trying to build up my knowledge in that field. I have an application that shows every second the output that comes from a random number generator as a ...
Anas Mousa's user avatar
0 votes
1 answer
64 views

In the code behind I cannot seem to access the Image (or any child) control of a Tooltip of an Image. Setup: I have a UserControl with an image that on hover displays a tooltip with a larger version ...
SimonJohnson's user avatar
-1 votes
1 answer
103 views

Hey all I am trying to figure out why my output is not looking like I am wanting. Currently my layout looks like this: <Window x:Class="howto_wpf_number_icons.Window1" xmlns="...
StealthRT's user avatar
  • 10.6k
0 votes
0 answers
87 views

I'm building a WPF application using WPF UI. In my MainWindow, I have a NavigationView that loads pages when menu items are clicked. One of these pages contains a WebView, and that page has a button ...
Naveen Kumar's user avatar
-1 votes
1 answer
68 views

I'm building a Custom Control. Added an event to the xaml. Compiler complained, I added an x:Class entry. Then it complained that my class needed a partial verb. And now it's complaining: "...
Nottoc's user avatar
  • 115
0 votes
0 answers
33 views

I have a WPF desktop app that has a grid control that floats on the screen. With the code below I resize my grid with a ResizeGrip located on the bottom right corner of the grid. I have attached the 3 ...
g00n3r's user avatar
  • 145
0 votes
1 answer
49 views

I have a WPF DataGrid and I'm trying to handle a scenario where an item does not exist in my ViewModel. When this happens, I display an error message and attempt to set focus back to the DataGrid cell ...
shiblabi's user avatar
1 vote
1 answer
79 views

I'm trying to display a context menu on individual cells of a DataGrid. When the user right-clicks the cell, I want a context menu showing 'copy to clipboard' to appear, and upon clicking it, it ...
Bradley Canty's user avatar
1 vote
0 answers
46 views

I have an Expander in my WPF application and it works fine. I have a property called AAA inside my own DataContext called BBB and this object contains an ObservableCollection of Products. This ...
Dalde7's user avatar
  • 11
0 votes
1 answer
57 views

Working on an application that has areas, with different foreground color for each area. Generic skeleton of the issue would look like this: <Window Style={StaticResource GrayForeground}> &...
XAMeLi's user avatar
  • 6,304
0 votes
1 answer
48 views

i am working on a WPF application using caliburn micro. I have a datagrid which has a list of a custom model as the itemsource. The Model looks like this: public class ProductModel : Screen { ...
Aimluv's user avatar
  • 1
0 votes
0 answers
76 views

I am currently working on a C# application where I am trying to interact with the On-Screen Keyboard (TabTip.exe) using Win32 API calls, specifically FindWindow, GetWindowRect, and SetWindowPos. ...
Shaik Rizwan's user avatar
0 votes
1 answer
55 views

I made a custom WPF ContextMenu to show buttons in a strip on top or at the bottom of the menu, much like the copy/paste buttons in the Windows 11 Explorer context menu. Everything works, but in the ...
miss programmer's user avatar
0 votes
1 answer
54 views

I am unable to disable the highlight effect on a MenuItem when hovering over it in a WPF ContextMenu. The issue is shown in the image. This only occurs when I bind the ContextMenu to an ItemsSource. ...
schizofreindly's user avatar
0 votes
1 answer
86 views

I am building a WPF application in C#. I am trying to implement a two column layout using Grid layout, similar to a browser sidebar. Grid is implemented as a 3-column layout because I am using a ...
superdry's user avatar
2 votes
0 answers
77 views

I'm developing a WPF application designed for touch screens. There is a modal window with button "New" on it. The button has 3 states: Normal: Hovered (orange background): Pressed (orange ...
Fulcrum's user avatar
  • 21
0 votes
1 answer
50 views

I'm trying to understand the details of WPF,but hit a stumbling block. I know that Selector is an abstract class that inherits from ItemsControl and adds the ability to select from its children. I ...
user3257308's user avatar
0 votes
1 answer
47 views

I have an WPF app running on a touchscreen where the user needs to hold down one button (The HOLD button) to enable a second button (the GO button). The idea is this accidentally prevents the user ...
NondescriptChap's user avatar
0 votes
1 answer
69 views

Using WPF, I have a layout that is a series of nested grids, because my understanding is that that is better at preserving the look I want than using RowSpan. Each resulting Grid section is a region, ...
whimsey's user avatar
  • 37
0 votes
1 answer
60 views

Idk why I have this error: <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas....
Maksym Shymchenko's user avatar
0 votes
1 answer
74 views

Currently checking on a control that zooms the content on screen of a wpf application. Struck in calibration part as the zoomed content of the content that is underneath the cursor needs to be shown ...
HariPrasad kasavajjala's user avatar
0 votes
1 answer
71 views

Right now I'm having this problem with controls that can display variable data of indeterminate size. For example, a TextBox displaying a long file path or a ListBox displaying error messages. This ...
MarkD's user avatar
  • 301
0 votes
1 answer
68 views

I am creating some custom components for a project that I am working on, and I've run into an issue that I am having with styling a user component (I know it's a bit messy, I was planning on cleaning ...
fallingLeaves's user avatar
0 votes
1 answer
84 views

I am trying to emulate right click from the code behind like so: static void RightMouseClick(Visual visual) { UIElement uel = (UIElement)visual; var e = new MouseButtonEventArgs(Mouse....
kuzyun's user avatar
  • 9
0 votes
1 answer
102 views

I am making a WPF application for quoting, and in one of my windows (defined as a user control, not a window), I have a print button that successfully renders the window to a bitmap and then into an ...
Tim D's user avatar
  • 11
0 votes
3 answers
230 views

I am using .Net 8.0 in my WPF project and also MaterialDesign. My problem is that I want to create a Menu where the root MenuItem has a plus icon, but for some reason trying to create an icon the size ...
Razraaab's user avatar
0 votes
2 answers
49 views

I have a section of my form defined this way: <Grid Margin="380,69,10,50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid....
Nottoc's user avatar
  • 115
0 votes
0 answers
52 views

In my WPF application, I'm using a Frame for navigation between pages. The issue I'm encountering is that whenever I navigate to a page that is already open, a new instance of that page is added to ...
Oriol Tomàs Lara's user avatar
-2 votes
1 answer
42 views

This is my recourse converter <BooleanToVisibilityConverter x:Key="BoolToVisConverter" /> And I have 2 buttons and 1 checkobox the add button I want to show if the checkbox is ...
24sharon's user avatar
  • 1,975
0 votes
1 answer
46 views

My application is a wine bottle/wine rack tracking tool that allows the user to quickly look up the location of a specific bottle of wine inside a collection of wine racks. I have drag and drop from ...
Ben's user avatar
  • 13
0 votes
0 answers
52 views

I am trying to work on a WPF project, I have a XAML that defines items control as below, and uses Button for Data Template. And It uses Button with hardcoded text as "Text #1/2/3/4". However,...
WPFstarter's user avatar
1 vote
2 answers
573 views

Recently, I am making a project, which involves in using WebSocket. However, after I received the message on MainPageWindow.xaml.cs, I have to change the content of a label on FriendPage.xaml (An User ...
Han Han's user avatar
  • 482
1 vote
0 answers
38 views

I have a working attached property defined like below public static class UiExt { public static readonly DependencyProperty UiDataProperty = DependencyProperty.RegisterAttached( ...
Alex R's user avatar
  • 434
1 vote
1 answer
533 views

Recently, I added Lepoco WPFUI UI framework to my project, but I have one window that I want it to use the default style. In this case, I tried some ways but they did not work. Here is my App.xaml: &...
Han Han's user avatar
  • 482
0 votes
0 answers
53 views

Installed Exe is showing different culture than debug/portable exe in WPF Above picture is the amount input of Debug exe in nl-NL culture (Netherland) I have added property currentculture because my ...
Rado Tutoring's user avatar
0 votes
1 answer
39 views

[enter image description here][1]I am trying open a new form inside a panel of another form. But control is not passing. I am providing the code snippet below. The code is written in C# windows form. ...
arijit_max's user avatar
-1 votes
1 answer
64 views

I need to create a new control which is composed of a TextBox and a Button. The most concise way I've found at the moment is with a CusomControl like this: inherit from TextBox and add the ...
ekt's user avatar
  • 146
0 votes
0 answers
68 views

I am currently developing a card game in WPF, where the user can drag cards from their hand. A dragged card should be always on top when overlapping other controls. Simplifying the problem, lets take ...
bazsisz's user avatar
  • 427
1 vote
4 answers
196 views

We have a Person who can have several Skills (Strength, Intelligence and Luck). In our WPF-Application, we want to bind these Skills to Checkboxes. When a Person has these Skills in his list, then the ...
Simon's user avatar
  • 5,014
0 votes
1 answer
47 views

in my WPF Application, i have a own created widget (Gantt). Here is the InitializeUI() in the main Window of Gantt: private void InitializeUI() { canvas = new Canvas { ...
Lukas Fürst's user avatar
0 votes
0 answers
55 views

I have made a Template for a TextBox control that contains two buttons: <ControlTemplate x:Key="TwoButtonField" TargetType="TextBox"> <Grid> <Grid....
Glow's user avatar
  • 1

1
2 3 4 5
115