Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Wpf

0 votes
830 views
1 answer
    [EDIT 3] I kind of "solved it" by at using the "strange" version. At least for the most important keys. It is ... .Add(key); return this; } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
846 views
1 answer
    How can I implement cancelation of editing an object using MVVM. For example: I have a list of customers. I ... to its previous state in MVVM? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
736 views
1 answer
    How to make a button flat style in wpf? I've tried BasedOn property but it does not work. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    In HTML/CSS you can define a style which can be applied to many types of elements, e.g.: .highlight { color:red ... to leave it open as in CSS? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Is it possible to put a TabItem into a separate XAML and reference something like this: <TabControl> <local:MyTabItem/> ... how can I do this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
796 views
1 answer
    I'm binding the ItemsSource of my MenuItem to an ObservableCollection in my ViewModel. Here is my xaml: <MenuItem ... code behind. Any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
528 views
1 answer
    Suppose I have a ListBox bound to an ObservableCollection and I want to animate adding/removing of ListBoxItems eg. ... How can I do that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
772 views
1 answer
    I have the following two buttons in XAML: <Button Content="Previous" Margin="10,0,0,10"/> <Button ... theMargin},{Variable theMargin}"/> See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Im having a problem rendering icons for a dynamic menu which uses viewmodels as an ItemsSource. The solution I've ... in the menu. Any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
912 views
1 answer
    I have seen some articles that show how to use AlternationIndex with ListBoxes or ListViews, but I had spent a few ... obvious I am missing... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
801 views
1 answer
    I need to sort the strings in a ListBox, but it is bound to the view model by another component via the ... the instantiation of the view model. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a TreeView which uses a HierarchicalDataTemplate to bind its data. It looks like this: <TreeView x:Name=" ... How can I do this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I got the following code from Josh Smith's MVVM tutorial. Can anyone provide a quick explanation of what ... the RelayCommand Class from here. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
893 views
1 answer
    I have the following XAML: <Grid> <Grid.RowDefinitions> ... </Grid.RowDefinitions> <DataGrid Grid.Row="0" ... ' (type 'Nullable`1') See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
738 views
1 answer
    What is the proper way of adding a '+' button tab at the end of all the tab items in the tab strip ... them satisfy all the above five points. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
616 views
1 answer
    According to the Windows Applications Development with Microsoft .NET 4 70-511 Training Kit What is the difference ... and just displaying text? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a few TextBlocks in WPF in a Grid that I would like to scale depending on their available width / ... " and no longer aligns center. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
665 views
1 answer
    Short Version Calls to CommandManager.InvalidateRequerySuggested() take far longer to take effect than I would like (1-2 ... . Any ideas? :-) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
829 views
1 answer
    I am tired of creating the same image+text button over and over again, and I would like to move the markup ... I set up the template bindings? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
755 views
1 answer
    I currently have two text boxes which accept any number. I have a text block that takes the two numbers ... be more efficient and easier. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
979 views
1 answer
    I am having trouble finding how to not allow my ListBox to highlight the item selected. I know that I ... BorderBrush="Transparent"> </ListBox> See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
923 views
1 answer
    I've got a WPF application which calls MessageBox.Show() way back in the ViewModel (to check if the user ... Boxes in your MVVM applications? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a item control which is bound to Tasks. Each task has task state. I have defined different data ... template. 2. Visual State Manager See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
740 views
1 answer
    Consider the reference Josh Smith' article WPF Apps With The Model-View-ViewModel Design Pattern, specifically the example ... -= value; } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
595 views
1 answer
    I have a WPF ListBox that is set to scroll horizontally. The ItemsSource is bound to an ObservableCollection in my ... an event that does this. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
617 views
1 answer
    <UserControl x:Class="WatermarkTextBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=" ... .DataContext = this; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
710 views
1 answer
    I am reading Adam Nathan's book "WPF 4 Unleashed" and there is the following warning on page 82 ... dependency property identifier ABCProperty. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am trying create a static property where INotifyPropertyChanged will update any changes made to a DataGrid ComboBox ... (propertyName)); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...