wpf-controls

Multi-column Tree-View in WPF [closed]

流过昼夜 提交于 2020-01-30 14:36:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Anyone know where I can get a control like the Multi-column Tree-View in WPF? 回答1: I've implemented this based on the old blog post here. But if I remember right I had to do some manual work to get things to work right. Specifically with the scroll bars. But that should give you a good start. 回答2: SharpDevelop

Multi-column Tree-View in WPF [closed]

对着背影说爱祢 提交于 2020-01-30 14:36:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Anyone know where I can get a control like the Multi-column Tree-View in WPF? 回答1: I've implemented this based on the old blog post here. But if I remember right I had to do some manual work to get things to work right. Specifically with the scroll bars. But that should give you a good start. 回答2: SharpDevelop

'The member “Opacity” is not recognized or is not accessible.' Why can't I set the opacity?

只谈情不闲聊 提交于 2020-01-30 05:48:11
问题 I would like to use a DataTrigger to modify the opacity of my button. <Button x:Name="StartTreatment" Grid.Column="3" Width="160" Height="30" Content="{x:Static resources:UserMessages.TrcsConsoleViewModel_LoadWfSequence_StartProcedure}" IsEnabled="{Binding CanStartProcedure}" Visibility="{Binding CanStartPatientTreatment, Converter={StaticResource BooleanToVisibility}}" > <Button.Style> <Style> <Style.Triggers> <DataTrigger Binding="{Binding CanStartProcedure}" Value="False"> <Setter Property

WPF custom BalloonTips problem with multithreading

北城余情 提交于 2020-01-25 08:43:10
问题 I have read other related question but i cant really get them to relate to this so I thought it were best to ask, Im pretty new to WPF and so on so please bear with me. I am using this http://www.codeproject.com/KB/WPF/wpf_notifyicon.aspx api to work with custom WPF Windows (in particular FancyBalloon). However, i'm coming across the following problem, I seem unable to start off BalloonTips in a separate thread ( i need this because i'm parsing emails and hence if there are 3 emails for

WPF - Need a combination of Tree+Grid, with Context Menu

独自空忆成欢 提交于 2020-01-24 22:44:05
问题 My application is implemented by a GridView inside a TreeList . Much to my despair, I discovered that the GridView is very primitive, compared to the widely used DataGrid . I am considering these two options: (1) Somehow, I replace the GridView with a DataGrid (which supports Context Menu). (2) Somehow, I add the Context Menu capability to the existent GridView. Which of the 2 approaches (or another?) would you recommend? Source code is much appreciated. TIA. 回答1: Based on the linked code,

How to set the font case of a listbox item in WPF?

时光怂恿深爱的人放手 提交于 2020-01-24 22:18:09
问题 I have a ListBox in a WPF Window. Based on the selected item of a ComboBox , the ListBox items are retrieved from database and bound as the ListBox's ItemSource . I want to change the case of the ListBox items, i.e., when i bind all the items are in uppercase. I want to change the case to capitalize only the starting letter of a word. 回答1: You need a converter to achieve this behavior. public class CaseConverter : IValueConverter { public object Convert(object value, Type targetType, object

ViewPort3D: How to create a WPF Object (Cube) with text on it from Code behind

老子叫甜甜 提交于 2020-01-24 13:42:53
问题 I want to draw a set of 3D-Cubes, each Cube should display a name and also should have its own event handler when the cube is selected. Is it possible to implement it using code behind or xaml binding? 回答1: To draw a 3D cube from code behind I would use the Helix3D toolkit CubeVisual3D. However if you want to stick with stock WPF 3D elements it is fairly simple to implement. start here to Learn about Text in 3D enviroments http://www.codeproject.com/Articles/33893/WPF-Creation-of-Text-Labels

ViewPort3D: How to create a WPF Object (Cube) with text on it from Code behind

主宰稳场 提交于 2020-01-24 13:41:33
问题 I want to draw a set of 3D-Cubes, each Cube should display a name and also should have its own event handler when the cube is selected. Is it possible to implement it using code behind or xaml binding? 回答1: To draw a 3D cube from code behind I would use the Helix3D toolkit CubeVisual3D. However if you want to stick with stock WPF 3D elements it is fairly simple to implement. start here to Learn about Text in 3D enviroments http://www.codeproject.com/Articles/33893/WPF-Creation-of-Text-Labels

How to close parent windows using WPF User Control

情到浓时终转凉″ 提交于 2020-01-24 04:08:28
问题 Assume that I have two WPF windows: window_One and window_Two. window_One has one button. Clicking this button opens window_Two. window_Two contains a User Control. This user control has one button that closes window_Two. How can I achieve this scenario? 回答1: Inside the custom control that you've created. You can access the parent window from within the button event click. Either by using the visual tree: var myWindow = (Window)VisualParent.GetSelfAndAncestors().FirstOrDefault(a => a is

Tooltip on scrollviewer in documentviewer

删除回忆录丶 提交于 2020-01-23 16:56:48
问题 I have a documentviewer which i used in my wpf project to show xps document reports of having around 600 pages which is working great. But from user point of view i like to show the current page number as a tooltip on my scrollviewer while dragging the scroll stating the current page number in view. Somewhat like in a PDF file like this - I was looking out for some ideas how to implement this. Just a current page number if not possible to show a thumbnail image would be good enough for me. Is