Dans WPF, comment afficher un grabber (le triangle en pointillés dans le coin inférieur droit) dans un contrôle StatusBar? Merci.Afficher un grabber dans un WPF StatusBar?
2
A
Répondre
3
Le code ci-dessous fonctionnera avec ou sans contrôle StatusBar.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
this.ResizeMode = ResizeMode.CanResizeWithGrip;
}
}
2
La carte d'acquisition se trouve dans la fenêtre de niveau supérieur et n'est pas une propriété de la barre d'état. Pourquoi pas une seule ligne dans xaml?
<Window x:Class="msbuildrefactor.MainWindow"
...
ResizeMode="CanResizeWithGrip">
+0
Cela a fonctionné pour moi :) – RichardCL
Questions connexes
- 1. web grabber
- 2. Afficher ContextMenuStrip à l'emplacement de l'élément StatusBar
- 3. un objet mal à afficher dans WPF
- 4. Afficher une fenêtre WPF dans un autre
- 5. IMDB Grabber PHP
- 6. Pourquoi afficher un OpenFileDialog dans WPF bloque mon WPF Popup?
- 7. WPF4 TabControl/Grid dans un DockPanel cache StatusBar
- 8. Existe-t-il un moyen simple de définir le texte WPF StatusBar?
- 9. Mettre à jour le texte dans StatusBar dans wpf en utilisant C#
- 10. Afficher PostScript dans WPF
- 11. Comment afficher une valeur initiale dans un ComboBox WPF
- 12. Comment afficher WPF ValidationResult dans un bloc de texte séparé?
- 13. PDF Bibliothèques pour afficher un document PDF dans WPF
- 14. Comment afficher un fichier RTF dans WPF avec Powershell?
- 15. AOL et outlook grabber carnet d'adresses
- 16. UINavigationBar apparaît sous StatusBar
- 17. Statusbar chevauche ViewController
- 18. Afficher l'image dans WPF DataGridColumn
- 19. Sélectionnez un UIElement WPF dans un FlowDocument
- 20. Comment changer la couleur de la police StatusBar dans wxWidgets?
- 21. WPF - Afficher une entité unique avec un modèle de données
- 22. WPF MVVM: comment créer et afficher un menu contextuel?
- 23. Afficher un & dans un menuitem ou menustrip
- 24. Comment afficher un dictionnaire dans un ListBox
- 25. comment afficher un mxml dans un autre
- 26. Django: afficher un ManyToManyField dans un template?
- 27. Afficher un TTStyledTextLabel dans un UITableView
- 28. WPF GroupBox cacher/afficher avec un bouton d'expansion?
- 29. Afficher un WPF UserControl sur un autre ordinateur sur un réseau local
- 30. UIView Clippé par Statusbar jusqu'à autorotation
pourquoi pas une seule ligne dans xaml? ResizeMode = "CanResizeWithGrip" –
@lukas - bien sûr, ça marche aussi! :) –
Accepté la réponse, avec +1 pour la suggestion de Lukas. Merci! –