Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:37
    Keboo labeled #2323
  • 16:37
    Keboo labeled #2323
  • 16:37
    Keboo labeled #2323
  • 16:04
    Miosss opened #2323
  • 15:09
    Keboo edited #2255
  • 13:08
    Erapchu commented #2322
  • 02:52
    Keboo commented #2321
  • 00:54
    jf-dynamics commented #2321
  • 00:53
    jf-dynamics commented #2321
  • May 14 10:27
    izzylys opened #2322
  • May 14 06:47
    radoslawkosinski commented #263
  • May 12 07:47
    Xaalek commented #2320
  • May 12 07:46
    Xaalek commented #2320
  • May 11 23:40
    jf-dynamics edited #2321
  • May 11 23:39
    jf-dynamics edited #2321
  • May 11 23:38
    jf-dynamics edited #2321
  • May 11 23:36
    jf-dynamics opened #2321
  • May 11 10:00
    wdefender opened #2320
  • May 11 04:33
    andreyea commented #2306
  • May 11 03:15
    Keboo commented #2306
Kevin B
@Keboo
@Miosss you should still be able to override that style in your App.xaml. The key here is that it wont be using the implicit style key of {x:Type ComboBox}. So you will need to declare a second style with the resource key.
<Style x:Key="{x:Static ToolBar.ComboBoxStyleKey}" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource MaterialDesignComboBox}">
    <Setter Property="materialDesign:ComboBoxAssist.ClassicMode" Value="True" />
</Style>
JinZeping
@JinZeping
Ladies and gentlemen, I have found a bug that affects the user experience. In the dialog opened by DialogHost, if I want to use input method to input content in TextBox, the input method input box cannot be correctly positioned to the edge of TextBox, but appears in the upper left corner of the screen. Does anyone know how to solve this problem?
Kevin B
@Keboo
@JinZeping can you give me a small example of your dialoghost setup? I am not sure I understand.
JinZeping
@JinZeping
微信截图_20201210143505.png
@Keboo This is my dialoghost
微信截图_20201210143703.png
@Keboo And this is what happend when i use input method in the TextBox inner DialogHost. There is same issue in the Material Design in Xaml Demo App.
JinZeping
@JinZeping
That's the way it should be under normal circumstances. LikeThis
微信截图_20201210144640.png
Philippe Baille
@pbobzebuilder_twitter
Hi Everyone, I'm testing Wpf MaterialDesign but having trouble with the datagrid. Anyone knowing how to disable the single click edit (Witch prevent from selecting single cells) ?
Shreyasj96
@Shreyasj96
@pbobzebuilder_twitter You can override the DataGridCellStyle and change the BorderBrush property to Transparent on "IsKeyboardFocusWithin" Trigger Property's value set to true.
Philippe Baille
@pbobzebuilder_twitter
@Shreyasj96 Thanks a lot, just found another way to do this. It seems it's handled in MaterialDesignXaml this way : DataGridAssist.SetEnableEditBoxAssist(yourDataGrid, false);
Shreyasj96
@Shreyasj96
@pbobzebuilder_twitter Oh I didn't know that. Thanks for mentioning it.
Philippe Baille
@pbobzebuilder_twitter
@Shreyasj96 Found this digging in source code. Don't forget the using MaterialDesignThemes.Wpf;
Shreyasj96
@Shreyasj96
@pbobzebuilder_twitter I checked in xaml itself by typing materialDesign:DataGridAssist.EnableEditBoxAssist="False"
Philippe Baille
@pbobzebuilder_twitter
@Shreyasj96 Nice ! I like this MaterialDesign ;)
Shreyasj96
@Shreyasj96
@pbobzebuilder_twitter Yes, its awesome...
Howard Alt
@howardalt
Hi gang, I'm using <DataGrid ... /> in what I think is a fairly stock configuration and selecting isn't working as I'd like. A row is only selected when a column like a textbox or dropdown is clicked, not when the mouse is left clicked anywhere on the row. The behavior I'm trying to engage is for a doubleclick to execute a command (which works fine) except when the code runs, SelectedItem is only set when the click happens over an element like a textbox or combobox (probably others, I haven't done the exhaustive investigation). Suggestions/
Andy Smolak
@Awsmolak
I am performing a fairly large refactoring/reorg on my application which uses MaterialDesignInXaml. I currently use my own ad-hoc lightweight MVVM implementation. I am considering migrating over to use ReactiveUI, but I was curious if there are any incompatibilities or problems that might be introduced when changing to a completely different binding convention. Is anyone here "all-in" on MaterialDesignInXaml and RectiveUI? Or does this require some fiddling to make it all work?
Kevin B
@Keboo
@JinZeping a couple follow up question? which input method program are you using in those screenshots? Does it work in the demo app if you scroll all the way to the right to SAMPLE 5 (this sample uses a different dialog that is not in a popup)?
Kevin B
@Keboo
@howardalt I might need to see some XAML but based on your description I suspect you are clicking on the section of the row that is to the right of your columns (where there is no column). Unforuently this is actually normal WPF behavior. If you test without material design you will notice that the row selection on the default DataGrid only shows the row selection through the cell that are in column, and no row selection outside of that. The difficult part here is the DataGrid does not raise the events needed to make this work (if other people find a work around I would love to hear about it). The easiest "fix" is to simply set the width of one of your column to fill the extra space (Width="*"). Alternatively you can throw in an extra column for not other purpose than to fill the remaining space (though depending on your UI this may or may not work).
@Awsmolak I have used ReactiveUI on a few small things, never on a major project, but I have not run into any incompatibility. This library aims to be agnostic of any MVVM library (or even no MVVM if people want to go that route), so if there are issue please raise them.
Andy Smolak
@Awsmolak
@Keboo Thanks! Will do.
Howard Alt
@howardalt
@Keboo ahhh yes, awesome, i'll give that a try, thanks for the thought!
Miosss
@Miosss
@Keboo thanks for the combobox advice, it works; on the other hand, ClassicMode does not work with Filled style
JinZeping
@JinZeping
@Keboo The SAMPLE5 dialog can work, Thank you very much!
Vladimir Melkumyan
@MichaelRights
Hi Can you provide some list example?
Said1996
@Said1996
Hello everyone!!
I have an issue calling a DialogHost from ItemTemplate button
here is some code
              <ListView.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Button Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}"/>
                        </StackPanel>
                    </DataTemplate>
                </ListView.ItemTemplate>
Said1996
@Said1996
and somewhere out of listview scope I got this
   <materialDesign:DialogHost CloseOnClickAway="True">
       <materialDesign:DialogHost.DialogContent>
           <Grid Margin="20">
               <TextBlock Text="My first Dialog" />
           </Grid>
       </materialDesign:DialogHost.DialogContent>
      </materialDesign:DialogHost >
The problem probably lies that the list item is in another scope where it can't see the dialog Host
the problem is that I don't know the exact syntax to reach it out of listview scope
I ve also tried this
<ListView.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                             <materialDesign:DialogHost CloseOnClickAway="True">
       <materialDesign:DialogHost.DialogContent>
           <Grid Margin="20">
               <TextBlock Text="My first Dialog" />
           </Grid>
       </materialDesign:DialogHost.DialogContent>

       <Button Command="{x:Static 
                materialDesign:DialogHost.OpenDialogCommand}"/>
                    </materialDesign:DialogHost>
                        </StackPanel>
                    </DataTemplate>
                </ListView.ItemTemplate>
Said1996
@Said1996
but the output wasn't as I wanted because it treated each item in the list as a view
Shreyasj96
@Shreyasj96
@Said1996 You can check out the first sample in Dialogs section of the DemoApp.
Said1996
@Said1996
Yes thats exactly the output that i dont want
i want the output to be like the 2nd example
@Shreyasj96
Shreyasj96
@Shreyasj96
@Said1996 You can try Command Binding of the button like so Command="{Binding ElementName=yourOutOfScopeDialogHostName,Path= materialDesign:DialogHost.OpenDialogCommand}". Im not sure if this works tho'.
Said1996
@Said1996
@Shreyasj96 Thanks so much ill give it a shot and tell you the result
Said1996
@Said1996
@Shreyasj96 No, not working
Shreyasj96
@Shreyasj96
@Said1996 Where have you put your dialogcontent?
Said1996
@Said1996
inside dialogHost
I tested the binding, the binding isn't working
Shreyasj96
@Shreyasj96
@Said1996 Then you might have to do it from the ViewModel itself if you are following MVVM or from the code behind by setting the IsOpen of the DialogHost to true.
Said1996
@Said1996
is there any way around that?
Shreyasj96
@Shreyasj96
Can you post the whole xaml?
Said1996
@Said1996
I wrote all the parts thats related to DialogHost ... no other part uses that
the whole problem is that i am binding to a button in a datatemplate so its normally binded sourcelist