• Keine Ergebnisse gefunden

FB Automatisierung und Informatik

N/A
N/A
Protected

Academic year: 2021

Aktie " FB Automatisierung und Informatik"

Copied!
21
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

FB Automatisierung und Informatik: Windows Presentation Foundation

Window Presentation Foundation

Dipl.-Inf., Dipl.-Ing. (FH) Michael Wilhelm

Hochschule Harz

FB Automatisierung und Informatik

mwilhelm@hs-harz.de

http://www.miwilhelm.de

Raum 2.202

Tel. 03943 / 659 338

(2)

· Inhalt

■ Einführung WPF

Layouts

■ C# Sprache

■ Dialog-Elemente, Menüs

Ribbon Controls

■ Datenbanken

■ Threads

■ Eigene Komponenten

(3)

FB Automatisierung und Informatik: Windows Presentation Foundation 3

Menü Alternative

o

QuickAccessToolBar

o

ApplicationMenu

o

Registerdarstellung (RibbonTab)

o

RibbonGroup

o

RibbonButton RibbonControlGroup

o

RibbonMenuItem

o

RibbonTwoLineText

Ribbon Control

(4)

<RibbonWindow x:Class="DB_Firma.MainWindow"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:ribbon="clr-

namespace:System.Windows.Controls.Ribbon;assembly=System.Window s.Controls.Ribbon"

Title="MainWindow" Height="350" Width="525">

<Grid>

Ribbon Control erstellen

(5)

FB Automatisierung und Informatik: Windows Presentation Foundation 5

Reference einfügen

1. reference Framework: System.windows.Controls.Ribbon

2. using System.Windows.Controls.Ribbon;

(6)

using System.Windows.Controls.Ribbon;

namespace DB_Firma { /// <summary>

/// Interaction logic for MainWindow.xaml /// </summary>

public partial class MainWindow : RibbonWindow { public MainWindow() {

InitializeComponent();

}

Ribbon Control Reference in cs einfügen

(7)

FB Automatisierung und Informatik: Windows Presentation Foundation 7

Ribbon Control Elemente: Anwendungsmenü

(8)

Ribbon Control Elemente: Register

(9)

FB Automatisierung und Informatik: Windows Presentation Foundation 9

Ribbon Control Elemente: QuickInfos

(10)

Ribbon Control Elemente: KeyTipps

(11)

FB Automatisierung und Informatik: Windows Presentation Foundation 11

Ribbon Control: Struktur und Elemente

http://blogs.msdn.com/b/wpf/archive/2010/08/03/introducing-microsoft-ribbon-for-wpf.aspx

(12)

Ribbon Control: Struktur und Elemente RibbonHelpPaneContent

QuickAccessToolBar

ApplicationMenu

RibbonTab

• RibbonGroup

− RibbonMenuButtons

− RibbonButton

− RibbonMenuItem

− RibbonGallery

− RibbonSplitButton

− RibbonComboBox

(13)

FB Automatisierung und Informatik: Windows Presentation Foundation 13

Ribbon Control: Startdialog

RibbonApplicationMenu

HelpPaneContent

RibbonQuickAccessToolBar

(14)

Ribbon Control: RibbonApplicationMenu

AuxilaryPane mit drei TextBlocks RibbonApplicationMenu

Hier ist der FooterPane mit einem Schalter

(15)

FB Automatisierung und Informatik: Windows Presentation Foundation 15

Ribbon Control: SplitButton

Ribbon Control: CheckBox und TextBox mit Label

(16)

Ribbon Control: RibbonMenuButton

Ribbon Control: RibbonRadioButton à la ToggleButton

(17)

FB Automatisierung und Informatik: Windows Presentation Foundation 17

Ribbon Control: RibbonComboBox

Ribbon Control: RibbonComboBox mit CheckBox

(18)

Ribbon Control: RibbonControlGroup

Besser mit einem Stackpanel arbeiten

(19)

FB Automatisierung und Informatik: Windows Presentation Foundation 19

Ribbon Control: RibbonComboBox

Inhalt:

• RibbonGalleryItem

• RibbonCheckBox

• Schalter

(20)

Ribbon Control: RibbonToggleButton

Inhalt:

1. RibbonControlGroup

(21)

FB Automatisierung und Informatik: Windows Presentation Foundation 21

<ribbon:RibbonGroup Header="RibbonToggleButton3" VerticalAlignment="Center"

HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5" >

<RibbonGroup.RenderTransform>

<TransformGroup>

<ScaleTransform/>

<SkewTransform/>

<RotateTransform Angle="-180"/>

<TranslateTransform/>

</TransformGroup>

</RibbonGroup.RenderTransform>

<ribbon:RibbonControlGroup>

<ribbon:RibbonToggleButton Label="Ja" />

<ribbon:RibbonToggleButton Label="Nein" />

<ribbon:RibbonToggleButton Label="Weiß nicht" />

</ribbon:RibbonControlGroup>

</ribbon:RibbonGroup>

Ribbon Control: RibbonToggleButton, 180 ° Drehung

Referenzen

ÄHNLICHE DOKUMENTE

Erstellen Sie eine Funktion in Oracle, F_Upper, die den Parameter in Großbuchstaben umwandeln. CREATE OR REPLACE FUNCTION F_Upper( name in char) RETURN

public int getColumnCount() { return AnzCols; } public int getRowCount() { return AnzRows; } public Object getValueAt(int row, int column) {.

writeInt (Schreiben einer 32-Bit Vorzeichenzahl) writeLong (Schreiben einer 64-Bit Vorzeichenzahl) writeShort (Schreiben einer 16-Bit Vorzeichenzahl) writeUTF (Schreiben eines

Im View kann die URL über eine Schnittstelle anhand der ID abgerufen werden oder die ID tritt als Platzhalter für die URL ein, zum Beispiel innerhalb eines Templates oder in Form

Was passiert, wenn JUnit die Tests dieser Klasse ausführt. • Das Test-Framework durchsucht die Testklasse mit Hilfe des Reflection API nach öffentlichen Methoden, die

Statt alle möglichen Eigenschaften in einer komplexen, anpassbaren Klasse vorherzusehen, wird eine einfache Klasse definiert und diese inkrementell mit.

Abs Returns the absolute value of a specified number. Acos Returns the angle whose cosine is the specified number. Asin Returns the angle whose sine is the specified number. Atan

FB Automatisierung und Informatik: Windows Presentation Foundation.. Window