Emojiilist fix
Text Fix(da es bis unter der büroklammer kamm) Contextmenue Kopieren Eingefügt
This commit is contained in:
@@ -71,8 +71,10 @@ namespace PrototypChat
|
||||
|
||||
|
||||
ChatMainControl.InitMitChatdaten(x);
|
||||
|
||||
|
||||
//ChatMainControl.AddContextMenu("In Dokumentation übernehmen", ChatMainControl_OnClickContextMenuItem);
|
||||
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
private void ChatMainControl_OnOnEmojii(System.Windows.Controls.Button emojiButton)
|
||||
@@ -83,8 +85,8 @@ namespace PrototypChat
|
||||
var x = emojiButton.PointToScreen(new Point(0, 0));
|
||||
PresentationSource source = PresentationSource.FromVisual(emojiButton);
|
||||
|
||||
_emojiView.Top = (x.Y / source.CompositionTarget.TransformToDevice.M22) - _emojiView.Height - 5;
|
||||
_emojiView.Left = x.X / source.CompositionTarget.TransformToDevice.M11;
|
||||
_emojiView.Top = (x.Y / source.CompositionTarget.TransformToDevice.M22) - _emojiView.Height - 5; //- 5
|
||||
_emojiView.Left = (x.X / source.CompositionTarget.TransformToDevice.M11) - 270; //x.X / source.CompositionTarget.TransformToDevice.M11
|
||||
|
||||
|
||||
_emojiView.Show();
|
||||
@@ -102,8 +104,8 @@ namespace PrototypChat
|
||||
var x = emojiButton.PointToScreen(new Point(0, 0));
|
||||
PresentationSource source = PresentationSource.FromVisual(emojiButton);
|
||||
|
||||
_emojiView.Top = (x.Y / source.CompositionTarget.TransformToDevice.M22) - _emojiView.Height - 5;
|
||||
_emojiView.Left = x.X / source.CompositionTarget.TransformToDevice.M11;
|
||||
_emojiView.Top = (x.Y / source.CompositionTarget.TransformToDevice.M22) - _emojiView.Height - 5; //- 5
|
||||
_emojiView.Left = (x.X / source.CompositionTarget.TransformToDevice.M11) - 270; //x.X / source.CompositionTarget.TransformToDevice.M11
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,8 +113,19 @@ namespace PrototypChat
|
||||
|
||||
//private void ChatMainControl_OnClickContextMenuItem(String menuItem)
|
||||
//{
|
||||
|
||||
|
||||
//}
|
||||
|
||||
//geht nicht
|
||||
public void CloseWindow()
|
||||
{
|
||||
CommandBindings.Add(new CommandBinding(ApplicationCommands.Close, (s, e) =>
|
||||
{
|
||||
MessageBox.Show("Schließe mich jetzt ");
|
||||
_emojiView = null;
|
||||
}));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user