by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:33
    greuelpirat commented #1867
  • 05:12
    greuelpirat opened #1873
  • 04:47
    greuelpirat opened #1872
  • May 29 17:07
    jbooth88 opened #1871
  • May 29 00:01
    my522cn opened #1870
  • May 28 20:31

    Keboo on master

    Refactoring of Card (#1869) * … (compare)

  • May 28 20:31
    Keboo closed #1869
  • May 28 20:19
    w-syss synchronize #1869
  • May 28 20:12
    Keboo milestoned #1869
  • May 28 20:08
    Keboo milestoned #1868
  • May 28 20:08

    Keboo on master

    Refactoring of ButtonAsisst (#1… (compare)

  • May 28 20:08
    Keboo closed #1868
  • May 28 20:03
    w-syss opened #1869
  • May 28 19:46
    w-syss opened #1868
  • May 28 17:30
    Keboo commented #1867
  • May 28 17:30
    Keboo labeled #1867
  • May 28 17:30
    Keboo labeled #1867
  • May 28 17:30
    Keboo commented #1867
  • May 28 10:55
    TheMightyBorkon opened #1867
  • May 28 09:45
    watashidesu commented #1864
Nguyễn Thanh Quang
@Fl4reon
   <md:DialogHost x:Name="findPlayer" Style="{StaticResource MaterialDesignEmbeddedDialogHost}">
        <md:DialogHost.DialogContent>
        <!--My dialog contents-->
        </md:DialogHost.DialogContent>
<!--Grid-->
</md:DialogHost>
ron
@dan_ron_gitlab
@Fl4reon Are you using code-behind to cast/play with "findPlayer"?
Nguyễn Thanh Quang
@Fl4reon
Nvm fixed it by changing arch
Anyone know how to use navigator of MDE?
@dan_ron_gitlab
ron
@dan_ron_gitlab
I am trying to set my combobox dropdown to drop to top instead of bottom:
I have changed Placement="Top" but it worked only after I selected an item (first time it drops as usual to bottom) any taughts ? Maybe it would be a nice idea to give it as a combobox option ?
Twitter Tweets
@mrjakepavek_gitlab
Hello
Visibility="{Binding AttachedFile, Converter={StaticResource My.Converter.FileAttached}, ConverterParameter=AttachedFile}"
how would I make the parameter the attachedfile from my model
instead this is saying my parameter is "AttachedFile"
Jesper Hansen
@jespersh
@mrjakepavek_gitlab you want to pass the same thing to value and paramter in public object Convert(object value, Type targetType, object parameter, CultureInfo culture)?
Twitter Tweets
@mrjakepavek_gitlab
@jespersh So I figured that out, now I am trying to open the specific file when clicking on the button. I was following this tutorial: https://parallelcodes.com/wpf-datagrid-with-button/ but this DataRowView dataRowView = (DataRowView)((Button)e.Source).DataContext; does not work
Twitter Tweets
@mrjakepavek_gitlab
i'm tryin to use a command now
tottes200
@tottes200
Hey guys, I'm trying to integrate MahAppsMetro and it seems to be working, however there are outlines around the elements in the dialog boxes now. I following the instructions on the wiki, but can't seem to get them to go away. Has anyone else experienced this and found a solution? Thanks!
Jesper Hansen
@jespersh
@mrjakepavek_gitlab I'm guessing you're trying to call a command in your datagrid's DataContext with your row's DataContext passed to the command?
Twitter Tweets
@mrjakepavek_gitlab
@jespersh yes I did that and got it complete I am working on a hyperlink now lol
ron
@dan_ron_gitlab
@mrjakepavek_gitlab I thought you are working on a hyperloop lol
Twitter Tweets
@mrjakepavek_gitlab
nope hyperlink
trying to make this open that file
Would I use a converter?
ron
@dan_ron_gitlab

I am trying to set my combobox dropdown to drop to top instead of bottom:
I have changed Placement="Top" but it worked only after I selected an item (first time it drops as usual to bottom) any taughts ? Maybe it would be a nice idea to give it as a combobox option ?

more weird when i go full screen again it switch to drop to bottom

never mind if appears it was just a coincidence the main reason was the lack of space at top
ron
@dan_ron_gitlab
I think it will be nice to have Placement as a property of combobox rather than having to redefine the whole combobox ControlTemplate. What do you think ?
tottes200
@tottes200
image.png
This is what I see in the dialogs with MahApps integration active.
There are outlines and tearing on any of the progress animations. If revert all the windows back to normal windows instead of a metrowindow it goes away.
pavka1799
@pavka1799
I think I saw similar issue as @tottes200 described - some unexpected gray lines on dialogs...
tottes200
@tottes200
@pavka1799 yeah I'm hoping there is something simple I can do to fix them, I'd love to use the integration with MahApps for the Metrowindow but if I can't I guess I'll have to revert
Nguyễn Thanh Quang
@Fl4reon
How can i use packicon and text in the same button? (inline)
Jesper Hansen
@jespersh
@tottes200 check UseLayoutRounding ex. https://wpf.2000things.com/tag/UseLayoutRounding/
pavka1799
@pavka1799
@Fl4reon do you mean like this (code from Demo app):
<Button Command="{Binding DismissComand}" Style="{StaticResource MaterialDesignRaisedButton}" HorizontalAlignment="Left" materialDesign:ButtonProgressAssist.Value="{Binding DismissButtonProgress}" materialDesign:ButtonProgressAssist.IsIndicatorVisible="True" Visibility="{Binding ShowDismissButton, Converter={StaticResource BooleanToVisibilityConverter}}"> <StackPanel Orientation="Horizontal"> <TextBlock>DISMISS</TextBlock> <materialDesign:PackIcon Margin="4 .5 0 0" Kind="Close" /> </StackPanel> </Button>
dikyridhlo
@dikyridhlo
guys , how to dynamically change a dialog.content ? i already search on google or yt never see this case before. thank u
Jesper Hansen
@jespersh
@dikyridhlo while it is open you mean?
dikyridhlo
@dikyridhlo
yess
i try using staticresource in commandparameter button but it still not change if i using other command not (dialoghost.opendialogcommand)
dikyridhlo
@dikyridhlo
<Button Foreground="{DynamicResource MainColorKTNGBrush}" BorderBrush="White" Width="268" Margin="0 10" x:Name="NewChatBtn" Command="{binding OpenDialogCommand}" CommandParameter="{StaticResource TemplatNewChat}"
this is command
private ICommand _OpenDialogCommand;
        public ICommand OpenDialogCommand
        {
            get
            {
                return _OpenDialogCommand ?? (_OpenDialogCommand = new RelayCommand( (o) => ShowMyDialogAsync() ));
            }
        }
        private bool _IsDialogOpen;
        public bool IsDialogOpen
        {
            get { return _IsDialogOpen; }
            set
            {
                _IsDialogOpen = value;
                OnPropertyChanged();
            }
        }
        private void ShowMyDialogAsync()
        {
            //var result = await DialogHost.OpenDialogCommand;
            IsDialogOpen = true;

            //DialogHost.OpenDialogCommand.Execute(null , null);
            //MessageBox.Show("Command berhasil");
        }
Jesper Hansen
@jespersh

@dikyridhlo I have this example for you:

var viewModel = new SomeViewModel();
object result = await DialogHost.Show(view, "RootJournalDialog", (sender, dialogOpenedEventArgs) =>
            {
                viewModel.DialogSession = dialogOpenedEventArgs.Session;
            }).ConfigureAwait(true);

Then in a ICommand inside the viewModel:

public class SomeViewModel
{
  public DialogSession DialogSession { get; internal set; }

            DialogSession.Content = someOtherContent; // ... inside some function
}
@dikyridhlo btw, I read "how to dynamically change a dialog.content" as "I'm trying to change the content from within the dialoghost is already showing"
Jesper Hansen
@jespersh

@dikyridhlo you can also try @Redp87's cool suggestion:

 <DataTemplate DataType="{x:Type viewmodel:PatientViewModel}" >
        <local:CreatePatientControl />
 </DataTemplate>

Then you pass the viewmodel instead to DialogHost.Show

dikyridhlo
@dikyridhlo

@dikyridhlo I have this example for you:

var viewModel = new SomeViewModel();
object result = await DialogHost.Show(view, "RootJournalDialog", (sender, dialogOpenedEventArgs) =>
            {
                viewModel.DialogSession = dialogOpenedEventArgs.Session;
            }).ConfigureAwait(true);

Then in a ICommand inside the viewModel:

public class SomeViewModel
{
  public DialogSession DialogSession { get; internal set; }

            DialogSession.Content = someOtherContent; // ... inside some function
}

what is view? its from class? (new (myclassview) ) , like this?
and how to return after choosing in my listview inside my dialog ? really confusing.
thank u for answering me

Jesper Hansen
@jespersh
@dikyridhlo the view can be a wpf usercontrol
Jesper Hansen
@jespersh
@dikyridhlo if you bind a (close) button to a ICommand inside the ViewModel, then that command's function can return the object result with:
DialogSession.Close(SelectedItem);
that returns the result to the original object result = await DialogHost.Show
dikyridhlo
@dikyridhlo
ohhhh thank u @jespersh
you save my day :)
Jesper Hansen
@jespersh
@dikyridhlo there's a few ways to boil this egg, but that's the method I use
tottes200
@tottes200
@jespersh Thank you so much!! That fixed it!
Jesper Hansen
@jespersh
What I learn you get to learn if you have troubles :smile: